:root {
    --primary-color: #2c5530;
    --secondary-color: #4a7c59;
    --accent-color: #6b9e78;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

/* Custom Font - Former */
@font-face {
    font-family: 'Former';
    src: url('/assets/former.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #000;
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
}

/* Video Hero Section */
.video-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
    filter: brightness(0.85); /* Reduce brightness by 15% */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Dark fade border around video edges */
.video-border-fade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    box-shadow: 
        inset 0 0 150px 50px rgba(0, 0, 0, 0.8),
        inset 0 0 100px 30px rgba(0, 0, 0, 0.6),
        inset 0 0 50px 15px rgba(0, 0, 0, 0.4);
}

.video-content {
    position: relative;
    z-index: 3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.swamp-channel-title {
    font-family: 'Former', sans-serif;
    font-size: 6rem;
    font-weight: normal; /* Ensure not bold */
    color: white;
    text-shadow: 
        0 0 40px rgba(255, 255, 255, 0.8),
        0 0 80px rgba(255, 255, 255, 0.6),
        0 0 120px rgba(255, 255, 255, 0.4);
    margin: 0;
    padding: 0.5rem 1rem; /* Decreased padding */
    letter-spacing: 0.2em;
    text-transform: uppercase;
    user-select: none; /* Make text unselectable */
    pointer-events: none; /* Make text unclickable */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
}

/* Slow blink animation */
@keyframes slow-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.2;
    }
}

.coming-soon-text {
    font-family: 'Verdana', Geneva, sans-serif;
    font-size: 2rem;
    color: white;
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000;
    margin: 0;
    padding: 0.5rem 1.5rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    animation: slow-blink 3s ease-in-out infinite;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0 0 24px 24px;
    margin-bottom: 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.tagline {
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-link.active {
    color: var(--primary-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.credits-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

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

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

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

.btn-large {
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: var(--bg-white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.feature-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Pricing Section */
.pricing {
    padding: 4rem 0;
    background: var(--bg-light);
}

.pricing-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.pricing-card h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.pricing-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:before {
    content: "✓ ";
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Login Page */
.login-page {
    background: var(--bg-light);
    min-height: 100vh;
}

.login-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 2rem 0;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.login-card h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.login-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.auth-providers {
    margin-bottom: 1.5rem;
}

.login-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.login-divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.login-divider span {
    background: var(--bg-white);
    padding: 0 1rem;
    position: relative;
    color: var(--text-light);
}

.login-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.login-footer {
    text-align: center;
    color: var(--text-light);
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Dashboard */
.dashboard-main {
    padding: 2rem 0;
    background: transparent;
}

.payment-portal {
    margin-bottom: 2rem;
}

.payment-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

/* Tabs */
.tabs-container {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    background: var(--bg-light);
}

.tab-btn {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--bg-white);
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Live Cast */
.livecast-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.video-player {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    text-align: center;
    padding: 2rem;
}

.video-note {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 1rem;
}

.livecast-chat {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 500px;
}

.livecast-chat h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: 6px;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: var(--bg-light);
    border-radius: 6px;
}

.chat-message .author {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
}

.chat-input-container input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
}

/* News Feed */
.news-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.news-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.news-card-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.news-card-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.news-card-content {
    margin-bottom: 1rem;
    line-height: 1.8;
}

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

.social-share {
    display: flex;
    gap: 0.5rem;
}

.social-share-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.social-share-btn.facebook {
    background: #1877f2;
    color: white;
}

.social-share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.social-share-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.chat-toggle {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.news-chat-panel {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: 6px;
    display: none;
}

.news-chat-panel.active {
    display: block;
}

/* Researcher */
.researcher-container {
    max-width: 800px;
}

.researcher-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.research-results {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-color);
    display: none;
}

.research-results.active {
    display: block;
}

.research-results h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.research-answer {
    line-height: 1.8;
    white-space: pre-wrap;
}

.research-history {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
}

.research-history h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.history-item {
    background: var(--bg-white);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--accent-color);
}

.history-item-question {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.history-item-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.social-link:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .swamp-channel-title {
        font-size: 3.5rem;
        letter-spacing: 0.1em;
        padding: 0.3rem 0.8rem; /* Decreased padding for mobile too */
    }

    .coming-soon-text {
        font-size: 1.5rem;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .livecast-container {
        grid-template-columns: 1fr;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-btn {
        border-bottom: 1px solid var(--border-color);
        border-right: none;
    }

    .tab-btn.active {
        border-bottom-color: var(--border-color);
        border-left: 3px solid var(--primary-color);
    }

    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Mission Statement Box */
.mission-box {
    font-family: 'Verdana', Geneva, sans-serif;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem 3rem;
    margin: 2rem 0;
    max-width: 800px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
}

.mission-text {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.mission-philosophy {
    font-size: 1.1rem;
    font-style: italic;
    color: white;
    margin: 1rem 0;
    line-height: 1.6;
}

.mission-promise {
    font-size: 1rem;
    color: white;
    margin-top: 1rem;
    line-height: 1.6;
}

/* Login Button */
.login-button {
    font-family: 'Verdana', Geneva, sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1rem 3rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin-top: 2rem;
    position: relative;
    z-index: 1000 !important;
    pointer-events: auto !important;
    user-select: none;
    -webkit-user-select: none;
}

.login-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.login-button:active {
    transform: translateY(0);
}

/* Video fade effect after login - less dark than before but still darker than main page */
.video-hero.faded .video-background {
    opacity: 0.6;
    transition: opacity 1s ease-in-out;
}

.video-hero.faded .video-overlay {
    background: rgba(0, 0, 0, 0.4);
    transition: background 1s ease-in-out;
}

/* Main content after login */
.main-content {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    padding: 0;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
}

/* Loading Indicator Styles */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    text-align: center;
    color: white;
    transition: opacity 0.3s ease;
}

.loading-bar-container {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    border-radius: 2px;
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% {
        width: 0%;
        margin-left: 0%;
    }
    50% {
        width: 70%;
        margin-left: 0%;
    }
    100% {
        width: 0%;
        margin-left: 100%;
    }
}

.loading-text {
    font-family: 'Verdana', Geneva, sans-serif;
    font-size: 1rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.modal-content h2 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.modal-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.modal-content .form-group {
    margin-bottom: 1.5rem;
}

.modal-content input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-content small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

