/* ==========================================================================
   Yapishtir V3 Site-Wide Brand Parity (Round 357)
   Applies Warm Ivory (#faf9f5) + Deep Forest (#14532d) + Corona Amber (#ffc107)
   consistently across Cart, Checkout, Post-Ad, Auth, Tools & all /member/* views.
   Print/label/voucher/receipt/contract pages are excluded by vitrin_css.blade.php.
   ========================================================================== */

:root {
    --green: #14532d;
    --green-hover: #0f3f22;
    --green-soft: rgba(20, 83, 45, 0.09);
    --green-border: rgba(20, 83, 45, 0.28);
    --v3-ivory: #faf9f5;
}

html:not([data-theme="dark"]):not(.dark) body {
    background-color: var(--v3-ivory, #faf9f5);
}

/* Elevated 16px cards on auth, cart, checkout, post-ad, tools & member pages */
html:not([data-theme="dark"]):not(.dark) .auth-card,
html:not([data-theme="dark"]):not(.dark) .cart-card,
html:not([data-theme="dark"]):not(.dark) .co-card,
html:not([data-theme="dark"]):not(.dark) .pa-card,
html:not([data-theme="dark"]):not(.dark) .tool-card,
html:not([data-theme="dark"]):not(.dark) .member-dashboard-header {
    background-color: #ffffff;
    border-color: rgba(20, 83, 45, 0.13);
    box-shadow: 0 3px 14px rgba(15, 23, 42, 0.04);
}

/* Unified Deep Forest primary buttons across the entire platform.
   Round 363: bare `.btn-primary` is left out. Real `.btn-primary` buttons already paint
   var(--green) (set above); painting every `.btn-primary` turned plain text links such as
   the empty cart "İlanları Keşfet" into dark text on dark green. */
.pa-btn-primary,
.fn-btn-primary,
.co-submit-btn {
    background-color: #14532d;
    border-color: #14532d;
}

.pa-btn-primary:hover,
.fn-btn-primary:hover,
.co-submit-btn:hover {
    background-color: #0f3f22;
    border-color: #0f3f22;
}

/* Preserve crisp WCAG AA dark mode */
html[data-theme="dark"],
html.dark {
    --green: #15803d;
    --green-hover: #166534;
    --green-soft: rgba(34, 197, 94, 0.14);
    --green-border: rgba(134, 239, 172, 0.35);
}

@media print {
    html,
    body {
        background: #ffffff !important;
    }
}

/* Round 359: 1-Click Telegram / WhatsApp Viral Share Card */
.v4-viral-share {
    background: linear-gradient(135deg, #14532d 0%, #166534 100%);
    color: #faf9f5;
    border-radius: 16px;
    padding: 18px 20px;
    margin: 14px 0 18px;
    box-shadow: 0 10px 26px rgba(20, 83, 45, 0.16);
}
.v4-viral-share-badge {
    display: inline-block;
    background: rgba(255, 193, 7, 0.18);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.45);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.v4-viral-share h2 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
}
.v4-viral-share p {
    margin: 0 0 14px;
    font-size: 13.5px;
    color: rgba(250, 249, 245, 0.88);
}
.v4-viral-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.v4-vs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.v4-vs-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}
.v4-vs-tg {
    background: #229ed9;
    color: #ffffff !important;
}
.v4-vs-wa {
    background: #25d366;
    color: #0b2e19 !important;
}
.v4-vs-copy {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.28);
}
html[data-theme="dark"] .v4-viral-share {
    background: linear-gradient(135deg, #103a22 0%, #14532d 100%);
    border: 1px solid rgba(255, 193, 7, 0.28);
}

/* Round 360: Branded 720x900 Share Card Preview + Action Grid */
.v4-viral-share-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    align-items: center;
}
.v4-vs-preview-wrap {
    width: 120px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    border: 2px solid rgba(255, 193, 7, 0.5);
    background: #0f3d21;
}
.v4-vs-canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
}
.v4-vs-native {
    background: #ffc107;
    color: #14532d !important;
}
.v4-vs-dl {
    background: #faf9f5;
    color: #14532d !important;
}
@media (max-width: 640px) {
    .v4-viral-share-grid {
        grid-template-columns: 1fr;
    }
    .v4-vs-preview-wrap {
        width: 140px;
        margin: 0 auto;
    }
}
