/* =====================================================
   WeddingCam — Clean Modern UI
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,700&display=swap');

/* ── CSS Variables ──────────────────────────────── */
:root {
    --bg:           #f9fafb;
    --surface:      #ffffff;
    --surface-2:    #f3f4f6;
    --border:       #e5e7eb;
    --border-hover: #d1d5db;

    --text-primary:   #111827;
    --text-secondary: #6b7280;
    --text-muted:     #9ca3af;

    --accent:       #ec4899;
    --accent-light: #fce7f3;
    --accent-dark:  #be185d;
    --accent-glow:  rgba(236, 72, 153, 0.18);

    --dark:         #111827;
    --dark-2:       #1f2937;
    --dark-3:       #374151;

    --success:      #10b981;
    --danger:       #ef4444;

    --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
    --shadow-lg:  0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-accent: 0 8px 24px rgba(236, 72, 153, 0.25);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 999px;

    --transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --spring:     0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Page Layout ────────────────────────────────── */
.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

/* ── Card ───────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

/* ── Logo / Brand ───────────────────────────────── */
.brand-logo {
    width: 52px;
    height: 52px;
    background: var(--dark);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
}

.brand-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    text-align: center;
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 6px;
    font-weight: 400;
}

/* ── Divider ────────────────────────────────────── */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Rules List ─────────────────────────────────── */
.rules-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 20px 0;
}

.rules-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    transition: background var(--transition);
}

.rules-list li:hover {
    background: var(--surface-2);
}

.rules-list .icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Form ───────────────────────────────────────── */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    -webkit-appearance: none;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

/* ── Buttons ────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    width: 100%;
    letter-spacing: -0.01em;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.975);
}

.btn-primary {
    background: var(--dark);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--dark-2);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--border-hover);
    background: var(--surface-2);
    color: var(--text-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    width: auto;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 500;
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--surface-2);
}

/* ── Badge / Counter ────────────────────────────── */
.photo-counter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.15);
}

.photo-counter .used {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
}

/* ── Flash ──────────────────────────────────────── */
@keyframes flash {
    0%   { opacity: 0; }
    8%   { opacity: 0.85; }
    100% { opacity: 0; }
}

.flash-overlay {
    position: fixed;
    inset: 0;
    background: white;
    pointer-events: none;
    z-index: 9997;
    opacity: 0;
}

.flash-overlay.active {
    animation: flash 0.35s ease-out forwards;
}

/* ── Thumbnail Strip ────────────────────────────── */
.thumb-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 2px;
    scrollbar-width: none;
}

.thumb-strip::-webkit-scrollbar { display: none; }

.thumb-item {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.15);
    position: relative;
    cursor: pointer;
    transition: border-color var(--transition), transform var(--transition);
}

.thumb-item.active { border-color: var(--accent); }

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-empty {
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
    font-size: 1rem;
}

/* ── Toast ──────────────────────────────────────── */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-80px);
    background: var(--dark);
    color: #fff;
    padding: 11px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 10000;
    transition: transform 0.3s var(--spring);
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--dark-3);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ── Spinner ────────────────────────────────────── */
.spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Error Msg ──────────────────────────────────── */
.error-msg {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.82rem;
    color: var(--danger);
    text-align: center;
    margin-bottom: 16px;
}

/* ── Responsive ─────────────────────────────────── */
@media (min-width: 480px) {
    .card { padding: 44px 40px; }
    .brand-title { font-size: 2rem; }
}

@media (max-width: 360px) {
    .card { padding: 28px 22px; }
}

/* =====================================================
   SekaliJepret — Official Locked Brand Identity & Logo
   ===================================================== */
.sekalijepret-brand,
.brand-logo-text {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-style: italic !important;
    font-weight: 700 !important;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    letter-spacing: -0.01em !important;
    background: linear-gradient(135deg, #ffffff 0%, #ffe6c2 45%, #f5b041 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.95));
    line-height: 1.35 !important;
    display: inline-block !important;
    padding: 4px 10px 18px 4px !important;
    user-select: none;
    white-space: nowrap;
    text-decoration: none !important;
    vertical-align: middle;
}

/* Modifier ukuran logo teks */
.sekalijepret-brand.logo-xs {
    font-size: 0.95rem !important;
    padding: 2px 6px 10px 2px !important;
}
.sekalijepret-brand.logo-sm {
    font-size: 1.25rem !important;
    padding: 3px 8px 14px 3px !important;
}
.sekalijepret-brand.logo-md {
    font-size: 1.75rem !important;
    padding: 4px 10px 18px 4px !important;
}
.sekalijepret-brand.logo-lg {
    font-size: 2.3rem !important;
    padding: 6px 12px 22px 6px !important;
}

/* Versi gambar logo SVG / PNG */
.sekalijepret-img-logo {
    display: inline-block;
    height: auto;
    max-width: 100%;
    vertical-align: middle;
    user-select: none;
}
.sekalijepret-img-logo.logo-xs { height: 22px; }
.sekalijepret-img-logo.logo-sm { height: 32px; }
.sekalijepret-img-logo.logo-md { height: 46px; }
.sekalijepret-img-logo.logo-lg { height: 64px; }
