/* ==========================================================================
   Thomas Concrete Group - Static Web App Styles
   ========================================================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: white;
}

/* Logo Container - Used on all pages
   ========================================================================== */
.logo-container {
    text-align: center;
    padding: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.logo-container img {
    max-width: 300px;
    height: auto;
    width: 100%;
}

/* Index Page - Simple centered logo
   ========================================================================== */
body.index-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

body.index-page .logo-container img {
    filter: none;
}

/* Error Pages - Colored backgrounds
   ========================================================================== */
.container {
    text-align: center;
    padding: 2rem;
    max-width: 700px;
    width: 100%;
}

.error-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* 502 Page - Purple gradient
   ========================================================================== */
body.error-502 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.error-502 .logo-container img,
body.error-403 .logo-container img {
    filter: brightness(0) invert(1);
}

/* 403 Page - Red gradient
   ========================================================================== */
body.error-403 {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* 404 Page - Orange gradient
   ========================================================================== */
body.error-404 {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

body.error-404 .logo-container img {
    filter: brightness(0) invert(1);
}

/* Error Page Typography
   ========================================================================== */
.error-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -4px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.error-403 .error-code {
    background: linear-gradient(45deg, #fff, #ffcccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-message {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.description {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Suggestions & Info Boxes
   ========================================================================== */
.suggestions,
.info-box {
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.suggestions {
    text-align: left;
}

.info-box {
    border-left: 4px solid rgba(255, 255, 255, 0.5);
}

.suggestions h3,
.info-box h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-box h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestions ul {
    list-style: none;
    padding-left: 0;
}

.suggestions li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    opacity: 0.9;
}

.suggestions li:before {
    content: "→";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.info-box p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
    text-align: left;
}

.contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Animations
   ========================================================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .logo-container img {
        max-width: 220px;
    }
    
    .error-code {
        font-size: 5rem;
    }
    
    .error-message {
        font-size: 1.5rem;
    }
    
    .error-container {
        padding: 2rem 1.5rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .error-icon {
        font-size: 3.5rem;
    }
}
