@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #db2777;
    --secondary-light: #f472b6;
    --accent: #fdf2f8;
    --background: #fafafa;
    --text: #1e293b;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --border-color: #e2e8f0;
    --gold: #d4af37;
}

* {
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: 'Outfit', sans-serif;
    background:
        radial-gradient(at 100% 0%, rgba(79, 70, 229, 0.03) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(219, 39, 119, 0.03) 0px, transparent 50%),
        var(--background);
    color: var(--text);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* Elegant Emergency Helpline */
#top-helpline {
    width: 100%;
    background: linear-gradient(90deg, #be123c, #9f1239);
    color: white;
    padding: 8px;
    /* Reduced padding */
    text-align: center;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 2000;
    box-shadow: 0 4px 15px rgba(190, 18, 60, 0.2);
    letter-spacing: 0.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    animation: slideDown 0.5s ease-out;
}

#top-helpline strong {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 1rem;
}

/* Navbar */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px 0;
    position: sticky;
    top: 40px;
    /* Below helpline approximately */
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Header */
header {
    text-align: center;
    margin: 10px 0 10px;
    /* Reduced margin */
    padding: 0 20px;
    max-width: 900px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    /* Reduced */
}

.hub-logo {
    background: linear-gradient(135deg, var(--gold), #b8860b);
    width: 60px;
    /* Smaller logo */
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.2);
    margin-bottom: 10px;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    /* Smaller font */
    font-weight: 900;
    margin: 0;
    color: #0f172a;
    line-height: 1;
}

.highlight-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.1rem;
    /* Smaller font */
    margin-top: 10px;
    max-width: 700px;
}

/* Main Layout Grid - Optimized Ratios */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    /* Slightly narrower sidebar */
    gap: 25px;
    /* Reduced gap */
    max-width: 1400px;
    width: 95%;
    /* Wider content */
    margin: 10px auto 30px;
    /* Reduced margin */
}

main {
    display: flex;
    flex-direction: column;
    gap: 25px;
    /* Reduced gap */
}

/* Action Grid for Quiz and Worry Cards */
.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* Distinct Card Styles */
.action-card {
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Quiz Card - Professional Blue/Purple theme */
.quiz-card-premium {
    background: linear-gradient(145deg, #ffffff, #f0f4ff);
    border-left: 5px solid var(--primary);
}

.quiz-card-premium h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Worry Card - Warm Gold/Rose theme */
.worry-card-premium {
    background: linear-gradient(145deg, #ffffff, #fff0f5);
    border-left: 5px solid var(--secondary);
}

.worry-card-premium h3 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.quiz-card-premium .card-badge {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.worry-card-premium .card-badge {
    background: rgba(219, 39, 119, 0.1);
    color: var(--secondary);
}

.mini-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-row {
    display: flex;
    gap: 15px;
}

.input-group {
    flex: 1;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: 600;
}

.input-group input,
.input-group select,
.mini-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    background: white;
}

.mini-form textarea {
    resize: none;
    height: 80px;
}

.primary-btn-premium {
    background: linear-gradient(135deg, var(--primary), #312e81);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

.primary-btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.3);
}

.gold-btn-premium {
    background: linear-gradient(135deg, var(--secondary), #be185d);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    width: 100%;
}

.gold-btn-premium:hover {
    box-shadow: 0 5px 15px rgba(190, 24, 93, 0.3);
    transform: translateY(-2px);
}

/* Premium Image Grid */
.image-grid-premium {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    /* Reduced gap */
    height: 250px;
    /* Reduced height */
}

.showcase-img-container {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.showcase-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-img-container:hover img {
    transform: scale(1.05);
}

/* Info Card Premium */
.info-card-premium {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 30px;
}

.info-card-premium h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    /* Reduced */
    margin: 10px 0 15px 0;
}

.info-img {
    border-radius: 20px;
    overflow: hidden;
    height: 200px;
}

.info-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Premium Revolt Section */
.revolt-glass-premium {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 40px 20px;
    /* Reduced padding */
    border-radius: 40px;
}

.section-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    /* Reduced */
    margin-bottom: 25px;
    text-align: center;
}

.revolt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* Smaller cards */
    gap: 15px;
    /* Reduced gap */
}

.revolt-card-premium {
    background: white;
    padding: 20px;
    /* Reduced padding */
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
}

.card-icon {
    width: 45px;
    /* Smaller icon */
    height: 45px;
    background: var(--accent);
    color: var(--secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.revolt-card-premium h4 {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
}

.revolt-card-premium p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Team Section CSS */
.team-involvement-container {
    margin-top: 40px;
    display: grid;
    gap: 30px;
    animation: fadeIn 0.8s ease-out;
}

.team-section {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.team-section h3 {
    margin-top: 0;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.member {
    text-align: center;
}

.avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 auto 10px;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

.involve-section {
    background: linear-gradient(135deg, var(--primary), #312e81);
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}

.involve-section h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.involve-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.mini-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.mini-btn:hover {
    background: white;
    color: var(--primary);
}


/* Footer Section */
footer {
    width: 100%;
    background: #0f172a;
    color: white;
    padding: 40px 0;
    /* Reduced padding */
    margin-top: 50px;
    /* Reduced margin */
}

.footer-warm-frame {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.email-link {
    color: var(--primary-light);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    margin: 10px 0;
    display: inline-block;
}

/* Animation */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }

    .heart-card-premium {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .image-grid-premium {
        grid-template-columns: 1fr;
        height: auto;
    }
}

/* Sidebar & Stats */
#sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Reduced gap */
}

.sidebar-section {
    background: white;
    padding: 20px;
    /* Reduced padding */
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.sidebar-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    margin: 0 0 15px 0;
    font-size: 1rem;
}

.injustice-stat {
    margin-bottom: 15px;
}

.stat-bar {
    width: 100%;
    height: 6px;
    /* Thinner */
    background: #f1f5f9;
    border-radius: 10px;
    margin-top: 6px;
    overflow: hidden;
}

.stat-bar .fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

/* Movement Corner - Professional Redesign */
.movement-corner {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(30, 41, 59, 0.15);
}

.movement-corner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.movement-corner svg {
    color: var(--primary-light);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.movement-corner h4 {
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    position: relative;
    z-index: 1;
    font-family: 'Playfair Display', serif;
    color: white;
}

.movement-corner p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    color: #cbd5e1;
}

.join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: white;
    color: #1e293b;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.join-btn:hover {
    background: var(--primary-light);
    color: white;
    transform: scale(1.05);
}

.sidebar-love-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
}

/* Quiz & Feedback UI */
#scenario-box {
    background: white;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

#choices button {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: white;
    text-align: left;
    cursor: pointer;
}

#choices button:hover {
    border-color: var(--primary);
    background: #f8fafc;
}

#choices button.selected {
    border-color: var(--primary);
    background: #eef2ff;
    border-width: 2px;
}

.feedback-good {
    color: #065f46;
    background: #ecfdf5;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.feedback-bad {
    color: #991b1b;
    background: #fef2f2;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.guidance-content-premium {
    background: white;
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid var(--gold);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}