/* Page generated by Google Gemini */
/* error-styles.css */

:root {
  /* --- Your Color Palette --- */
  --primary-bg-color: #1C1A25;
  --secondary-bg-color: #110F1A;
  --nav-color: #79C99E;
  --accent-color: #64B7BC;
  --text-color: #EBEBEB;
  --text-accent-color: #7E7D83;
  --heading-color: #4EA5D9;
  --heading-accent-color: #e7BBe3;
  --error-color: #E85F5C;
}

/* --- Theming Logic --- */

/* Default / Maintenance Theme (503) */
body.type-maintenance {
    --theme-primary: var(--heading-color);
    --theme-secondary: var(--heading-accent-color);
    --theme-border: rgba(255, 255, 255, 0.05);
    --theme-tint: rgba(255, 255, 255, 0.03);
}

/* Bad Gateway Theme (502) */
body.type-502 {
    --theme-primary: var(--error-color);
    --theme-secondary: #b94b48;
    --theme-border: rgba(232, 95, 92, 0.2);
    --theme-tint: rgba(232, 95, 92, 0.05);
}

/* Gateway Timeout Theme (504) */
body.type-504 {
    --theme-primary: var(--nav-color);
    --theme-secondary: var(--accent-color);
    --theme-border: rgba(121, 201, 158, 0.2);
    --theme-tint: rgba(121, 201, 158, 0.05);
}

/* --- Teapot Theme (418) --- */
body.type-418 {
    /* Using your Pink/Purple accent colors for a whimsical look */
    --theme-primary: var(--heading-accent-color); /* #e7BBe3 */
    --theme-secondary: var(--heading-color);      /* #4EA5D9 */
    --theme-border: rgba(231, 187, 227, 0.2);
    --theme-tint: rgba(231, 187, 227, 0.05);
}

/* 418 Prompt Color */
body.type-418 .prompt {
    color: var(--heading-accent-color);
}

/* 418 Special Animation: Steam/Tilt */
@keyframes rock-and-steam {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}
body.type-418 .icon span {
    display: inline-block;
    animation: rock-and-steam 3s ease-in-out infinite;
    cursor: help;
}

/* --- Not Found Theme (404) --- */
body.type-404 {
    /* Purple/Pink mystery vibe */
    --theme-primary: var(--heading-accent-color); /* #e7BBe3 */
    --theme-secondary: var(--heading-color);      /* #4EA5D9 */
    --theme-border: rgba(231, 187, 227, 0.2);
    --theme-tint: rgba(231, 187, 227, 0.05);
}

body.type-404 .prompt {
    color: var(--heading-accent-color);
}

/* 404 Animation: Floating/Searching */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
body.type-404 .icon span {
    animation: float 4s ease-in-out infinite;
}

/* --- Global Layout --- */

body {
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    background-color: var(--primary-bg-color);
    color: var(--text-color);
    height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.container {
    background: var(--secondary-bg-color);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--theme-border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    max-width: 550px;
    width: 90%;
    position: relative;
    overflow: hidden;
}

/* The Top Gradient Bar */
.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--theme-primary), var(--theme-secondary));
}

/* --- Typography --- */

h1 {
    color: var(--theme-primary);
    margin-top: 0.5rem;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
}

.highlight {
    color: var(--text-color);
}
/* Maintenance specific highlight override */
body.type-maintenance .highlight {
    color: var(--heading-accent-color);
}

p {
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.sub-text {
    color: var(--text-accent-color);
    font-size: 0.9rem;
    margin-top: 2rem;
    margin-bottom: 0;
}

/* --- Components --- */

.icon {
    font-size: 3.5rem;
    color: var(--theme-primary);
    margin-bottom: 1.5rem;
}
.icon span {
    display: inline-block;
}

.status-box {
    background-color: var(--theme-tint);
    border: 1px dashed var(--theme-primary);
    padding: 1rem;
    border-radius: 6px;
    display: inline-block;
    margin-top: 1rem;
    text-align: left;
    /* Ensure box fits content or container */
    width: 100%; 
    box-sizing: border-box; 
}

/* Center the box content for Maintenance mode only, leave left-aligned for terminal logs */
body.type-maintenance .status-box {
    text-align: center;
    width: auto;
}

.status-code {
    font-weight: bold;
    color: var(--error-color);
    display: block;
    margin-bottom: 0.25rem;
}

.status-msg {
    font-size: 0.85rem;
    color: var(--nav-color);
}

.status-line {
    display: block;
    font-family: monospace;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.prompt {
    color: var(--accent-color); /* Default prompt color */
    margin-right: 0.5rem;
}
/* 502 Prompt specific color */
body.type-502 .prompt {
    color: var(--nav-color);
}

/* --- Animations --- */

/* 503 Breathe */
@keyframes breathe {
    0% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.8; transform: scale(1); }
}
body.type-maintenance .icon span {
    animation: breathe 3s infinite ease-in-out;
}

/* 502 Glitch */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}
body.type-502 .icon span {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    animation-play-state: paused;
}
body.type-502 .icon:hover span {
    animation-play-state: running;
}

/* 504 Loading Dots */
@keyframes blink {
    0% { opacity: 0.2; }
    20% { opacity: 1; }
    100% { opacity: 0.2; }
}
.dots span {
    animation: blink 1.4s infinite both;
}
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }
/* --- Under Construction Theme (200 OK) --- */
body.type-construction {
    --theme-primary: var(--accent-color); /* #64B7BC */
    --theme-secondary: var(--nav-color);  /* #79C99E */
    --theme-border: rgba(100, 183, 188, 0.2);
    --theme-tint: rgba(100, 183, 188, 0.05);
}

body.type-construction .prompt {
    color: var(--accent-color);
}

/* 200 Animation: Slowly spinning gear */
@keyframes spin-gear {
    100% { transform: rotate(360deg); }
}
body.type-construction .icon span {
    animation: spin-gear 12s linear infinite;
    display: inline-block;
}
