/* Ikon Game Website - Clean, Organized Styles */

/* ========================================
   FONTS
======================================== */
@font-face {
    font-family: 'IkonUI';
    src: url('assets/fonts/IkonUI.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IkonTitle';
    src: url('assets/fonts/IkonTitle.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ========================================
   RESET AND BASE STYLES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IkonUI', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 30%, #2a2a2a 70%, #1a1a1a 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Magical floating fireflies background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(3px 3px at 20px 30px, rgba(212, 175, 55, 0.8), rgba(255, 215, 0, 0.3) 40%, transparent 70%),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 223, 0, 0.9), rgba(212, 175, 55, 0.4) 50%, transparent 80%),
        radial-gradient(4px 4px at 90px 40px, rgba(212, 175, 55, 0.7), rgba(255, 255, 150, 0.2) 30%, transparent 60%),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 215, 0, 0.6), rgba(212, 175, 55, 0.3) 60%, transparent 90%),
        radial-gradient(3px 3px at 160px 30px, rgba(212, 175, 55, 0.8), rgba(255, 255, 200, 0.3) 45%, transparent 75%),
        radial-gradient(2px 2px at 180px 90px, rgba(255, 223, 0, 0.7), rgba(212, 175, 55, 0.4) 55%, transparent 85%);
    background-repeat: repeat;
    background-size: 300px 200px;
    animation: fireflies 25s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}

/* Second layer of fireflies for magical depth */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 60px 20px, rgba(255, 215, 0, 0.6), rgba(212, 175, 55, 0.2) 50%, transparent 80%),
        radial-gradient(1px 1px at 100px 60px, rgba(212, 175, 55, 0.8), rgba(255, 255, 150, 0.3) 40%, transparent 70%),
        radial-gradient(3px 3px at 50px 90px, rgba(255, 223, 0, 0.5), rgba(212, 175, 55, 0.3) 60%, transparent 85%),
        radial-gradient(2px 2px at 170px 50px, rgba(212, 175, 55, 0.7), rgba(255, 215, 0, 0.2) 45%, transparent 75%);
    background-repeat: repeat;
    background-size: 250px 150px;
    animation: fireflies-slow 35s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
}

@keyframes fireflies {
    0% { 
        transform: translateY(0px) translateX(0px);
        opacity: 0.4;
    }
    25% { 
        transform: translateY(-50px) translateX(10px);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-80px) translateX(-5px);
        opacity: 0.8;
    }
    75% { 
        transform: translateY(-120px) translateX(15px);
        opacity: 0.5;
    }
    100% { 
        transform: translateY(-200px) translateX(-10px);
        opacity: 0.2;
    }
}

@keyframes fireflies-slow {
    0% { 
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.3;
    }
    30% { 
        transform: translateY(-30px) translateX(-8px) scale(1.2);
        opacity: 0.5;
    }
    60% { 
        transform: translateY(-60px) translateX(12px) scale(0.8);
        opacity: 0.7;
    }
    100% { 
        transform: translateY(-150px) translateX(-15px) scale(1.1);
        opacity: 0.1;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   NAVIGATION
======================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #d4af37;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo h2 {
    font-family: 'IkonTitle', serif;
    color: #d4af37;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #d4af37;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(20, 20, 20, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #666;
    transition: background 0.3s ease;
}

.status-dot.online {
    background: #4CAF50;
}

.status-dot.offline {
    background: #f44336;
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    font-family: 'IkonTitle', serif;
    font-size: 4rem;
    color: #d4af37;
    margin-bottom: 1rem;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(212, 175, 55, 0.3),
        0 0 40px rgba(212, 175, 55, 0.1);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { 
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.8),
            0 0 20px rgba(212, 175, 55, 0.3),
            0 0 40px rgba(212, 175, 55, 0.1);
    }
    to { 
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.8),
            0 0 30px rgba(212, 175, 55, 0.5),
            0 0 60px rgba(212, 175, 55, 0.2);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
}

.alpha-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    border: 2px solid #d4af37;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    }
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #b0b0b0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #d4af37;
    color: #000;
}

.btn-primary:hover {
    background: #f4cf47;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid #d4af37;
    color: #d4af37;
}

.btn-secondary:hover {
    background: #d4af37;
    color: #000;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #d4af37;
}

.stat-label {
    color: #a0a0a0;
}

/* ========================================
   SCREENSHOT CAROUSEL
======================================== */
.screenshots-section {
    padding: 5rem 0;
    background: rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: #d4af37;
    font-family: 'IkonTitle', serif;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #b8860b;
    font-family: 'IkonUI', sans-serif;
    font-style: italic;
    margin-bottom: 3rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    flex-grow: 0;
    background: #222;
    border: none !important;
    outline: none !important;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    border: none !important;
    outline: none !important;
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.carousel-slide:hover .slide-caption {
    transform: translateY(0);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #d4af37;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: #d4af37;
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: #d4af37;
    transform: scale(1.2);
}

/* ========================================
   FEATURES SECTION
======================================== */
.features-section {
    padding: 5rem 0;
    background: rgba(26, 26, 46, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(42, 42, 42, 0.8);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.6);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #d4af37;
    margin-bottom: 1rem;
    font-family: 'IkonTitle', serif;
}

/* ========================================
   COMMUNITY SECTION
======================================== */
.community-section {
    padding: 5rem 0;
    background: rgba(0, 0, 0, 0.3);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.community-card {
    display: block;
    background: rgba(25, 25, 25, 0.8);
    padding: 2rem;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.community-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.6);
}

.community-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.community-card h3 {
    color: #d4af37;
    margin-bottom: 1rem;
    font-family: 'IkonTitle', serif;
}

.community-stats {
    margin: 1rem 0;
}

.stat {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
}

.community-link {
    color: #d4af37;
    font-weight: 600;
    margin-top: 1rem;
    display: block;
}

.testing-notice {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notice-icon {
    font-size: 2rem;
}

/* ========================================
   NEWS SECTION
======================================== */
.news-section {
    padding: 5rem 0;
    background: rgba(20, 20, 20, 0.3);
}

.news-content {
    margin-top: 3rem;
}

.news-item {
    background: rgba(25, 25, 25, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.6);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.news-title {
    color: #d4af37;
    font-family: 'IkonTitle', serif;
    font-size: 1.4rem;
    margin: 0;
    flex: 1;
}

.news-date {
    color: #a0a0a0;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 1rem;
}

.news-content {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-type {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-news {
    text-align: center;
    color: #a0a0a0;
    font-style: italic;
    padding: 2rem;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: rgba(10, 10, 10, 0.9);
    padding: 3rem 0 1rem;
    border-top: 2px solid #d4af37;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #d4af37;
    margin-bottom: 1rem;
    font-family: 'IkonTitle', serif;
}

.footer-section a {
    color: #b0b0b0;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #d4af37;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    color: #a0a0a0;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .carousel-wrapper {
        height: 300px;
    }
    
    .features-grid,
    .community-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .carousel-wrapper {
        height: 250px;
    }
    
    .slide-caption {
        padding: 1rem;
    }
    
    .news-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .news-date {
        margin-left: 0;
    }
}
