/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors - Premium Indigo Theme */
    --primary: #4338ca;
    /* Indigo 700 - Deeper, more professional */
    --primary-hover: #3730a3;
    /* Indigo 800 */
    --primary-light: #e0e7ff;
    /* Indigo 100 */
    --primary-soft: #c7d2fe;
    /* Indigo 200 */

    --secondary: #0f172a;
    /* Slate 900 */
    --accent: #f43f5e;
    /* Rose 500 */

    /* Functional Colors */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    /* Neutrals */
    --bg-body: #f1f5f9;
    /* Slate 100 - Slightly darker than pure white for contrast */
    --bg-card: #ffffff;
    --text-main: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */
    --border: #e2e8f0;
    /* Slate 200 */

    /* Premium Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    /* Deeper shadow */
    --shadow-hover: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    /* More rounded */
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    /* Global fix for horizontal scroll */
}

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

ul {
    list-style: none;
}

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

/* Navbar */
.main-navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.burger-menu {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}

.nav-links a:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white !important;
    /* Force color */
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(79, 70, 229, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background-color: var(--bg-body);
}

/* Main Content Area */
main {
    flex: 1;
    padding: 2rem 0;
}

/* Hero Section (if used) */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Survey Cards */
.survey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.card-body {
    padding: 1.5rem;
    flex: 1;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    padding: 1rem 1.5rem;
    background-color: #f8fafc;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Footer */
.footer {
    background-color: white;
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
    filter: grayscale(1);
    opacity: 0.7;
    transition: all 0.3s;
}

.footer-logo:hover {
    filter: none;
    opacity: 1;
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* Survey Detail Styles */
.survey-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.survey-question {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.option-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.75rem;
}

.option-label:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.option-input:checked+.option-label {
    border-color: var(--primary);
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

/* Mobile Responsive */
/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .nav-content {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
        gap: 1rem;
    }

    .nav-links {
        display: none;
        /* Hidden by default */
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border);
        animation: slideDown 0.3s ease forwards;
        background: rgba(255, 255, 255, 0.98);
    }

    .nav-links.active {
        display: flex;
    }

    .burger-menu {
        display: block;
        /* Show burger on mobile */
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        text-align: center;
        width: 100%;
        padding: 0.75rem;
        background: #f8fafc;
        margin: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding-bottom: 2rem;
    }

    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }

    /* Adjust buttons for touch */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        display: flex;
        justify-content: center;
    }

    /* Small text adjustments */
    p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .survey-grid {
        grid-template-columns: 1fr;
    }
}

/* Desktop Grid Fix */
@media (min-width: 1025px) {
    .main-layout-grid {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 30px;
        align-items: start;
    }

    .feed-center {
        min-width: 0;
        /* Prevents flex/grid child from overflowing parent */
        width: 100%;
    }

    .sidebar-left {
        width: 100%;
    }
}