/* ==================== ERROR 400 SECTION STYLING ==================== */

:root {
    --primary-color: #FF8800;
    --primary-hover: #E67600;
    --light-accent: #FFD7A3;
    --text: #1A1A1A;
    --background: #FFFFFF;
    --secondary-text: #333333;
    --border-color: #E5E5E5;
    --error-light: #FFF4E6;
    --error-dark: #D97700;
}

/* Error 400 Section */
.error-400-section {
    min-height: calc(100vh - 500px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--background) 0%, var(--error-light) 100%);
    position: relative;
    overflow: hidden;
}

.error-400-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--light-accent) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    z-index: 0;
    opacity: 0.3;
}

.error-400-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--light-accent) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    z-index: 0;
    opacity: 0.2;
}

.error-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Error Content */
.error-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Error Code Display */
.error-code-display {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
}

.error-code {
    font-size: 6rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    text-shadow: 2px 2px 8px rgba(255, 136, 0, 0.15);
}

.error-subtitle {
    font-size: 1.5rem;
    color: var(--error-dark);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Error Message Box */
.error-message-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.error-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
    margin: 0;
}

.error-description {
    font-size: 1.1rem;
    color: var(--secondary-text);
    line-height: 1.7;
    margin: 0;
    max-width: 500px;
}

/* Error Reasons Box */
.error-reasons-box {
    background: white;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(255, 136, 0, 0.1);
}

.reasons-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reasons-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reasons-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--secondary-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.reason-icon {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Error Actions */
.error-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    min-height: 48px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 136, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 136, 0, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--error-light);
    transform: translateY(-2px);
}

/* Error Support Box */
.error-support-box {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.support-text {
    font-size: 0.95rem;
    color: var(--secondary-text);
    margin: 0;
    font-weight: 500;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.support-link:hover {
    color: var(--primary-hover);
    transform: translateX(3px);
}

/* Error Illustration */
.error-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.illustration-graphic {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graphic-element {
    position: absolute;
    border: 3px solid var(--primary-color);
    opacity: 0.15;
}

.graphic-square {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    animation: float-square 4s ease-in-out infinite;
}

.graphic-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    animation: float-circle 5s ease-in-out infinite;
}

.error-icon-wrapper {
    font-size: 8rem;
    color: var(--primary-color);
    animation: bounce-icon 2s ease-in-out infinite;
}

@keyframes float-square {
    0%, 100% {
        transform: translateY(0) rotateZ(-5deg);
    }
    50% {
        transform: translateY(-30px) rotateZ(5deg);
    }
}

@keyframes float-circle {
    0%, 100% {
        transform: translateY(0) rotateZ(5deg);
    }
    50% {
        transform: translateY(30px) rotateZ(-5deg);
    }
}

@keyframes bounce-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ==================== TABLET RESPONSIVE (≤1024px) ==================== */

@media (max-width: 1024px) {
    .error-400-section {
        padding: 2.5rem 1.5rem;
        min-height: calc(100vh - 400px);
    }

    .error-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .error-code {
        font-size: 5rem;
    }

    .error-title {
        font-size: 2.2rem;
    }

    .error-description {
        font-size: 1rem;
    }

    .illustration-graphic {
        width: 280px;
        height: 280px;
    }

    .error-icon-wrapper {
        font-size: 6rem;
    }

    .graphic-square {
        width: 240px;
        height: 240px;
    }

    .graphic-circle {
        width: 200px;
        height: 200px;
    }
}

/* ==================== MOBILE RESPONSIVE (≤768px) ==================== */

@media (max-width: 768px) {
    .error-400-section {
        padding: 2rem 1rem;
        min-height: calc(100vh - 350px);
    }

    .error-400-section::before {
        width: 300px;
        height: 300px;
        top: -100px;
        right: -100px;
    }

    .error-400-section::after {
        width: 200px;
        height: 200px;
        bottom: -80px;
        left: -80px;
    }

    .error-code {
        font-size: 4rem;
    }

    .error-subtitle {
        font-size: 1.2rem;
    }

    .error-title {
        font-size: 1.8rem;
    }

    .error-description {
        font-size: 0.95rem;
    }

    .error-actions {
        gap: 0.75rem;
        margin-top: 0.75rem;
    }

    .btn-action {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
        flex: 1;
        min-width: 150px;
    }

    .illustration-graphic {
        width: 220px;
        height: 220px;
        display: none;
    }

    .error-reasons-box {
        padding: 1.25rem;
    }

    .reasons-title {
        font-size: 0.9rem;
    }

    .reasons-list li {
        font-size: 0.9rem;
        gap: 0.6rem;
    }

    .error-support-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .support-text {
        font-size: 0.9rem;
    }
}

/* ==================== SMALL MOBILE RESPONSIVE (≤480px) ==================== */

@media (max-width: 480px) {
    .error-400-section {
        padding: 1.5rem 1rem;
        min-height: calc(100vh - 300px);
    }

    .error-400-section::before {
        width: 200px;
        height: 200px;
        top: -80px;
        right: -80px;
        opacity: 0.2;
    }

    .error-400-section::after {
        width: 150px;
        height: 150px;
        bottom: -60px;
        left: -60px;
        opacity: 0.15;
    }

    .error-code-display {
        margin-bottom: 0.5rem;
    }

    .error-code {
        font-size: 3rem;
    }

    .error-subtitle {
        font-size: 1rem;
    }

    .error-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .error-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .error-message-box {
        gap: 0.75rem;
    }

    .error-reasons-box {
        padding: 1rem;
        margin-top: 0.5rem;
    }

    .reasons-title {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .reasons-list li {
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .error-actions {
        gap: 0.5rem;
        flex-direction: column;
        margin-top: 0.5rem;
    }

    .btn-action {
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        min-width: unset;
    }

    .error-support-box {
        padding-top: 1rem;
        gap: 0.5rem;
    }

    .support-text {
        font-size: 0.85rem;
    }

    .support-link {
        font-size: 0.9rem;
    }
}
