/*
Theme Name: TableWithMe Theme
Theme URI: https://tablewithme.com
Author: TableWithMe
Author URI: https://tablewithme.com
Description: Thème moderne type Airbnb pour la plateforme de partage de repas TableWithMe
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tablewithme-theme
Tags: food, sharing, airbnb, modern, responsive
*/

/* ========================================
   VARIABLES CSS
======================================== */
:root {
    --primary: #FF385C;
    --primary-dark: #E31C5F;
    --secondary: #00A699;
    --dark: #222222;
    --gray: #717171;
    --light-gray: #F7F7F7;
    --border: #DDDDDD;
    --white: #FFFFFF;
    --shadow: 0 2px 16px rgba(0,0,0,0.12);
    --shadow-hover: 0 6px 20px rgba(0,0,0,0.2);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* ========================================
   RESET & BASE
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ========================================
   HEADER
======================================== */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo:hover {
    color: var(--primary-dark);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}

.main-navigation a {
    color: var(--dark);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 0;
    position: relative;
}

.main-navigation a:hover {
    color: var(--primary);
}

.main-navigation a.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 24px;
}

.main-navigation a.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: scale(1.02);
}

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 40px;
    color: var(--white);
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 48px;
    opacity: 0.95;
}

.hero-search {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr auto;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.search-field {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.search-field label {
    font-size: 12px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--dark);
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-search {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-end;
    transition: var(--transition);
}

.btn-search:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ========================================
   FEATURED SECTION
======================================== */
.featured-section {
    padding: 80px 40px;
    background: var(--white);
}

.section-header {
    max-width: 1280px;
    margin: 0 auto 48px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray);
}

/* ========================================
   CONTENT
======================================== */
.site-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 40px;
}

.content-wrapper {
    background: var(--white);
    min-height: 400px;
}

/* Page Content */
.entry-header {
    margin-bottom: 32px;
}

.entry-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 600;
}

.entry-content p {
    margin-bottom: 16px;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.entry-content li {
    margin-bottom: 8px;
}

.entry-content a {
    color: var(--primary);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--primary-dark);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 24px 0;
}

/* Tables from shortcodes */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.entry-content table th,
.entry-content table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.entry-content table th {
    font-weight: 600;
    background: var(--light-gray);
}

/* Forms from shortcodes */
.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="password"],
.entry-content input[type="tel"],
.entry-content input[type="number"],
.entry-content input[type="date"],
.entry-content input[type="datetime-local"],
.entry-content textarea,
.entry-content select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.entry-content button,
.entry-content input[type="submit"] {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.entry-content button:hover,
.entry-content input[type="submit"]:hover {
    background: var(--primary-dark);
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
    background: var(--light-gray);
    border-top: 1px solid var(--border);
    padding: 48px 40px 24px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column a {
    color: var(--gray);
    font-size: 14px;
}

.footer-column a:hover {
    color: var(--dark);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--gray);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--gray);
    font-size: 20px;
}

.footer-social a:hover {
    color: var(--primary);
}

/* ========================================
   CATEGORIES SECTION
======================================== */
.categories-section {
    padding: 60px 40px;
    background: var(--light-gray);
}

.categories-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.category-card p {
    color: var(--gray);
    font-size: 14px;
}

/* ========================================
   CTA SECTION
======================================== */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 40px;
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-cta {
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    display: inline-block;
}

.btn-cta-primary {
    background: var(--white);
    color: var(--primary);
}

.btn-cta-primary:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-cta-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-cta-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

/* ========================================
   UTILITIES
======================================== */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .hero-search {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 16px 20px;
    }
    
    .main-navigation ul {
        gap: 16px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .hero-search {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .site-content {
        padding: 40px 20px;
    }
    
    .hero-section {
        padding: 80px 20px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
}
