﻿/** * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * 
 * Health & Traits Publications Error Page - Cinematic Design
 * Error page with earth tones and amber accents.
 */

/* ========================================
   ERROR PAGE WRAPPER
   ======================================== */

.pub-error-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

/* ========================================
   ERROR CARD
   ======================================== */

.pub-error-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 500px;
    width: 100%;
    padding: 3rem 2.5rem;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.98) 0%,
        rgba(248, 245, 240, 0.95) 100%
    );
    border: 1px solid rgba(139, 90, 43, 0.15);
    border-radius: 16px;
    box-shadow: 
        0 20px 60px rgba(139, 90, 43, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ========================================
   ERROR ICON
   ======================================== */

.pub-error-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    background: linear-gradient(135deg, 
        rgba(212, 160, 23, 0.15) 0%, 
        rgba(184, 134, 11, 0.1) 100%
    );
    border: 2px solid rgba(212, 160, 23, 0.3);
    border-radius: 50%;
}

.pub-error-icon i {
    font-size: 2.5rem;
    color: var(--dbc-accent);
}

/* ========================================
   ERROR TEXT
   ======================================== */

.pub-error-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--dbc-text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.pub-error-message {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dbc-text-muted);
    margin-bottom: 1.5rem;
}

/* ========================================
   ERROR ID
   ======================================== */

.pub-error-id {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    margin-bottom: 2rem;
    background: rgba(139, 90, 43, 0.06);
    border: 1px solid rgba(139, 90, 43, 0.1);
    border-radius: 8px;
}

.pub-error-id-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dbc-text-muted);
}

.pub-error-id-value {
    font-size: 0.85rem;
    font-family: 'Monaco', 'Consolas', monospace;
    color: var(--dbc-accent);
    background: transparent;
    padding: 0;
}

/* ========================================
   ERROR ACTIONS
   ======================================== */

.pub-error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.pub-error-actions .dbc-btn {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    justify-content: center;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 576px) {
    .pub-error-wrapper {
        padding: 1rem;
    }

    .pub-error-card {
        padding: 2rem 1.5rem;
    }

    .pub-error-icon {
        width: 70px;
        height: 70px;
    }

    .pub-error-icon i {
        font-size: 2rem;
    }

    .pub-error-title {
        font-size: 1.35rem;
    }

    .pub-error-message {
        font-size: 0.95rem;
    }

    .pub-error-actions {
        flex-direction: column;
    }

    .pub-error-actions .dbc-btn {
        max-width: 100%;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .pub-error-wrapper {
        min-height: auto;
    }

    .pub-error-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .pub-error-actions {
        display: none;
    }
}

