/* Error Pages Styles */

/* Base Error Page Styles */
.error-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.error-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
}

.error-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.error-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Error Animation Styles */
.error-animation {
    margin-bottom: 2rem;
}

.error-number {
    font-size: 8rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: #667eea;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.digit {
    display: inline-block;
    animation: bounce 2s infinite;
}

.digit:nth-child(2) {
    animation-delay: 0.2s;
}

.digit:nth-child(3) {
    animation-delay: 0.4s;
}

.glitch {
    position: relative;
    color: #ff6b6b;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: #00ffff;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: #ff00ff;
    z-index: -2;
}

/* Error Message Styles */
.error-message {
    margin-bottom: 2rem;
}

.error-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.error-description {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Error Actions */
.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Error Links */
.error-links {
    margin-bottom: 2rem;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.error-links h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    text-align: center;
}

.error-links ul {
    list-style: none;
    padding: 0;
}

.error-links li {
    margin-bottom: 0.5rem;
}

.error-links a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.error-links a:hover {
    color: #764ba2;
}

/* Error Search */
.error-search {
    margin-bottom: 2rem;
}

.error-search h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.search-box {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    outline: none;
    font-size: 1rem;
}

.search-box button {
    padding: 0.75rem 1rem;
    background: #667eea;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: #764ba2;
}

/* Background Elements */
.error-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    top: 40%;
    right: 30%;
    animation-delay: 1s;
}

/* Server Error Specific Styles */
.server-error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.server-error-number {
    color: #ff6b6b;
}

.pulse {
    animation: pulse 1.5s infinite;
}

.server-icon {
    position: relative;
    margin: 2rem 0;
}

.server-icon i {
    font-size: 4rem;
    color: #ff6b6b;
    transition: color 0.5s ease;
}

.error-sparks {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffd700;
    border-radius: 50%;
    animation: spark 2s infinite;
}

.spark:nth-child(1) {
    top: -20px;
    left: -10px;
}

.spark:nth-child(2) {
    top: -15px;
    right: -15px;
}

.spark:nth-child(3) {
    bottom: -20px;
    left: 5px;
}

.error-status {
    margin: 2rem 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #4a5568;
}

.status-item i {
    color: #667eea;
}

.error-contact {
    margin: 2rem 0;
}

.error-contact h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.contact-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid #667eea;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: #667eea;
    color: white;
}

/* Circuit Pattern for Server Error */
.circuit-pattern {
    position: relative;
    width: 100%;
    height: 100%;
}

.circuit-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    animation: circuit-flow 3s infinite;
}

.line-1 {
    width: 200px;
    height: 2px;
    top: 30%;
    left: 10%;
    transform: rotate(45deg);
}

.line-2 {
    width: 150px;
    height: 2px;
    top: 60%;
    right: 15%;
    transform: rotate(-30deg);
}

.line-3 {
    width: 100px;
    height: 2px;
    bottom: 25%;
    left: 30%;
    transform: rotate(60deg);
}

.circuit-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00ffff;
    border-radius: 50%;
    animation: node-pulse 2s infinite;
}

.node-1 {
    top: 25%;
    left: 20%;
}

.node-2 {
    top: 65%;
    right: 25%;
}

.node-3 {
    bottom: 30%;
    left: 35%;
}

/* Maintenance Page Styles */
.maintenance-page {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.maintenance-content {
    max-width: 900px;
}

.maintenance-animation {
    margin-bottom: 2rem;
}

.maintenance-icon {
    position: relative;
    margin-bottom: 2rem;
}

.maintenance-icon > i {
    font-size: 4rem;
    color: #4facfe;
}

.gear {
    position: absolute;
    font-size: 2rem;
}

.gear-1 {
    top: -10px;
    right: -20px;
    color: #00f2fe;
    animation: rotate 4s linear infinite;
}

.gear-2 {
    bottom: -10px;
    left: -20px;
    color: #4facfe;
    animation: rotate 3s linear infinite reverse;
}

.progress-bar {
    width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin: 0 auto;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.maintenance-logo {
    margin-bottom: 2rem;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    font-family: 'Space Grotesk', sans-serif;
    display: block;
}

.logo-tagline {
    font-size: 1rem;
    color: #4a5568;
    margin-top: 0.5rem;
    display: block;
}

.maintenance-timer {
    margin: 2rem 0;
}

.maintenance-timer h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.time-unit {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 10px;
    min-width: 80px;
}

.time-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #4facfe;
    font-family: 'Space Grotesk', sans-serif;
}

.time-label {
    display: block;
    font-size: 0.8rem;
    color: #4a5568;
    margin-top: 0.25rem;
}

.time-separator {
    font-size: 2rem;
    color: #4facfe;
    align-self: center;
}

.maintenance-updates {
    margin: 2rem 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.maintenance-updates h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    text-align: center;
}

.update-list {
    list-style: none;
    padding: 0;
}

.update-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #4a5568;
}

.update-list i {
    color: #4facfe;
}

.maintenance-social {
    margin: 2rem 0;
}

.maintenance-social h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    color: #4facfe;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #4facfe;
    color: white;
    transform: translateY(-3px);
}

.maintenance-newsletter {
    margin: 2rem 0;
}

.maintenance-newsletter h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    outline: none;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 0.75rem 1rem;
    background: #4facfe;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-form button:hover {
    background: #00f2fe;
}

.floating-tools {
    position: relative;
    width: 100%;
    height: 100%;
}

.tool {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.1);
    animation: float 8s ease-in-out infinite;
}

.tool-1 {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.tool-2 {
    top: 25%;
    right: 10%;
    animation-delay: 2s;
}

.tool-3 {
    bottom: 30%;
    left: 15%;
    animation-delay: 4s;
}

.tool-4 {
    bottom: 15%;
    right: 20%;
    animation-delay: 6s;
}

/* Footer Styles */
.error-footer {
    background: rgba(0, 0, 0, 0.1);
    padding: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes glitch-1 {
    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);
    }
}

@keyframes glitch-2 {
    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);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes spark {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

@keyframes circuit-flow {
    0% {
        box-shadow: 0 0 0 rgba(0, 255, 255, 0);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    }
    100% {
        box-shadow: 0 0 0 rgba(0, 255, 255, 0);
    }
}

@keyframes node-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .error-number {
        font-size: 6rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-content {
        padding: 2rem 1rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .countdown {
        gap: 0.5rem;
    }
    
    .time-unit {
        min-width: 60px;
        padding: 0.75rem;
    }
    
    .time-value {
        font-size: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .error-number {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
    
    .logo-text {
        font-size: 2rem;
    }
} 