/* ============================================
   MazeCore Stylesheet
   Fun, game-store aesthetic with playful elements
   ============================================ */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--dark-color) 0%, #2d2d44 100%);
    color: var(--light-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* === ANIMATED BACKGROUND === */
.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.maze-pattern {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 30px, rgba(255, 107, 53, 0.03) 30px, rgba(255, 107, 53, 0.03) 32px),
        repeating-linear-gradient(0deg, transparent, transparent 30px, rgba(255, 107, 53, 0.03) 30px, rgba(255, 107, 53, 0.03) 32px);
    animation: rotate-slow 60s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--accent-color);
    top: 60%;
    right: 15%;
    animation-delay: -7s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: var(--secondary-color);
    bottom: 20%;
    left: 20%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-30px) translateX(20px); }
    50% { transform: translateY(-10px) translateX(-20px); }
    75% { transform: translateY(-40px) translateX(10px); }
}

/* === CONTAINER === */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    animation: fadeIn 0.8s ease-out;
}

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

/* === HEADER === */
.site-header {
    text-align: center;
    padding: 3rem 0 2rem;
    animation: slideDown 0.6s ease-out;
}

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

.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.site-logo {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--primary-color);
    text-shadow: 
        3px 3px 0 var(--secondary-color),
        6px 6px 0 var(--accent-color),
        6px 6px 20px rgba(255, 107, 53, 0.3);
    letter-spacing: 2px;
    transform: rotate(-2deg);
    display: inline-block;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { text-shadow: 3px 3px 0 var(--secondary-color), 6px 6px 0 var(--accent-color), 6px 6px 20px rgba(255, 107, 53, 0.3); }
    50% { text-shadow: 3px 3px 0 var(--secondary-color), 6px 6px 0 var(--accent-color), 6px 6px 30px rgba(255, 107, 53, 0.5); }
}

.logo-decoration {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.site-tagline {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 0.5rem;
}

/* === MAIN CONTENT === */
.main-content {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === GAME CARD === */
.game-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.card-ribbon {
    position: absolute;
    top: 45px;
    right: -65px;
    background: var(--primary-color);
    color: var(--dark-color);
    padding: 8px 50px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.game-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--light-color);
    margin-bottom: 1rem;
    text-align: center;
}

.game-description {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === FEATURES GRID === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.feature-text strong {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 700;
}

.feature-text span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* === CTA BUTTON === */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c5a 100%);
    color: var(--dark-color);
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 1.5rem 3rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 
        0 10px 30px rgba(255, 107, 53, 0.4),
        0 0 0 3px var(--dark-color),
        0 0 0 5px var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    display: flex;
}

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

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(255, 107, 53, 0.5),
        0 0 0 3px var(--dark-color),
        0 0 0 5px var(--primary-color);
}

.cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

.button-text, .button-arrow {
    position: relative;
    z-index: 1;
}

.button-arrow {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.cta-button:hover .button-arrow {
    transform: translateX(5px);
}

/* === DISABLED CTA === */
.cta-disabled {
    background: linear-gradient(135deg, #555 0%, #777 100%);
    color: rgba(255, 255, 255, 0.6);
    cursor: not-allowed;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 3px var(--dark-color),
        0 0 0 5px #555;
}

.cta-disabled:hover {
    transform: none;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 3px var(--dark-color),
        0 0 0 5px #555;
}

.cta-disabled::before {
    display: none;
}

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

.coming-soon-message {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* === INFO BOXES === */
.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
}

.info-box h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-box p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

/* === FOOTER === */
.site-footer {
    text-align: center;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .site-header {
        padding: 2rem 0 1.5rem;
    }
    
    .game-card {
        padding: 2rem 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-button {
        font-size: 1.2rem;
        padding: 1.2rem 2rem;
    }
    
    .card-ribbon {
        font-size: 0.7rem;
        padding: 6px 40px;
    }
}

@media (max-width: 480px) {
    .site-logo {
        font-size: 2.5rem;
    }
    
    .site-tagline {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
    
    .game-card {
        padding: 1.5rem 1rem;
    }
    
    .feature {
        flex-direction: column;
        text-align: center;
    }
}
