/* ─── Button Transitions (shared) ───────────────────────────────────────────── */
.icon-btn,
.action-btn,
.fab-btn,
.btn-submit-modal,
.modal-close,
.hero-cta,
.hero-ghost,
.feed-filter-chip,
.bottom-nav__item {
    transition:
        transform       var(--transition-normal),
        border-color    var(--transition-normal),
        background      var(--transition-normal),
        color           var(--transition-normal),
        box-shadow      var(--transition-normal),
        filter          var(--transition-normal),
        opacity         var(--transition-normal);
    cursor: pointer;
}

/* ─── Disabled State ─────────────────────────────────────────────────────────── */
.icon-btn.is-disabled,     .icon-btn[disabled],     .icon-btn[aria-disabled="true"],
.action-btn.is-disabled,   .action-btn[disabled],   .action-btn[aria-disabled="true"],
.fab-btn.is-disabled,      .fab-btn[disabled],      .fab-btn[aria-disabled="true"],
.btn-submit-modal.is-disabled, .btn-submit-modal[disabled], .btn-submit-modal[aria-disabled="true"],
.modal-close.is-disabled,  .modal-close[disabled],  .modal-close[aria-disabled="true"],
.hero-cta.is-disabled,     .hero-cta[disabled],     .hero-cta[aria-disabled="true"],
.hero-ghost.is-disabled,   .hero-ghost[disabled],   .hero-ghost[aria-disabled="true"],
.feed-filter-chip.is-disabled, .feed-filter-chip[disabled], .feed-filter-chip[aria-disabled="true"],
.bottom-nav__item.is-disabled, .bottom-nav__item[disabled], .bottom-nav__item[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.48;
    filter: saturate(0.8);
    transform: none;
    cursor: not-allowed;
}

/* ─── Icon Button ────────────────────────────────────────────────────────────── */
.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-pill);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--panel);
    border: 1px solid var(--border-medium);
    color: var(--muted);
    box-shadow: var(--shadow-card);
}

.icon-btn:hover {
    color: var(--brand-green);
    border-color: rgba(26, 183, 105, 0.34);
    background: var(--brand-green-muted);
}

html[data-theme="dark"] .icon-btn {
    background: var(--panel-2);
    border-color: var(--border);
    color: var(--text);
}

/* ─── Action Buttons ─────────────────────────────────────────────────────────── */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 48px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-card);
}

.action-btn svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    flex: 0 0 auto;
}

.action-btn--wa {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(22, 163, 74, 0.04));
    color: var(--brand-green-hover);
    border: 1px solid rgba(34, 197, 94, 0.20);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.05);
}

.action-btn--wa:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(22, 163, 74, 0.08));
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.12);
}

html[data-theme="dark"] .action-btn--wa {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(22, 163, 74, 0.06));
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.25);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.08);
}

html[data-theme="dark"] .action-btn--wa:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(22, 163, 74, 0.10));
    border-color: rgba(74, 222, 128, 0.38);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.18);
}

.action-btn--tel {
    background: linear-gradient(135deg, rgba(11, 35, 71, 0.05), rgba(30, 41, 59, 0.02));
    color: var(--brand-navy);
    border: 1px solid rgba(11, 35, 71, 0.12);
    box-shadow: 0 4px 12px rgba(11, 35, 71, 0.04);
}

.action-btn--tel:hover {
    background: linear-gradient(135deg, rgba(11, 35, 71, 0.08), rgba(30, 41, 59, 0.05));
    border-color: rgba(11, 35, 71, 0.22);
    box-shadow: 0 6px 16px rgba(11, 35, 71, 0.10);
}

html[data-theme="dark"] .action-btn--tel {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.12), rgba(37, 99, 235, 0.06));
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.20);
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.08);
}

html[data-theme="dark"] .action-btn--tel:hover {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.18), rgba(37, 99, 235, 0.10));
    border-color: rgba(96, 165, 250, 0.32);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.16);
}

/* Harita butonu — cerulean tonu, --wa / --tel cam efektiyle aynı dil */
.action-btn--map {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.08), rgba(14, 116, 144, 0.04));
    color: #0e7490;
    border: 1px solid rgba(8, 145, 178, 0.22);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.05);
}

/* Lucide map-pin stroke tabanlı — paylaşılan fill kuralını geçersiz kılar */
.action-btn--map svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.action-btn--map:hover {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.14), rgba(14, 116, 144, 0.08));
    border-color: rgba(8, 145, 178, 0.38);
    box-shadow: 0 6px 16px rgba(8, 145, 178, 0.12);
}

html[data-theme="dark"] .action-btn--map {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.14), rgba(14, 116, 144, 0.07));
    color: #67e8f9;
    border-color: rgba(103, 232, 249, 0.24);
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.10);
}

html[data-theme="dark"] .action-btn--map:hover {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.20), rgba(14, 116, 144, 0.11));
    border-color: rgba(103, 232, 249, 0.38);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.18);
}

/* ─── Hero CTA — Corporate Green ─────────────────────────────────────────────── */
.hero-cta {
    color: #fff;
    background: var(--brand-green);
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(26, 183, 105, 0.30);
    text-decoration: none;
}

.hero-cta:hover {
    background: var(--brand-green-hover);
    box-shadow: 0 10px 28px rgba(26, 183, 105, 0.40);
}

/* ─── Hero Ghost ─────────────────────────────────────────────────────────────── */
.hero-ghost {
    color: var(--brand-navy);
    background: transparent;
    border: 1px solid var(--border-medium);
}

.hero-ghost:hover {
    background: var(--bg-soft);
    border-color: var(--border-strong);
}

html[data-theme="dark"] .hero-ghost {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
}

/* ─── Filter Chips ───────────────────────────────────────────────────────────── */
.feed-filter-chip {
    border: 1px solid var(--border-medium);
    background: var(--bg-soft);
    color: var(--muted);
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.feed-filter-chip:hover {
    border-color: var(--brand-green);
    color: var(--brand-green-hover);
    background: var(--brand-green-muted);
    box-shadow: 0 4px 12px rgba(26, 183, 105, 0.08);
}

.feed-filter-chip.is-active {
    background: linear-gradient(135deg, var(--brand-green-muted), rgba(26, 183, 105, 0.04));
    border-color: var(--brand-green);
    color: var(--brand-green-hover);
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(26, 183, 105, 0.12);
}

html[data-theme="dark"] .feed-filter-chip {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-2);
}

html[data-theme="dark"] .feed-filter-chip:hover {
    background: rgba(26, 183, 105, 0.08);
    border-color: rgba(26, 183, 105, 0.36);
    color: #4ade80;
    box-shadow: 0 4px 14px rgba(26, 183, 105, 0.10);
}

html[data-theme="dark"] .feed-filter-chip.is-active {
    background: linear-gradient(135deg, rgba(26, 183, 105, 0.12), rgba(26, 183, 105, 0.04));
    border-color: rgba(26, 183, 105, 0.45);
    color: #4ade80;
    box-shadow: 0 4px 16px rgba(26, 183, 105, 0.18);
}

/* ─── Bottom Nav Items ───────────────────────────────────────────────────────── */
.bottom-nav__item {
    background: transparent;
    color: var(--muted);
}

.bottom-nav__item--more {
    color: var(--muted-light);
}

.bottom-nav__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.bottom-nav__item--center .bottom-nav__icon svg {
    width: 22px;
    height: 22px;
}

/* ─── FAB / Submit ───────────────────────────────────────────────────────────── */
.fab-btn {
    width: 100%;
    min-height: 52px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--brand-green), var(--brand-green-hover));
    color: #fff;
    box-shadow: 0 8px 24px rgba(26, 183, 105, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    border: 1px solid rgba(26, 183, 105, 0.2);
}

.fab-btn:hover {
    background: linear-gradient(135deg, var(--brand-green-hover), #16a34a);
    box-shadow: 0 12px 32px rgba(26, 183, 105, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.fab-btn svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.btn-submit-modal {
    width: 100%;
    min-height: 50px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand-green), var(--brand-green-hover));
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(26, 183, 105, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(26, 183, 105, 0.2);
}

.btn-submit-modal:hover {
    background: linear-gradient(135deg, var(--brand-green-hover), #16a34a);
    box-shadow: 0 12px 28px rgba(26, 183, 105, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ─── Modal Close ────────────────────────────────────────────────────────────── */
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-pill);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--muted);
    display: grid;
    place-items: center;
}


.modal-close:hover {
    background: var(--bg);
    color: var(--text);
    border-color: var(--border-medium);
}

html[data-theme="dark"] .modal-close {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
}

html[data-theme="dark"] .modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

/* ─── Focus States ───────────────────────────────────────────────────────────── */
:where(.icon-btn, .action-btn, .fab-btn, .btn-submit-modal, .modal-close,
       .hero-cta, .hero-ghost, .feed-filter-chip, .bottom-nav__item):focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
}

/* ─── Hover / Active ─────────────────────────────────────────────────────────── */
@media (hover: hover) {
    .icon-btn:hover,
    .action-btn:hover,
    .fab-btn:hover,
    .btn-submit-modal:hover,
    .modal-close:hover,
    .hero-ghost:hover,
    .feed-filter-chip:hover,
    .bottom-nav__item:hover {
        transform: translateY(-1px);
    }
}

.icon-btn:active,
.action-btn:active,
.fab-btn:active,
.btn-submit-modal:active,
.modal-close:active,
.hero-cta:active,
.hero-ghost:active,
.feed-filter-chip:active,
.bottom-nav__item:active {
    transform: translateY(0) scale(0.96);
}

@media (hover: none) and (pointer: coarse) {
    .action-btn,
    .fab-btn,
    .btn-submit-modal,
    .hero-cta,
    .hero-ghost,
    .feed-filter-chip,
    .bottom-nav__item {
        min-height: 50px;
    }

    /* FIX: modal-close 38px → 44px minimum tap target on touch screens */
    .modal-close {
        width: 44px;
        height: 44px;
    }
}

/* ─── Loading State ──────────────────────────────────────────────────────────── */
.action-btn.is-loading,
.fab-btn.is-loading,
.btn-submit-modal.is-loading {
    pointer-events: none;
    color: transparent !important;
    position: relative;
    opacity: 0.82;
}

.action-btn.is-loading::after,
.fab-btn.is-loading::after,
.btn-submit-modal.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.65s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .action-btn.is-loading::after,
    .fab-btn.is-loading::after,
    .btn-submit-modal.is-loading::after {
        animation: none;
        border-top-color: rgba(255, 255, 255, 0.7);
    }
}
