/* --- VARIABLES & RESET --- */
:root {
    /* Palette: Modern Editorial - Warm, Clean, Sophisticated */
    --primary: #1F3B36; /* Deep Emerald */
    --primary-light: #2c4f48;
    --secondary: #D4A373; /* Antique Gold */
    --secondary-hover: #b88656;
    --accent-soft: #F0EBE3; /* Warm Beige Accent */
    
    --bg-body: #F9F7F2; /* 'Warm Paper' background */
    --surface: #FFFFFF;
    
    --text-dark: #1A1A1A;
    --text-medium: #555555;
    --text-light: #999999;
    
    --border-subtle: rgba(31, 59, 54, 0.08);
    
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 50px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
    --shadow-hover: 0 12px 32px rgba(31, 59, 54, 0.08);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.3;
}

a { text-decoration: none; color: inherit; transition: all 0.2s ease; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* --- NAVIGATION --- */
nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.logo span { color: var(--secondary); font-style: italic; }

.nav-menu { display: flex; align-items: center; gap: 32px; }

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-medium);
    position: relative;
}

.nav-menu a:hover { color: var(--primary); }

.btn-nav {
    background: var(--primary);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-nav:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(31, 59, 54, 0.2); }

/* --- HERO STYLES --- */
/* Minimal Hero (Index) */
.hero-minimal {
    position: relative;
    background-image: url('img/header.jpg'); 
    background-size: cover;
    background-position: center right; 
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-minimal::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, var(--bg-body) 10%, var(--bg-body) 40%, rgba(249, 247, 242, 0.8) 60%, rgba(249, 247, 242, 0) 100%);
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 550px;
}

.usp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-minimal h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.hero-minimal p {
    font-size: 1.15rem;
    color: var(--text-medium);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Page Header (Internal Pages) */
.page-header { text-align: center; padding: 3rem 0; background: var(--surface); border-bottom: 1px solid var(--border-subtle); }
.page-header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.page-header p { font-size: 1.1rem; color: var(--text-medium); max-width: 600px; margin: 0 auto; }

/* --- LAYOUT & GRID --- */
.layout-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 48px;
    margin-top: 4rem;
    margin-bottom: 6rem;
    flex: 1; /* For sticky footer */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.section-header h2 { font-size: 1.75rem; color: var(--primary); }
.section-header a { font-size: 0.9rem; color: var(--secondary); font-weight: 600; }
.section-header a:hover { text-decoration: underline; }

/* --- CARDS & COMPONENTS --- */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
    margin-bottom: 2rem;
}

.btn-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--secondary);
    color: #fff;
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 8px 20px rgba(212, 163, 115, 0.25);
    transition: all 0.3s ease;
}

.btn-large:hover { 
    background: var(--secondary-hover); 
    transform: translateY(-2px); 
    box-shadow: 0 12px 28px rgba(212, 163, 115, 0.35); 
}

.trust-line {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-weight: 500;
}

.trust-line span { display: flex; align-items: center; gap: 8px; }
.trust-line i { color: #27ae60; }

/* --- TABLES --- */
.table-wrapper {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.wp-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.wp-table th {
    background: #fafafa;
    padding: 18px 24px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-medium);
    border-bottom: 1px solid var(--border-subtle);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wp-table td {
    padding: 24px 24px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
    color: var(--text-medium);
    transition: background 0.2s;
}

.wp-table tr:last-child td { border-bottom: none; }
.wp-table tr:hover td { background: #fdfdfd; }

/* Clickable Row Styles */
.wp-table tr.clickable-row {
    cursor: pointer;
    transition: all 0.2s ease;
}

.wp-table tr.clickable-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.wp-table tr.clickable-row:hover td {
    background: #fdfdfd;
}

/* Prevent link color change on hover when row is clickable */
.wp-table tr.clickable-row .tbl-title {
    color: var(--primary);
}

.wp-table tr.clickable-row:hover .tbl-title {
    color: var(--secondary);
}

.tbl-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    display: block;
    margin-bottom: 6px;
    line-height: 1.3;
}
.tbl-title:hover { color: var(--secondary); }

.tbl-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    display: block;
    max-width: 450px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tbl-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--accent-soft);
    color: var(--primary);
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

.tbl-coach { display: flex; align-items: center; gap: 12px; }
.tbl-coach img {
    width: 38px; height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background: #eee;
}
.tbl-coach-info { display: flex; flex-direction: column; line-height: 1.2; }
.tbl-coach-name { font-size: 0.85rem; font-weight: 700; color: var(--primary); }
.tbl-coach-role { font-size: 0.75rem; color: #888; font-weight: 500; }

.status-pending {
    color: #d97706;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff8e6;
    padding: 6px 12px;
    border-radius: 6px;
}

.time-ago { color: var(--text-light); font-size: 0.85rem; white-space: nowrap; }

/* --- SIDEBAR --- */
aside { position: sticky; top: 100px; }

.sidebar-box, .sidebar-widget {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
}

.sidebar-box h4, .sidebar-widget h4 {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bg-body);
    letter-spacing: -0.01em;
    color: var(--primary);
}

/* Steps */
.step-item { position: relative; padding-left: 42px; margin-bottom: 1.5rem; }
.step-item:last-child { margin-bottom: 0; }
.step-item::before { content: ''; position: absolute; left: 13px; top: 24px; bottom: -20px; border-left: 2px dashed #eee; }
.step-item:last-child::before { display: none; }
.step-number { position: absolute; left: 0; top: 0; width: 28px; height: 28px; background: var(--secondary); color: #fff; border-radius: 50%; font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; z-index: 2; }
.step-item strong { display: block; font-size: 0.95rem; color: var(--primary); margin-bottom: 4px; }
.step-item p { font-size: 0.85rem; color: var(--text-medium); line-height: 1.5; }

/* Coach Mini */
.coach-mini { display: flex; align-items: center; gap: 14px; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--bg-body); }
.coach-mini:last-of-type { border-bottom: none; padding-bottom: 0; }
.coach-mini img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #eee; }
.coach-mini h5 { font-size: 0.95rem; margin-bottom: 2px; }
.coach-mini span { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }

/* Tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
    background: var(--bg-body);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    color: var(--text-medium);
    font-weight: 500;
    border: 1px solid transparent;
}
.tag-chip:hover {
    background: var(--surface);
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: var(--shadow-sm);
}

/* --- FORMS (Register/Ask/Login) --- */
.form-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--border-subtle);
}

.form-header { text-align: center; margin-bottom: 2rem; }
.form-header h1 { font-size: 2rem; margin-bottom: 0.5rem; color: var(--primary); font-family: 'Playfair Display', serif; }
.form-header p { color: var(--text-medium); font-size: 0.95rem; }

.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-weight: 700; margin-bottom: 0.5rem; color: var(--primary); font-size: 0.95rem; }
.form-hint { display: block; font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.5rem; margin-top: -0.2rem; }
.form-control { width: 100%; padding: 14px 16px; border: 1px solid #ddd; border-radius: var(--radius-md); font-family: 'DM Sans', sans-serif; font-size: 1rem; background: #FAFAFA; transition: all 0.2s; }
.form-control:focus { outline: none; border-color: var(--secondary); background: #fff; box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.1); }
textarea.form-control { min-height: 200px; resize: vertical; line-height: 1.6; }

.btn-submit {
    background: var(--secondary);
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
    display: flex; justify-content: center; align-items: center; gap: 10px;
    margin-top: 1rem;
}
.btn-submit:hover { background: var(--secondary-hover); }

/* Alerts */
.alert-success { background: #d4edda; color: #155724; padding: 1rem; border-radius: var(--radius-md); margin-bottom: 2rem; border: 1px solid #c3e6cb; text-align: center; }
.alert-error { background: #fee2e2; color: #b91c1c; padding: 1rem; border-radius: var(--radius-md); margin-bottom: 2rem; border: 1px solid #fecaca; text-align: center; }

/* Login/Register Containers */
.register-container { max-width: 500px; margin: 4rem auto 6rem; padding: 0 20px; }
.login-container { max-width: 450px; margin: 4rem auto; padding: 0 20px; width: 100%; }

/* --- QUESTION DETAIL & PAYWALL --- */
.meta-tags { display: flex; gap: 15px; font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 1rem; flex-wrap: wrap; }
.category-tag { color: var(--secondary); }
.question-title { font-size: 2rem; line-height: 1.3; margin-bottom: 1.5rem; }
.question-body { color: var(--text-medium); font-size: 1.05rem; white-space: pre-wrap; }

/* Answer Header */
.answer-header { display: flex; align-items: center; gap: 15px; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-subtle); }
.coach-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); background: #eee; }
.coach-meta h3 { margin-bottom: 2px; font-size: 1.2rem; }
.coach-meta span { font-size: 0.85rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }

/* Content Blur & Paywall */
.content-blur {
    position: relative;
    max-height: 220px;
    overflow: hidden;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-medium);
    mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 100%);
}

.overlay-card {
    background: #FAFAFA;
    border: 1px solid #E5E5E5;
    padding: 2rem;
    text-align: center;
    border-radius: var(--radius-lg);
    margin-top: -60px;
    position: relative; 
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.overlay-card h4 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.overlay-card p { font-size: 0.95rem; color: var(--text-medium); margin-bottom: 1.5rem; max-width: 450px; margin-left: auto; margin-right: auto; }

/* Badges & Buttons */
.public-badge {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #166534;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-action {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border-radius: var(--radius-pill); font-weight: 600;
    transition: all 0.2s; cursor: pointer; text-decoration: none; font-size: 1rem;
}
.btn-unlock { background: var(--secondary); color: #fff; box-shadow: 0 5px 15px rgba(212, 163, 115, 0.4); }
.btn-unlock:hover { background: var(--secondary-hover); transform: translateY(-2px); }
.btn-ask { background: var(--primary); color: #fff; padding: 12px 24px; font-size: 0.95rem; }
.btn-ask:hover { background: #162b27; transform: translateY(-2px); }

.guarantee { font-size: 0.75rem; color: #999; margin-top: 12px; display: flex; justify-content: center; gap: 15px; }
.guarantee span { display: flex; align-items: center; gap: 4px; }

/* Account Lock & Trust Sidebar */
.account-lock { text-align: center; padding: 3rem 1rem; }
.lock-icon { font-size: 3rem; color: var(--secondary); margin-bottom: 1.5rem; background: #FFF3E0; width: 80px; height: 80px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }

.trust-box { background: #EAF4F2; padding: 2rem; border-radius: var(--radius-lg); margin-bottom: 2rem; border: 1px solid rgba(31, 59, 54, 0.05); }
.trust-item { display: flex; gap: 15px; margin-bottom: 1.5rem; }
.trust-item:last-child { margin-bottom: 0; }
.trust-icon { width: 40px; height: 40px; background: var(--surface); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.trust-text h5 { margin-bottom: 4px; font-size: 1rem; }
.trust-text p { font-size: 0.85rem; color: var(--text-medium); line-height: 1.4; }

.testimonial-mini { background: var(--surface); padding: 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); font-style: italic; color: var(--text-medium); font-size: 0.9rem; }
.testimonial-author { margin-top: 1rem; font-weight: 700; font-style: normal; font-size: 0.8rem; color: var(--primary); display: block; }

/* --- FOOTER --- */
footer {
    background: #11221F;
    color: rgba(255,255,255,0.7);
    padding: 5rem 0 3rem;
    font-size: 0.9rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-brand h5 { color: #fff; font-size: 1.75rem; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 320px; margin-bottom: 2rem; opacity: 0.8; line-height: 1.7; }

.footer-links h6 { color: var(--secondary); font-family: 'DM Sans', sans-serif; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 1.5rem; font-size: 0.75rem; font-weight: 700; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 900px) {
    /* Adjust Header for Mobile */
    .hero-minimal {
        min-height: auto;
        padding: 4rem 0;
        background-position: 70% center; /* Adjust image focus */
    }
    .hero-minimal::before {
        background: linear-gradient(0deg, var(--bg-body) 0%, rgba(249, 247, 242, 0.95) 60%, rgba(249, 247, 242, 0.7) 100%);
    }
    .hero-content-wrapper h1 { font-size: 2.25rem; }
    
    /* Layout Reset */
    .layout-grid, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .nav-menu { display: none; }
    
    /* --- MOBILE QUESTION CARDS --- */
    
    /* Reset Table Elements to Blocks */
    .wp-table, .wp-table tbody { 
        display: block; 
        width: 100%; 
    }
    .wp-table thead { display: none; } /* Hide Header Row */
    
    /* Turn Rows into Cards */
    .wp-table tr { 
        display: flex;
        flex-wrap: wrap; /* Allows cells to wrap nicely */
        align-items: center;
        margin-bottom: 1.25rem; 
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-lg);
        padding: 1.25rem;
        background: #fff;
        box-shadow: var(--shadow-sm);
        position: relative;
    }
    
    /* Mobile clickable cards */
    .wp-table tr.clickable-row {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(212, 163, 115, 0.2);
    }
    
    .wp-table tr.clickable-row:active {
        transform: scale(0.98);
        box-shadow: var(--shadow-sm);
    }
    
    /* Remove default Table Borders/Padding */
    .wp-table td { 
        display: block;
        border: none;
        padding: 0;
    }
    
    /* Remove the "Label" pseudo-elements (Status, Tijd, etc) */
    .wp-table td::before { display: none; }

    /* --- CELL 1: Main Content (Title + Excerpt) --- */
    .wp-table td:first-child { 
        width: 100%;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .tbl-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .tbl-excerpt {
        font-size: 0.9rem;
        line-height: 1.5;
        white-space: normal; /* Allow text to wrap */
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Limit to 3 lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* --- CELL 2: Status / Coach (Bottom Left) --- */
    .wp-table td:nth-child(2) {
        flex-grow: 1; /* Pushes time to the right */
        width: auto;
    }

    /* Adjust Coach Image size for mobile */
    .tbl-coach img { width: 32px; height: 32px; }
    .tbl-coach-name { font-size: 0.8rem; }
    .tbl-coach-role { font-size: 0.7rem; }
    
    /* Adjust Pending Status Badge */
    .status-pending {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    /* --- CELL 3: Time (Bottom Right) --- */
    .wp-table td:last-child { 
        width: auto;
        text-align: right;
        padding-left: 10px;
    }

    .time-ago {
        font-size: 0.75rem;
        color: var(--text-light);
        font-weight: 500;
        background: #fafafa;
        padding: 4px 8px;
        border-radius: 4px;
    }
}
