/* ==========================================================
 *  PAGES.CSS — Styling untuk halaman statis kumpulenak
 *  (About, DMCA, Contact, Privacy, Terms, Howto)
 *  File ini memuat semua style khusus halaman konten statis
 *  Menggunakan CSS variables dari gallery.css
 * ========================================================== */

/* ===== BREADCRUMB BAR ===== */
.breadcrumb-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px 0;
}

.breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.breadcrumb-inner a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.breadcrumb-inner a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.breadcrumb-sep {
    color: var(--text-muted);
    font-weight: 700;
}

.breadcrumb-current {
    color: var(--text-secondary);
    font-weight: 600;
}

/* ===== PAGE NAV (back button in header) ===== */
.page-nav {
    display: flex;
    align-items: center;
}

.nav-back {
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.85);
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-back:hover {
    background: #fff;
    transform: translateX(-2px);
}

/* ===== PAGE CONTENT WRAPPER ===== */
.page-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 20px;
}

.page-article {
    background: var(--content-wrapper-bg);
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 8px 40px rgba(232, 168, 0, 0.1);
    border: 1px solid rgba(232, 168, 0, 0.08);
}

[data-theme="light"] .page-article {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.06);
}

/* ===== PAGE TITLE ===== */
.page-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.page-title .highlight {
    background: linear-gradient(135deg, #e8a800, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
}

.page-divider {
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
    margin: 20px 0 32px;
}

/* ===== SECTIONS ===== */
.page-section {
    margin-bottom: 36px;
}

.page-section:last-child {
    margin-bottom: 0;
}

.page-section h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1.3;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.page-section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 16px 0 8px;
}

.page-section p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 12px;
}

.page-section code {
    background: rgba(232, 168, 0, 0.12);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'Fira Code', 'Consolas', monospace;
}

/* ===== PAGE LIST ===== */
.page-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.page-list li {
    position: relative;
    padding: 8px 0 8px 24px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .page-list li {
    border-bottom-color: rgba(0, 0, 0, 0.04);
}

.page-list li:last-child {
    border-bottom: none;
}

.page-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
}

/* ===== PAGE LINK ===== */
.page-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--accent);
    transition: all 0.2s;
}

.page-link:hover {
    color: #ffd700;
    border-bottom-color: #ffd700;
}

/* ===== PAGE ALERT BOX ===== */
.page-alert {
    background: rgba(232, 168, 0, 0.08);
    border: 1px solid rgba(232, 168, 0, 0.2);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    padding: 18px 20px;
    margin: 16px 0;
}

.page-alert.warning {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.2);
    border-left-color: #ef4444;
}

.page-alert p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ===== FEATURE GRID (About page) ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 18px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(232, 168, 0, 0.08);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(232, 168, 0, 0.15);
}

.feature-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.feature-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
    border: none;
    padding: 0;
}

.feature-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

[data-theme="light"] .feature-card {
    background: rgba(0, 0, 0, 0.02);
}

/* ===== STEPS LIST (Howto page) ===== */
.steps-list {
    margin: 20px 0;
}

.step-item {
    display: flex;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.step-item:last-child {
    border-bottom: none;
}

.step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent), #d49a00);
    color: #000;
    font-size: 18px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(232, 168, 0, 0.3);
}

.step-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
    border: none;
    padding: 0;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* ===== TIPS GRID (Howto page) ===== */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.tip-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s;
}

.tip-card:hover {
    background: rgba(232, 168, 0, 0.06);
    border-color: rgba(232, 168, 0, 0.2);
}

.tip-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.tip-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

[data-theme="light"] .tip-card {
    background: rgba(0, 0, 0, 0.02);
}

/* ===== FAQ LIST (Howto page) ===== */
.faq-list {
    margin: 16px 0;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: rgba(232, 168, 0, 0.3);
}

.faq-item[open] {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(232, 168, 0, 0.1);
}

.faq-item summary {
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '▾';
    font-size: 16px;
    color: var(--accent);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item summary:hover {
    background: rgba(232, 168, 0, 0.06);
}

.faq-item p {
    padding: 0 20px 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    animation: faqSlideIn 0.3s ease;
}

@keyframes faqSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CTA SECTION (Howto page) ===== */
.page-cta-section {
    text-align: center;
    padding: 30px 20px;
    background: rgba(232, 168, 0, 0.06);
    border-radius: 14px;
    border: 1px solid rgba(232, 168, 0, 0.15);
}

.page-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent), #d49a00);
    color: #000;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(232, 168, 0, 0.3);
    letter-spacing: 0.3px;
}

.page-cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(232, 168, 0, 0.45);
}

.page-cta-btn:active {
    transform: translateY(0);
}

/* ===== NUMBERED LIST (DMCA page) ===== */
.numbered-list {
    margin: 16px 0;
}

.numbered-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.numbered-item:last-child {
    border-bottom: none;
}

.number-badge {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), #d49a00);
    color: #000;
    font-size: 14px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.numbered-item p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ===== CONTACT BOX ===== */
.contact-box {
    background: rgba(232, 168, 0, 0.06);
    border: 1px solid rgba(232, 168, 0, 0.15);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    margin: 16px 0;
}

.email-link {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 10px;
    background: rgba(232, 168, 0, 0.1);
    border: 1px solid rgba(232, 168, 0, 0.2);
    transition: all 0.2s;
    margin: 8px 0;
}

.email-link:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(232, 168, 0, 0.3);
}

.contact-note {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== CONTACT CARDS (Contact page) ===== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.contact-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 16px;
    text-align: center;
    transition: all 0.3s;
}

.contact-card:hover {
    border-color: var(--accent);
    background: rgba(232, 168, 0, 0.06);
    transform: translateY(-3px);
}

.contact-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 10px;
}

.contact-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
    border: none;
    padding: 0;
}

.contact-card .email-link {
    font-size: 0.78rem;
    padding: 6px 14px;
    display: block;
    margin: 0 0 8px;
}

.contact-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

[data-theme="light"] .contact-card {
    background: rgba(0, 0, 0, 0.02);
}

/* ===== CONTACT FORM ===== */
.contact-form {
    margin: 20px 0;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.92rem;
    font-family: inherit;
    transition: all 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 168, 0, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e8a800' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== RESPONSIVE — Pages ===== */
@media (max-width: 768px) {
    .page-article {
        padding: 28px 20px;
    }

    .page-title {
        font-size: 1.7rem;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 12px 10px;
    }

    .page-article {
        padding: 22px 16px;
        border-radius: 12px;
    }

    .page-title {
        font-size: 1.4rem;
    }

    .page-subtitle {
        font-size: 0.88rem;
    }

    .page-section h2 {
        font-size: 1.15rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .step-item {
        gap: 12px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .breadcrumb-bar {
        padding: 8px 10px 0;
    }

    .breadcrumb-inner {
        padding: 8px 12px;
        font-size: 12px;
    }

    .nav-back {
        font-size: 12px;
        padding: 5px 12px;
    }
}

@media (max-width: 375px) {
    .page-title {
        font-size: 1.2rem;
    }

    .feature-card {
        padding: 16px 12px;
    }

    .contact-card {
        padding: 16px 12px;
    }
}
