/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores da marca AdvCore */
    --advcore-navy: #2c3e50;
    --advcore-gold: #c2a02e;
    --advcore-gold-light: #e0c240;
    --advcore-dark: #1a252f;
    --advcore-light: #ecf0f1;
    --advcore-gray: #7f8c8d;
    --advcore-white: #ffffff;
    
    /* Gradientes premium */
    --premium-gradient: linear-gradient(135deg, #c2a02e, #e0c240);
    --error-gradient: linear-gradient(135deg, #e74c3c, #c0392b);
    --warning-gradient: linear-gradient(135deg, #f39c12, #e67e22);
    
    /* Efeitos de brilho */
    --gold-glow: 0 0 30px rgba(194, 160, 46, 0.6), 0 0 60px rgba(194, 160, 46, 0.4);
    --error-glow: 0 0 30px rgba(231, 76, 60, 0.6), 0 0 60px rgba(231, 76, 60, 0.4);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--advcore-dark);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Header */
.header {
    background: rgb(26 25 48);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo-img {
    height: 70px;
    width: auto;
    background-color: #1a1930;
    padding: 5px 10px;
    border-radius: 8px;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    background: var(--premium-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Error Section com Animações Geométricas */
.error-section {
    min-height: calc(100vh - 110px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    background: linear-gradient(135deg, var(--advcore-navy) 0%, var(--advcore-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.error-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Animações Geométricas de Fundo */
.geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.geometric-shape {
    position: absolute;
    border: 2px solid rgba(194, 160, 46, 0.3);
    animation: floatAndRotate 15s ease-in-out infinite;
}

.geometric-shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    border-radius: 50%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.geometric-shape:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    transform: rotate(45deg);
    animation-delay: 2s;
    animation-duration: 18s;
}

.geometric-shape:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 40%;
    left: 80%;
    border-radius: 20px;
    animation-delay: 4s;
    animation-duration: 14s;
}

.geometric-shape:nth-child(4) {
    width: 40px;
    height: 40px;
    top: 80%;
    left: 30%;
    border-radius: 50%;
    border-color: rgba(224, 194, 64, 0.4);
    animation-delay: 6s;
    animation-duration: 16s;
}

.geometric-shape:nth-child(5) {
    width: 70px;
    height: 70px;
    top: 15%;
    right: 30%;
    transform: rotate(30deg);
    border-color: rgba(194, 160, 46, 0.2);
    animation-delay: 8s;
    animation-duration: 20s;
}

@keyframes floatAndRotate {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) translateX(-15px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(20px) translateX(10px) rotate(270deg);
        opacity: 0.7;
    }
}

/* Error Content */
.error-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

/* Error Animation */
.error-animation {
    position: relative;
    margin-bottom: 2rem;
    animation: errorPulse 2s ease-in-out infinite;
}

.error-number {
    font-size: 6rem;
    font-weight: 800;
    background: var(--premium-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
    animation: numberGlow 3s ease-in-out infinite;
}

.error-icon {
    font-size: 3rem;
    color: var(--advcore-gold);
    animation: searchSpin 3s linear infinite;
    margin-bottom: 1rem;
}

@keyframes errorPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes numberGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(194, 160, 46, 0.5);
    }
    50% {
        text-shadow: 0 0 40px rgba(194, 160, 46, 0.8), 0 0 60px rgba(194, 160, 46, 0.6);
    }
}

@keyframes searchSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Error Text */
.error-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--premium-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-subtitle {
    font-size: 1.1rem;
    color: var(--advcore-light);
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Investigation Box */
.investigation-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(194, 160, 46, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    animation: boxGlow 4s ease-in-out infinite;
}

@keyframes boxGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(194, 160, 46, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(194, 160, 46, 0.4);
    }
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    background: var(--advcore-gold);
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.3s;
}

.dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.investigation-text {
    font-size: 1rem;
    color: var(--advcore-light);
    font-weight: 500;
}

/* Game Container */
.game-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(194, 160, 46, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    animation: gameGlow 4s ease-in-out infinite;
}

@keyframes gameGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(194, 160, 46, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(194, 160, 46, 0.5);
    }
}

.game-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--advcore-gold);
    margin-bottom: 0.5rem;
}

.game-instructions {
    font-size: 1rem;
    color: var(--advcore-light);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.game-area {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

#gameCanvas {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 2px solid var(--advcore-gold);
    max-width: 100%;
    height: auto;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    max-width: 100%;
    height: 200px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-overlay:hover {
    background: rgba(0, 0, 0, 0.8);
}

.game-start {
    text-align: center;
}

.game-start i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--advcore-gold);
    animation: playPulse 2s ease-in-out infinite;
}

@keyframes playPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.game-ui {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--advcore-light);
}

.score, .high-score {
    font-size: 1.1rem;
}

.score span, .high-score span {
    color: var(--advcore-gold);
    font-weight: 700;
}

/* Error Actions */
.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--premium-gradient);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(194, 160, 46, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(194, 160, 46, 0.6);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--advcore-gold);
}

.btn-secondary:hover {
    background: var(--advcore-gold);
    color: var(--advcore-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(194, 160, 46, 0.3);
}

/* Help Text */
.help-text {
    color: var(--advcore-light);
    opacity: 0.8;
}

.help-text p {
    margin-bottom: 1rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--advcore-gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--advcore-gold-light);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .error-number {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-subtitle {
        font-size: 1rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .investigation-box,
    .game-container {
        padding: 1.5rem;
    }
    
    .game-title {
        font-size: 1.3rem;
    }
    
    .game-instructions {
        font-size: 0.9rem;
    }
    
    .game-ui {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    /* Reduzir animações em mobile para performance */
    .geometric-shape {
        display: none;
    }
}

@media (max-width: 480px) {
    .error-number {
        font-size: 3rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-icon {
        font-size: 2rem;
    }
    
    .investigation-box,
    .game-container {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .game-title {
        font-size: 1.2rem;
    }
}

