/* ═══════════════════════════════════════════════════════════════
   HİSSİYAD — Global Premium Design System v1.0
   Düşüncenin Yeni Dili
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════ DESIGN TOKENS ═══════════ */
:root {
    /* Brand Colors */
    --copper: #B48052;
    --copper-light: #d4a574;
    --copper-dark: #8B5E3C;
    --copper-glow: rgba(180, 128, 82, 0.15);
    --copper-subtle: rgba(180, 128, 82, 0.08);

    /* Neutrals */
    --dark: #1A1512;
    --dark-soft: #2A2420;
    --cream: #F5F1E8;
    --cream-dark: #ede6d8;
    --white: #FFFFFF;
    --bg: #f8f6f2;

    /* Text */
    --text: #2c2c2c;
    --text-secondary: #666;
    --text-muted: #999;

    /* Semantic */
    --success: #2E7D32;
    --success-bg: rgba(46, 125, 50, 0.08);
    --error: #C62828;
    --error-bg: rgba(198, 40, 40, 0.08);
    --warning: #E65100;
    --warning-bg: rgba(230, 81, 0, 0.08);
    --info: #1565C0;
    --info-bg: rgba(21, 101, 192, 0.08);

    /* Borders & Shadows */
    --border: rgba(180, 128, 82, 0.12);
    --border-strong: rgba(180, 128, 82, 0.25);
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.14);
    --shadow-copper: 0 8px 32px rgba(180, 128, 82, 0.2);

    /* Spacing — 8px rhythm grid */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */

    /* Section spacing */
    --section-gap: var(--space-16);
    --card-padding: var(--space-5);
    --card-gap: var(--space-4);

    /* Content max widths */
    --max-content: 1400px;
    --max-reading: 780px;
    --max-narrow: 640px;

    /* Layout */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Typography — Serif ONLY for headings */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-literary: 'Cormorant Garamond', Georgia, serif;

    /* Typography Scale */
    --fs-xs: 0.75rem;     /* 12px — meta, captions */
    --fs-sm: 0.875rem;    /* 14px — secondary text */
    --fs-base: 1rem;      /* 16px — body */
    --fs-md: 1.125rem;    /* 18px — lead text */
    --fs-lg: 1.25rem;     /* 20px — h4 */
    --fs-xl: 1.5rem;      /* 24px — h3 */
    --fs-2xl: 2rem;       /* 32px — h2 */
    --fs-3xl: 2.5rem;     /* 40px — h1 */
    --fs-4xl: 3rem;       /* 48px — display */

    /* Line Heights */
    --lh-tight: 1.2;      /* headings */
    --lh-snug: 1.35;      /* subheadings */
    --lh-normal: 1.6;     /* body */
    --lh-relaxed: 1.8;    /* reading content */
    --lh-loose: 2.0;      /* poetry */

    /* Letter Spacing */
    --ls-tight: -0.02em;  /* large headings */
    --ls-normal: 0;       /* body */
    --ls-wide: 0.05em;    /* buttons, labels */
    --ls-wider: 0.1em;    /* uppercase labels */
    --ls-widest: 0.2em;   /* brand, logos */

    /* Transitions */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 0.15s;
    --duration: 0.3s;
    --duration-slow: 0.5s;
}

/* ═══════════ BASE RESET & DEFAULTS ═══════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
/* Typography Helpers — Serif headings only */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    color: var(--dark);
}
h1 { font-size: var(--fs-3xl); font-weight: 400; }
h2 { font-size: var(--fs-2xl); font-weight: 500; }
h3 { font-size: var(--fs-xl); font-weight: 600; }
h4 { font-size: var(--fs-lg); font-weight: 600; }
h5 { font-size: var(--fs-md); font-weight: 600; }
h6 { font-size: var(--fs-base); font-weight: 700; }
p { line-height: var(--lh-normal); }
small { font-size: var(--fs-xs); }

/* Label / Overline utility */
.overline {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    color: var(--copper);
}
.text-literary {
    font-family: var(--font-literary);
    font-style: italic;
    line-height: var(--lh-relaxed);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ═══════════ SCROLL ANIMATIONS (AOS-LIKE) ═══════════ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-spring);
}
.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}
/* Stagger delays for children */
.stagger > *:nth-child(1) { transition-delay: 0.05s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.15s; }
.stagger > *:nth-child(4) { transition-delay: 0.2s; }
.stagger > *:nth-child(5) { transition-delay: 0.25s; }
.stagger > *:nth-child(6) { transition-delay: 0.3s; }
.stagger > *:nth-child(7) { transition-delay: 0.35s; }
.stagger > *:nth-child(8) { transition-delay: 0.4s; }

/* ═══════════ PREMIUM CARD SYSTEM ═══════════ */
.p-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out),
                border-color var(--duration);
}
.p-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.p-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.p-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}
.p-card:hover .p-card-img img {
    transform: scale(1.06);
}
.p-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.04) 100%);
    pointer-events: none;
}
.p-card-body { padding: var(--card-padding, 1.25rem); }
.p-card-category {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--copper);
    margin-bottom: 0.5rem;
}
.p-card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 0.5rem;
    transition: color var(--duration);
}
.p-card:hover .p-card-title { color: var(--copper); }
.p-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.p-card-meta .author { color: var(--copper); font-weight: 600; }

/* ═══════════ PREMIUM BUTTON SYSTEM ═══════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.65rem 1.6rem;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
    transition: all var(--duration) var(--ease-out);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity var(--duration);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
    background: var(--dark);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--copper);
    transform: translateY(-2px);
    box-shadow: var(--shadow-copper);
}
.btn-copper {
    background: linear-gradient(135deg, var(--copper), var(--copper-dark));
    color: var(--white);
}
.btn-copper:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-copper);
}
.btn-outline {
    background: transparent;
    color: var(--copper);
    border: 1.5px solid var(--copper);
}
.btn-outline:hover {
    background: var(--copper);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-ghost {
    background: var(--copper-subtle);
    color: var(--copper);
    border: none;
}
.btn-ghost:hover {
    background: rgba(180, 128, 82, 0.15);
    transform: translateY(-1px);
}
.btn-sm { padding: 0.4rem 1rem; font-size: 0.78rem; }
.btn-lg { padding: 0.85rem 2.2rem; font-size: 1rem; }
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}
.btn-icon.btn-sm { width: 32px; height: 32px; }

/* ═══════════ LIKE BUTTON ANIMATION ═══════════ */
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all var(--duration);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--white);
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.like-btn:hover { border-color: #e53935; color: #e53935; }
.like-btn.liked {
    background: rgba(229, 57, 53, 0.08);
    border-color: rgba(229, 57, 53, 0.3);
    color: #e53935;
}
.like-btn .heart-icon { transition: transform 0.3s var(--ease-spring); }
.like-btn.animating .heart-icon {
    animation: heartPop 0.4s var(--ease-spring);
}
@keyframes heartPop {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1); }
}
/* Like burst particles */
.like-burst {
    position: absolute;
    pointer-events: none;
}
.like-burst span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e53935;
    animation: burstOut 0.6s var(--ease-out) forwards;
}
@keyframes burstOut {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* ═══════════ TOAST NOTIFICATION SYSTEM ═══════════ */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--copper);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s var(--ease-spring);
    max-width: 380px;
    backdrop-filter: blur(10px);
}
.toast.show {
    transform: translateX(0);
    opacity: 1;
}
.toast.hiding {
    transform: translateX(120%);
    opacity: 0;
}
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--error); }
.toast-warning { border-left-color: var(--warning); }
.toast-info { border-left-color: var(--info); }
.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.toast-success .toast-icon { background: var(--success-bg); color: var(--success); }
.toast-error .toast-icon { background: var(--error-bg); color: var(--error); }
.toast-warning .toast-icon { background: var(--warning-bg); color: var(--warning); }
.toast-info .toast-icon { background: var(--info-bg); color: var(--info); }
.toast-close {
    margin-left: auto;
    opacity: 0.4;
    cursor: pointer;
    font-size: 18px;
    transition: opacity var(--duration);
    background: none;
    border: none;
    color: inherit;
    padding: 0 0 0 8px;
}
.toast-close:hover { opacity: 1; }
/* Toast progress bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 4px;
    right: 0;
    height: 3px;
    border-radius: 0 0 var(--radius) 0;
    overflow: hidden;
}
.toast-progress-bar {
    height: 100%;
    background: var(--copper);
    border-radius: inherit;
    animation: toastProgress 4s linear forwards;
}
.toast-success .toast-progress-bar { background: var(--success); }
.toast-error .toast-progress-bar { background: var(--error); }
@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* ═══════════ SKELETON LOADING ═══════════ */
.skeleton {
    background: linear-gradient(90deg,
        var(--cream) 25%,
        var(--cream-dark) 50%,
        var(--cream) 75%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    border-radius: 4px;
}
.skeleton-text:last-child { width: 60%; }
.skeleton-title {
    height: 22px;
    margin-bottom: 12px;
    width: 80%;
    border-radius: 4px;
}
.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.skeleton-img {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: var(--radius-sm);
}
.skeleton-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    padding: 1.25rem;
}

/* ═══════════ EMPTY STATE ═══════════ */
.empty-state {
    text-align: center;
    padding: var(--space-12, 3rem) var(--space-8, 2rem);
}
.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    background: var(--copper-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.empty-state-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}
.empty-state-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 360px;
    margin: 0 auto 1.2rem;
    line-height: 1.6;
}

/* ═══════════ BADGE SYSTEM ═══════════ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.badge-copper {
    background: var(--copper-subtle);
    color: var(--copper);
}
.badge-dark {
    background: var(--dark);
    color: var(--white);
}
.badge-success {
    background: var(--success-bg);
    color: var(--success);
}

/* ═══════════ PREMIUM DIVIDERS ═══════════ */
.divider-copper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: var(--space-8, 2rem) 0;
}
.divider-copper::before,
.divider-copper::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.divider-copper-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--copper);
}

/* ═══════════ TOOLTIP ═══════════ */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}
[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--dark);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius-xs);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--duration) var(--ease-out);
    z-index: 100;
}
[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--dark);
    opacity: 0;
    pointer-events: none;
    transition: all var(--duration) var(--ease-out);
    z-index: 100;
}
[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
[data-tooltip]:hover::after {
    transform: translateX(-50%);
}

/* ═══════════ INPUT SYSTEM ═══════════ */
.input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text);
    background: var(--white);
    transition: all var(--duration);
    outline: none;
}
.input:focus {
    border-color: var(--copper);
    box-shadow: 0 0 0 3px var(--copper-glow);
}
.input::placeholder {
    color: var(--text-muted);
}
.input-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
textarea.input {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* ═══════════ MODAL SYSTEM ═══════════ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 21, 18, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-slow);
}
.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 9001;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: all var(--duration-slow) var(--ease-spring);
}
.modal.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}
.modal-header {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
}
.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--duration);
}
.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}
.modal-body { padding: var(--space-6, 1.5rem); }
.modal-footer {
    padding: 0 var(--space-6, 1.5rem) var(--space-6, 1.5rem);
    display: flex;
    gap: var(--space-3, 10px);
    justify-content: flex-end;
}

/* ═══════════ MICRO ANIMATIONS ═══════════ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 2.5px solid var(--border);
    border-top-color: var(--copper);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
.spinner-lg { width: 36px; height: 36px; border-width: 3px; }

/* ═══════════ COUNTER ANIMATION ═══════════ */
.count-up {
    display: inline-block;
    transition: transform 0.3s var(--ease-spring);
}
.count-up.bumped {
    animation: countBump 0.4s var(--ease-spring);
}
@keyframes countBump {
    0% { transform: scale(1); }
    40% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ═══════════ IMAGE LAZY LOAD ═══════════ */
.lazy-img {
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
}
.lazy-img.loaded {
    opacity: 1;
}

/* ═══════════ SCROLL PROGRESS BAR ═══════════ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--copper), var(--copper-light));
    z-index: 10001;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px var(--copper-glow);
}

/* ═══════════ BACK TO TOP ═══════════ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--dark);
    color: var(--white);
    border: none;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all var(--duration) var(--ease-spring);
    box-shadow: var(--shadow-md);
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.back-to-top:hover {
    background: var(--copper);
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-copper);
}

/* ═══════════ PREMIUM SECTION HEADERS ═══════════ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6, 1.5rem);
}
.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--copper);
    border-radius: 1px;
}

/* ═══════════ HOVER GLOW EFFECT ═══════════ */
.hover-glow {
    position: relative;
}
.hover-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--copper), var(--copper-light), var(--copper));
    background-size: 200% 200%;
    opacity: 0;
    z-index: -1;
    transition: opacity var(--duration);
    filter: blur(8px);
}
.hover-glow:hover::before {
    opacity: 0.3;
    animation: gradientShift 3s ease infinite;
}

/* ═══════════ ONLINE USERS BADGE ═══════════ */
.online-badge {
    position: fixed;
    bottom: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow);
    z-index: 800;
    animation: fadeInUp 0.5s var(--ease-out);
}
.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
}

/* ═══════════ RESPONSIVE PREMIUM ═══════════ */

/* Mobile-first responsive typography */
@media (max-width: 768px) {
    :root {
        --fs-3xl: 2rem;
        --fs-2xl: 1.5rem;
        --fs-xl: 1.25rem;
        --fs-lg: 1.125rem;
        --section-gap: var(--space-10);
        --card-padding: var(--space-4);
    }
    h1 { font-size: var(--fs-2xl); }
    h2 { font-size: var(--fs-xl); }
    h3 { font-size: var(--fs-lg); }

    /* Tap targets — minimum 44px */
    .btn { min-height: 44px; padding: 0.65rem 1.4rem; }
    .btn-sm { min-height: 36px; }
    .btn-icon { width: 44px; height: 44px; }
    .like-btn { min-height: 40px; padding: 8px 16px; }

    /* Touch-friendly spacing */
    .p-card-body { padding: var(--space-4); }
    .toast-container {
        top: auto;
        bottom: 24px;
        right: 12px;
        left: 12px;
    }
    .toast { max-width: 100%; }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
    .online-badge {
        bottom: 16px;
        left: 16px;
        font-size: 0.72rem;
        padding: 6px 12px;
    }
    .modal {
        width: 95%;
        max-height: 85vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    .section-title { font-size: 1.3rem; }
    .section-header { margin-bottom: var(--space-4); }
    .divider-copper { margin: var(--space-6) 0; }
    .empty-state { padding: var(--space-8) var(--space-4); }
    .input { padding: 0.85rem 1rem; font-size: 1rem; } /* 16px prevents iOS zoom */
    textarea.input { font-size: 1rem; }
}

/* Small phones */
@media (max-width: 480px) {
    :root {
        --fs-3xl: 1.75rem;
        --fs-2xl: 1.375rem;
        --card-padding: var(--space-3);
    }
    body { font-size: 0.9375rem; } /* 15px */
    .p-card-category { font-size: 0.6rem; }
    .p-card-title { font-size: 1.05rem; }
}

/* ═══════════ SELECTION STYLING ═══════════ */
::selection {
    background: rgba(180, 128, 82, 0.25);
    color: var(--dark);
}
::-moz-selection {
    background: rgba(180, 128, 82, 0.25);
    color: var(--dark);
}

/* ═══════════ FOCUS VISIBLE (A11Y) ═══════════ */
:focus-visible {
    outline: 2px solid var(--copper);
    outline-offset: 2px;
    border-radius: 2px;
}
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--copper);
    outline-offset: 2px;
}

/* ═══════════ SMOOTH SCROLLBAR ═══════════ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(180, 128, 82, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(180, 128, 82, 0.5);
}
