/* Homepage Specific Styles */

/* Hero Section */
.hero {
    padding: 120px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

/* Logo Section */
.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
}

.hero-logo .logo-icon {
    width: 40px;
    height: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.hero-logo .logo-icon img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
}

.hero-title {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 28px;
    line-height: 1.4;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

/* 3 Images Horizontally - Homepage Only */
.homepage-main .featured-images {
    display: flex !important;
    justify-content: center !important;
    gap: 30px !important;
    margin-bottom: 40px !important;
    align-items: center !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

/* Slogan Below Images */
.hero-slogan {
    font-size: 18px;
    color: #a855f7;
    margin-bottom: 50px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.homepage-main .featured-image {
    width: 150px !important;
    height: 150px !important;
    border: 2px solid #333333;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    flex-shrink: 0 !important;
    display: block !important;
}

.homepage-main .featured-image:hover {
    border-color: #a855f7;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
    transform: translateY(-5px);
}

.homepage-main .featured-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.homepage-main .featured-image:hover .featured-actions {
    opacity: 1;
}

.homepage-main .featured-share-btn {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #a855f7;
    color: #a855f7;
    padding: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.homepage-main .featured-share-btn:hover {
    background: #a855f7;
    color: #000000;
    transform: scale(1.1);
}

.homepage-main .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.homepage-main .featured-image:hover img {
    transform: scale(1.05);
}

.homepage-main .featured-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: linear-gradient(45deg, #1a1a1a 25%, #2a2a2a 25%, #2a2a2a 50%, #1a1a1a 50%, #1a1a1a 75%, #2a2a2a 75%);
    background-size: 20px 20px;
    animation: placeholder-shift 2s linear infinite;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 10px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: #a855f7;
    border-color: #a855f7;
    color: #000000;
}

.btn-primary:hover {
    background-color: #9333ea;
    border-color: #9333ea;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border-color: #a855f7;
    color: #a855f7;
}

.btn-secondary:hover {
    background-color: #a855f7;
    color: #000000;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: #666666;
    color: #666666;
}

.btn-outline:hover {
    border-color: #a855f7;
    color: #a855f7;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.pixel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 200px;
    height: 200px;
    position: relative;
}

.pixel {
    width: 40px;
    height: 40px;
    background: #333333;
    border: 1px solid #555555;
    animation: pixel-glow 3s ease-in-out infinite;
}

.pixel-1 { animation-delay: 0s; background: #a855f7; }
.pixel-2 { animation-delay: 0.2s; background: #9333ea; }
.pixel-3 { animation-delay: 0.4s; background: #c084fc; }
.pixel-4 { animation-delay: 0.6s; background: #a855f7; }
.pixel-5 { animation-delay: 0.8s; background: #9333ea; }
.pixel-6 { animation-delay: 1s; background: #c084fc; }
.pixel-7 { animation-delay: 1.2s; background: #a855f7; }
.pixel-8 { animation-delay: 1.4s; background: #9333ea; }
.pixel-9 { animation-delay: 1.6s; background: #c084fc; }
.pixel-10 { animation-delay: 1.8s; background: #a855f7; }
.pixel-11 { animation-delay: 2s; background: #9333ea; }
.pixel-12 { animation-delay: 2.2s; background: #c084fc; }
.pixel-13 { animation-delay: 2.4s; background: #a855f7; }
.pixel-14 { animation-delay: 2.6s; background: #9333ea; }
.pixel-15 { animation-delay: 2.8s; background: #c084fc; }
.pixel-16 { animation-delay: 3s; background: #a855f7; }

@keyframes pixel-glow {
    0%, 100% {
        box-shadow: 0 0 5px currentColor;
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px currentColor;
        transform: scale(1.1);
    }
}

/* Mobile Responsive */

/* Navigation Link */
.nav-link {
    display: flex;
    align-items: center;
    color: #a855f7;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #a855f7;
    border-radius: 0;
    transition: all 0.3s ease;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 15px;
}

.nav-link:hover {
    background-color: #a855f7;
    color: #000000;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    background: #1a1a1a;
    border: 2px solid #333333;
    border-radius: 0;
    text-align: center;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background-color: transparent;
    border: none;
    padding: 5px;
    line-height: 1;
}

.close:hover {
    color: #a855f7;
    background-color: transparent;
}

#modalImage {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.modal-info {
    padding: 20px;
    background: #1a1a1a;
}

.modal-info h3 {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 12px;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.4;
}

#modalTraits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

#modalTraits .trait {
    background: #333333;
    color: #a855f7;
    padding: 4px 8px;
    border-radius: 0;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer Styles */
.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-section h3 {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 12px;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.footer-subtitle {
    font-size: 8px;
    color: #888888;
    text-align: center;
    margin: 0;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
        min-height: 70vh;
    }
    
    .hero-logo {
        margin-bottom: 40px;
    }
    
    .hero-logo .logo-icon {
        width: 30px;
        height: 15px;
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .homepage-main .featured-images {
        gap: 20px !important;
        margin-bottom: 30px !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
    
    .homepage-main .featured-image {
        width: 120px !important;
        height: 120px !important;
    }
    
    .hero-slogan {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 9px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 7px;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
        min-height: 60vh;
    }
    
    .hero-logo {
        margin-bottom: 30px;
    }
    
    .hero-logo .logo-icon {
        width: 25px;
        height: 12px;
    }
    
    .hero-title {
        font-size: 16px;
    }
    
    .homepage-main .featured-images {
        gap: 15px !important;
        margin-bottom: 25px !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
    
    .homepage-main .featured-image {
        width: 100px !important;
        height: 100px !important;
    }
    
    .featured-placeholder {
        font-size: 24px;
    }
    
    .hero-slogan {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 8px;
    }
}
