/* ============================================
   404 ERROR PAGE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.error-page {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    overflow-x: hidden;
}

.error-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

/* Animated Background */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.tattoo-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #d4a574, transparent);
    opacity: 0.1;
    animation: floatLine 8s ease-in-out infinite;
}

.tattoo-line:nth-child(1) {
    width: 300px;
    height: 2px;
    top: 20%;
    left: -300px;
    animation-delay: 0s;
}

.tattoo-line:nth-child(2) {
    width: 400px;
    height: 2px;
    top: 50%;
    right: -400px;
    animation-delay: 2s;
}

.tattoo-line:nth-child(3) {
    width: 350px;
    height: 2px;
    bottom: 20%;
    left: -350px;
    animation-delay: 4s;
}

.tattoo-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #d4a574;
    border-radius: 50%;
    opacity: 0.15;
    animation: floatDot 6s ease-in-out infinite;
}

.tattoo-dot:nth-child(4) {
    top: 30%;
    right: 10%;
    animation-delay: 0s;
}

.tattoo-dot:nth-child(5) {
    bottom: 30%;
    left: 10%;
    animation-delay: 2s;
}

.tattoo-dot:nth-child(6) {
    top: 60%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes floatLine {
    0%, 100% {
        transform: translateX(0) translateY(0);
        opacity: 0.1;
    }
    50% {
        transform: translateX(600px) translateY(20px);
        opacity: 0.3;
    }
}

@keyframes floatDot {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.15;
    }
    50% {
        transform: translate(30px, -30px);
        opacity: 0.3;
    }
}

/* Main Content */
.error-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error Animation */
.error-animation {
    margin-bottom: 40px;
    animation: bounce 2s ease-in-out infinite;
}

.error-svg {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    display: block;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes spinNeedle {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(45deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* Error Code */
.error-code {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 120px;
    font-weight: 900;
    letter-spacing: 10px;
}

.code-4,
.code-0 {
    display: inline-block;
    color: #d4a574;
    text-shadow: 0 0 20px rgba(212, 165, 116, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.code-4:nth-of-type(2) {
    animation-delay: 0.3s;
}

.code-0 {
    animation-delay: 0.6s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Error Title */
.error-title {
    font-size: 36px;
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Error Subtitle */
.error-subtitle {
    font-size: 16px;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* Error Description */
.error-description {
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 40px;
    color: #ddd;
    font-size: 14px;
    line-height: 1.6;
}

/* Action Buttons */
.error-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.error-page .btn {
    padding: 14px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
}

.error-page .btn-primary {
    background-color: #d4a574;
    color: white;
}

.error-page .btn-primary:hover {
    background-color: #c99563;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
}

.error-page .btn-secondary {
    background-color: transparent;
    color: #d4a574;
    border: 2px solid #d4a574;
}

.error-page .btn-secondary:hover {
    background-color: #d4a574;
    color: white;
    transform: translateY(-3px);
}

.error-page .btn-icon {
    font-size: 18px;
}

/* Error Links */
.error-links {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 165, 116, 0.2);
}

.error-links p {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.error-links ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.error-links li a {
    display: block;
    padding: 12px 15px;
    background: rgba(212, 165, 116, 0.05);
    color: #d4a574;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 600;
}

.error-links li a:hover {
    background: rgba(212, 165, 116, 0.15);
    transform: translateX(5px);
}

/* Floating Elements */
.floating-element {
    position: absolute;
    font-size: 40px;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
    z-index: 5;
}

.element-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.element-2 {
    top: 20%;
    right: 8%;
    animation-delay: 0.5s;
}

.element-3 {
    bottom: 15%;
    left: 8%;
    animation-delay: 1s;
}

.element-4 {
    bottom: 20%;
    right: 5%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
        opacity: 0.6;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .error-code {
        font-size: 80px;
        gap: 15px;
        letter-spacing: 5px;
    }

    .error-title {
        font-size: 28px;
    }

    .error-subtitle {
        font-size: 15px;
    }

    .error-actions {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .error-links ul {
        grid-template-columns: 1fr;
    }

    .error-animation {
        margin-bottom: 30px;
    }

    .error-svg {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .error-container {
        padding: 15px;
    }

    .error-code {
        font-size: 60px;
        gap: 10px;
        letter-spacing: 3px;
        margin-bottom: 20px;
    }

    .error-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .error-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .error-description {
        padding: 15px;
        font-size: 13px;
        margin-bottom: 30px;
    }

    .error-actions {
        margin-bottom: 30px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 13px;
    }

    .btn-icon {
        font-size: 16px;
    }

    .error-links {
        margin-top: 30px;
        padding-top: 20px;
    }

    .error-links p {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .error-links li a {
        padding: 10px 12px;
        font-size: 12px;
    }

    .error-animation {
        margin-bottom: 20px;
    }

    .error-svg {
        width: 120px;
        height: 120px;
    }

    .floating-element {
        font-size: 30px;
    }
}

/* Dark Mode (Already applied) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #d4a574;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c99563;
}