/* =========================================
   LANDING PAGE OVERRIDES
   ========================================= */

/* Reset body layout for scrolling page, not centered app */
body.landing-layout {
    display: block; 
    padding: 0;
    overflow-x: hidden;
    background: var(--bg-body);
}

/* --- Navigation --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 1.5rem;
}

.nav-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-actions { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { color: var(--brand-dark); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.btn-nav {
    padding: 8px 16px;
    background: var(--brand-dark);
    color: black;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.2s;
}
.btn-nav:hover { opacity: 0.8; }

/* --- Hero Section --- */
.hero-section {
    padding: 6rem 1.5rem 4rem 1.5rem;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(0,122,255,0.05) 0%, transparent 70%);
}

.hero-container { max-width: 800px; margin: 0 auto; }

.badge-pill {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    color: var(--brand-dark);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--brand-dark);
    opacity: 0.7;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto; margin-right: auto;
}

/* Search Bar */
.search-wrapper { max-width: 600px; margin: 0 auto; }

.search-bar {
    background: var(--bg-card);
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.05);
    transition: box-shadow 0.2s, transform 0.2s;
}

.search-bar:focus-within {
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    border-color: var(--brand-primary);
}

.search-icon { font-size: 1.2rem; margin-left: 1rem; opacity: 0.5; }

.search-bar input {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    padding: 12px;
    flex: 1;
}

.search-bar input:focus { box-shadow: none; }

.btn-search {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}

.suggested-tags { margin-top: 1rem; font-size: 0.85rem; opacity: 0.6; }
.suggested-tags a { color: var(--brand-dark); margin-left: 8px; text-decoration: none; }
.suggested-tags a:hover { text-decoration: underline; color: var(--brand-primary); }

/* --- Features --- */
.features-section { padding: 4rem 1.5rem; background: var(--bg-card); border-top: 1px solid rgba(0,0,0,0.03); border-bottom: 1px solid rgba(0,0,0,0.03); }
.feature-grid {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem;
}
.feature-item { text-align: left; }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-item h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-item p { opacity: 0.7; line-height: 1.5; }

/* --- Marketplace Section --- */
.marketplace-section { padding: 5rem 1.5rem; max-width: 1100px; margin: 0 auto; }

.section-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 2rem;
}
.section-header h2 { font-size: 2rem; font-weight: 800; }
.view-all { color: var(--brand-primary); text-decoration: none; font-weight: 600; }

.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Expert Card Styling */
.expert-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.2s;
    position: relative;
}

/* 
   THE MAGIC TRICK:
   This takes the profile link and creates a pseudo-element 
   that stretches to cover the entire .expert-card parent.
*/
.expert-profile-link::after {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: 1; /* Layer 1: Covers the card */
    cursor: pointer;
}

/* 
   The Action Button
   We give this z-index: 2 so it sits ON TOP of the profile link layer.
*/
.action-btn {
    position: relative; 
    z-index: 2; /* Layer 2: Sits above the card click */
    
    /* Button Styling to ensure it looks attractive */
    display: inline-block;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.expert-card:hover { 
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.action-btn, 
.btn-primary.full-width {
    /* Layout & Text */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 14px 20px;
    margin-top: 1rem;
    
    /* Typography */
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    
    /* VISUAL FIXES */
    background-color: var(--brand-dark); /* Uses the dark charcoal for high contrast */
    color: #ffffff !important;           /* Force white text */
    border: none;
    border-radius: 16px;                 /* Soft, modern rounded corners */
    
    /* Depth & interaction basics */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
    cursor: pointer;
    
    /* Layering for the clickable card trick */
    position: relative;
    z-index: 2;
    
    /* Smooth animation */
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 2. Hover State (Float up slightly + lighten) */
.action-btn:hover,
.btn-primary.full-width:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    background-color: var(--brand-primary); /* Switch to Brand Color (Salmon) on hover for "pop" */
}

/* 3. Active/Pressed State (Squish down) */
.action-btn:active,
.btn-primary.full-width:active {
    transform: translateY(0) scale(0.98); /* Physical press feel */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    filter: brightness(0.9); /* Slightly darken to indicate pressure */
}

.expert-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
}

.card-status {
    position: absolute;
    top: 1rem; right: 1rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex; align-items: center; gap: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-online .dot { background: var(--brand-success); }
.status-online { color: var(--brand-success); }
.status-offline .dot { background: gray; }
.status-offline { color: gray; }

.expert-info { padding: 1.5rem; }

.expert-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.25rem; }
.expert-header h3 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.verified-tick { color: var(--brand-primary); font-size: 0.9rem; }
.price-tag { font-size: 0.9rem; font-weight: 600; opacity: 0.8; }

.expert-role { font-size: 0.85rem; color: var(--brand-primary); font-weight: 600; margin-bottom: 0.75rem; }
.expert-bio { font-size: 0.9rem; opacity: 0.7; margin-bottom: 1.5rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Buttons */
.full-width { width: 100%; }
.btn-secondary {
    width: 100%; padding: 12px;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-sm);
    color: var(--brand-dark);
    font-weight: 600; cursor: pointer;
}
.btn-secondary:hover { background: rgba(0,0,0,0.03); }

/* Specific styling for the Secondary Action Button (Notify Me) */
.action-btn.btn-secondary {
    background-color: transparent;
    color: var(--brand-dark) !important; /* Dark text */
    border: 2px solid rgba(0,0,0,0.1);   /* Subtle border */
    box-shadow: none;
}

.action-btn.btn-secondary:hover {
    background-color: rgba(0,0,0,0.05); /* Light gray hover */
    transform: translateY(-2px);
    border-color: var(--brand-dark);
}

.action-btn.btn-secondary:active {
    background-color: rgba(0,0,0,0.1);
    transform: scale(0.98);
}

/* --- Footer --- */
.main-footer {
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: var(--bg-card);
}
.footer-content {
    max-width: 1100px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
.footer-brand h4 { font-weight: 800; font-size: 1.2rem; }
.footer-brand p { font-size: 0.85rem; opacity: 0.5; margin-top: 4px; }
.footer-links a { color: var(--brand-dark); text-decoration: none; margin-left: 2rem; font-size: 0.9rem; opacity: 0.7; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }

/* --- Mobile --- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .feature-grid { grid-template-columns: 1fr; gap: 2rem; }
    .search-bar { flex-direction: column; padding: 12px; border-radius: 20px; }
    .search-bar input { width: 100%; margin-bottom: 10px; text-align: center; }
    .btn-search { width: 100%; }
    .footer-content { flex-direction: column; gap: 2rem; text-align: center; }
    .footer-links a { margin: 0 1rem; }
}