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

:root {
    /* Dark Theme Colors */
    --primary-dark: #0a0e13;
    --secondary-dark: #151922;
    --card-dark: #1a1f2e;
    --accent-gold: #10b981;
    --accent-gold-dark: #10b981;
    --accent-blue: #2a9df4;
    --text-light: #e8e9ed;
    --text-gray: #a0a5b8;
    --text-muted: #6b7280;
    --border-dark: #2d3548;
    --success-green: #10b981;
    --danger-red: #ef4444;
    --shadow-strong: rgba(0, 0, 0, 0.5);
    --gradient-dark: linear-gradient(135deg, #0a0e13 0%, #1a1f2e 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--primary-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(42, 157, 244, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(212, 175, 55, 0.05) 0px, transparent 50%);
}

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

/* Navigation */
.navbar {
    background: rgba(10, 14, 19, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-dark);
}

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

.nav-brand a {
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(15, 232, 55, 0.3);
    transition: all 0.3s ease;
}

.nav-brand a:hover {
    color: var(--text-light);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    letter-spacing: 0.5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

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

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Banner */
.hero-banner {
    background: 
        linear-gradient(135deg, rgba(10, 14, 19, 0.9) 0%, rgba(26, 31, 46, 0.8) 100%), 
        url('../images/bannerbackground.png') center/cover no-repeat;
    padding: 120px 20px;
    text-align: center;
    color: var(--text-light);
    position: relative;
    border-bottom: 2px solid var(--border-dark);
    box-shadow: inset 0 -100px 100px rgba(0,0,0,0.4);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 14, 19, 0.6) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--text-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 255, 42, 0.3)); }
    50% { filter: drop-shadow(0 0 40px rgba(9, 102, 16, 0.5)); }
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-top: 1rem;
}

/* Transcripts Section */
.transcripts-section {
    padding: 100px 20px;
    background: var(--gradient-dark);
}

.transcripts-section h1 {
    color: var(--accent-gold);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Transcript List */
.transcript-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.transcript-card {
    background: var(--card-dark);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
    border: 1px solid var(--border-dark);
    position: relative;
    overflow: hidden;
}

.transcript-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-blue));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.transcript-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
    border-color: var(--accent-gold);
}

.transcript-card:hover::before {
    transform: scaleX(1);
}

.transcript-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.transcript-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-gold);
}

.transcript-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-gold);
}

.transcript-title {
    flex: 1;
}

.transcript-title h3 {
    color: var(--accent-gold);
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.transcript-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.meta-item svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent-blue);
}

.transcript-description {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.transcript-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: var(--accent-gold-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--accent-gold);
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* Transcript Viewer */
.transcript-viewer {
    background: var(--card-dark);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-dark);
    margin-bottom: 40px;
}

.transcript-viewer h2 {
    color: var(--accent-gold);
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
    border-bottom: 3px solid var(--accent-gold);
    padding-bottom: 15px;
}

.transcript-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--secondary-dark);
    border-radius: 8px;
    border-left: 4px solid var(--accent-gold);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-value {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
}

.transcript-content {
    background: var(--secondary-dark);
    border-radius: 8px;
    padding: 30px;
    max-height: 800px;
    overflow-y: auto;
    border: 1px solid var(--border-dark);
}

/* Discord Message Styles */
.message {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.message:hover {
    background: rgba(212, 175, 55, 0.05);
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid var(--accent-gold);
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.message-author {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1rem;
}

.message-timestamp {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.message-text {
    color: var(--text-gray);
    line-height: 1.6;
    word-wrap: break-word;
}

.message-attachment {
    margin-top: 10px;
    padding: 15px;
    background: var(--card-dark);
    border-radius: 8px;
    border-left: 4px solid var(--accent-blue);
}

/* Search and Filter */
.search-filter {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-dark);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--secondary-dark);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.filter-select select {
    padding: 14px 18px;
    border: 2px solid var(--border-dark);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--secondary-dark);
    color: var(--text-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-select select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--card-dark);
    border-radius: 12px;
    border: 1px solid var(--border-dark);
}

.empty-state svg {
    width: 80px;
    height: 80px;
    stroke: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--text-gray);
    padding: 40px 20px;
    margin-top: 0;
    border-top: 1px solid var(--border-dark);
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin: 10px 0;
    font-size: 0.95rem;
}

.footer-content p:last-child {
    color: var(--accent-gold);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.8rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .transcript-list {
        grid-template-columns: 1fr;
    }

    .search-filter {
        flex-direction: column;
    }

    .transcript-viewer {
        padding: 20px;
    }

    .transcript-info {
        grid-template-columns: 1fr;
    }

    .message {
        flex-direction: column;
    }

    .transcripts-section h1 {
        font-size: 2.2rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Colors */
::selection {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold-dark);
}

/* Transcript Content Scrollbar */
.transcript-content::-webkit-scrollbar {
    width: 10px;
}

.transcript-content::-webkit-scrollbar-track {
    background: var(--card-dark);
}

.transcript-content::-webkit-scrollbar-thumb {
    background: var(--border-dark);
    border-radius: 5px;
}

.transcript-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* Loading State */
.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-dark);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 1200px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideDown 0.3s ease;
}

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

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-green);
    border: 1px solid var(--success-green);
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-red);
    border: 1px solid var(--danger-red);
}

.alert-info {
    background: rgba(42, 157, 244, 0.15);
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
}