/* Pea Kingdom Bingo - Production Hybrid Style */
/* Blending n8n.io modern design with OSRS aesthetics */

/* Root Variables */
:root {
    /* Modern gradients */
    --primary-gradient: linear-gradient(135deg, #ffb000 0%, #ffd700 100%);
    --secondary-gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    
    /* OSRS-inspired colors */
    --osrs-gold: #ffb000;
    --osrs-bronze: #cd7f32;
    --osrs-iron: #c0c0c0;
    --osrs-steel: #71797e;
    --osrs-mithril: #4a90e2;
    --osrs-adamant: #228b22;
    --osrs-rune: #4169e1;
    --osrs-dragon: #1e40af;
    
    /* Modern dark theme */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    
    /* Text colors */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* Borders and effects */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Fonts */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text-primary) !important;
}

.logo-container {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    box-shadow: 0 4px 12px rgba(255, 109, 109, 0.3);
}

.logo-container i {
    color: white;
    font-size: 1.2rem;
}

.brand-text {
    background: linear-gradient(135deg, var(--osrs-gold) 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 8px;
}

.status-badge {
    background: var(--success-gradient);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 8px;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

.admin-link {
    background: rgba(255, 109, 109, 0.1);
    border-radius: 8px;
    padding: 8px 16px !important;
    margin-left: 8px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 176, 0, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 109, 109, 0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(79, 70, 229, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-200px, -200px); }
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 109, 109, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 16px;
    margin-bottom: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.hero-badge i {
    margin-right: 8px;
    color: var(--osrs-gold);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--osrs-gold) 0%, #ffd700 50%, var(--osrs-bronze) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--osrs-gold);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-button {
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 109, 109, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 109, 109, 0.4);
}

.btn-outline-light {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 32px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 600px;
}

/* .floating-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
}

.floating-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* .main-card {
    width: 350px;
    top: 50px;
    right: 0;
    animation: floatCard 6s ease-in-out infinite;
}

/* .secondary-card {
    width: 280px;
    top: 300px;
    left: 20px;
    animation: floatCard 6s ease-in-out infinite 3s;
}

/* @keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    font-weight: 600;
}

.card-header i {
    margin-right: 12px;
    color: var(--osrs-gold);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-left: auto;
    animation: pulse 2s infinite;
}

.card-body {
    padding: 20px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.rank {
    width: 32px;
    height: 32px;
    background: var(--osrs-gold);
    color: var(--bg-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 16px;
}

.team-info {
    flex: 1;
}

.team-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.team-points {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.progress-bar {
    width: 60px;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin-left: 16px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
}

.activity-icon {
    width: 32px;
    height: 32px;
    background: var(--success-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.activity-icon i {
    color: white;
    font-size: 0.875rem;
}

.update-time {
    color: var(--osrs-gold);
    font-weight: 500;
}

/* Features Section */
.features-section {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.section-header {
    margin-bottom: 80px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 16px;
    margin-bottom: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.section-badge i {
    margin-right: 8px;
    color: var(--osrs-gold);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    height: 100%;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(255, 109, 109, 0.3);
}

.feature-icon i {
    color: white;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.feature-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.feature-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.detail-item i {
    color: var(--osrs-gold);
    font-size: 0.75rem;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(20px);
}

.info-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-title i {
    color: var(--osrs-gold);
}

.info-description {
    color: var(--text-secondary);
    margin: 0;
}

/* Leaderboard Section */
.leaderboard-section {
    padding: 120px 0;
    background: var(--bg-primary);
}

.leaderboard-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.leaderboard-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tab-button {
    flex: 1;
    background: none;
    border: none;
    padding: 20px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-button:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.leaderboard-content {
    padding: 32px;
}

.tab-content {
    transition: opacity 0.3s ease;
}

.table-responsive {
    border-radius: 12px;
    overflow: hidden;
}

.table {
    margin: 0;
    background: transparent;
}

.table th {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    border: none;
    padding: 16px;
    vertical-align: middle;
}

.leaderboard-row {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.leaderboard-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.rank-1 { background: var(--osrs-gold); color: var(--bg-primary); }
.rank-2 { background: var(--osrs-iron); color: var(--bg-primary); }
.rank-3 { background: var(--osrs-bronze); color: var(--bg-primary); }
.rank-4, .rank-5 { background: var(--osrs-steel); color: white; }

.team-cell, .player-cell {
    display: flex;
    align-items: center;
}

.team-name, .player-name {
    font-weight: 600;
    color: var(--text-primary);
}

.points-cell {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.points-value {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--osrs-gold);
}

.points-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.member-count, .tiles-count {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.team-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 40px;
}

.copyright {
    color: var(--text-muted);
    margin: 0;
}

.tech-stack {
    display: flex;
    gap: 16px;
}

.tech-item {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-stats {
        gap: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-visual {
        height: 400px;
        margin-top: 60px;
    }
    
    /* .main-card {
        width: 300px;
        right: -20px;
    }
    
    /* .secondary-card {
        width: 240px;
        left: 0;
    }
    
    .tech-stack {
        justify-content: center;
        margin-top: 16px;
    }
    
    .leaderboard-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        border-bottom: 1px solid var(--border-color);
    }
    
    .tab-button:last-child {
        border-bottom: none;
    }
}

/* Tile Submission Buttons */
.tile-actions {
    margin-top: 1rem;
    text-align: center;
}

.tile-submit-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.tile-submit-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    color: white;
    text-decoration: none;
}

.tile-submit-btn:active {
    transform: translateY(0);
}

.tile-submit-btn i {
    font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tile-submit-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}
