/* Component Imports */
@import 'components.css';

/**
 * Public Pages Styles
 * Rumah Inggris Lampung
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.7;
    color: #1a1a2e;
    background: #f8f9fc;
}

.header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    text-align: center;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.header a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.content h1,
.content h2,
.content h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: #1a1a2e;
}

.content h1:first-child,
.content h2:first-child {
    margin-top: 0;
}

.content p {
    margin-bottom: 16px;
    color: #4a5568;
}

.content ul,
.content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.content li {
    margin-bottom: 8px;
    color: #4a5568;
}

.content a {
    color: #667eea;
}

.back-link {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.updated {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #718096;
}

/* 404 Page */
.error-page {
    text-align: center;
    padding: 60px 20px;
}

.error-page h1 {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 16px;
}

.error-page p {
    color: #718096;
    margin-bottom: 24px;
}

/* =========================================
   TOGGLE ANIMATIONS (PUBLIC)
   ========================================= */

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes beat {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

@keyframes rubberBand {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.25, 0.75);
    }

    40% {
        transform: scale(0.75, 1.25);
    }

    50% {
        transform: scale(1.15, 0.85);
    }

    65% {
        transform: scale(0.95, 1.05);
    }

    75% {
        transform: scale(1.05, 0.95);
    }

    100% {
        transform: scale(1);
    }
}

/* Animation Classes */
.anim-pulse {
    animation: pulse 2s infinite;
}

.anim-beat {
    animation: beat 1.5s infinite;
}

.anim-rotate {
    animation: rotate 2s linear infinite;
}

.anim-bounce {
    animation: bounce 2s infinite;
}

.anim-shake {
    animation: shake 1s infinite;
}

.anim-rubberBand {
    animation: rubberBand 1s infinite;
}