/**
 * Price Drops Element + Page
 * Indirimli ilanlar element ve sayfa stilleri.
 *
 * @since 3.05.0
 */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PRICE DROP BADGE (ad card uzerinde)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.necox-price-drop-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--necox-price-drop-badge-bg, #e53935);
    color: var(--necox-price-drop-badge-text, #fff);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 7px;
    border-radius: var(--necox-price-drop-badge-radius, 4px);
    white-space: nowrap;
    vertical-align: middle;
    margin-left: 6px;
}

.necox-price-drop-badge .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
    line-height: 1;
}

/* Fiyat iceriginde ustu cizili eski fiyat (ad card) */
.necox-price__was {
    display: inline-block;
    color: var(--necox-price-drop-old-color, #888);
    font-size: 0.85em;
    font-weight: 400;
    text-decoration: line-through;
    margin-right: 6px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SINGLE ADVERT — PRICE DROP SECTION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.necox-advert-price-drop {
    margin: 12px 0;
    padding: 12px 16px;
    background: var(--necox-price-drop-section-bg, rgba(229, 57, 53, 0.08));
    border-left: 3px solid var(--necox-price-drop-section-border, #e53935);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.necox-advert-price-drop__old {
    text-decoration: line-through;
    color: var(--necox-price-drop-old-color, #888);
    font-size: 1em;
}

.necox-advert-price-drop__new {
    color: var(--necox-price-drop-new-color, #e53935);
    font-size: 1.25em;
    font-weight: 700;
}

.necox-advert-price-drop__percent {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--necox-price-drop-badge-bg, #e53935);
    color: var(--necox-price-drop-badge-text, #fff);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.necox-advert-price-drop__info {
    font-size: 13px;
    color: var(--necox-price-drop-info-color, #555);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ELEMENT (Hero/Page Builder/Shortcode)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.necox-price-drops-element {
    width: 100%;
    text-align: left;
}

.necox-price-drops__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--necox-el-price-drops-title-color, inherit);
}

.necox-price-drops__grid {
    display: grid;
    gap: var(--necox-el-price-drops-gap, 16px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.necox-price-drops__footer {
    margin-top: 20px;
    text-align: center;
}

.necox-price-drops__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.necox-price-drops__empty {
    padding: 40px 20px;
    text-align: center;
    color: #777;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PRICE DROPS PAGE (/indirimli-ilanlar/)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.necox-price-drops-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 16px;
}

.necox-price-drops-page__header {
    margin-bottom: 24px;
    text-align: center;
}

.necox-price-drops-page__title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.necox-price-drops-page__subtitle {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.necox-price-drops-page__filters {
    background: var(--necox-price-drop-filter-bg, #fff);
    border: 1px solid var(--necox-price-drop-filter-border, #e5e5e5);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    align-items: end;
}

.necox-price-drops-page__field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #555;
}

.necox-price-drops-page__field input,
.necox-price-drops-page__field select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.necox-price-drops-page__actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.necox-price-drops-page__results {
    margin-top: 20px;
}

.necox-price-drops-page__count {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.necox-price-drops-page__grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.necox-price-drops-page__pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.necox-price-drops-page__pagination a,
.necox-price-drops-page__pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    background: #fff;
}

.necox-price-drops-page__pagination .current {
    background: var(--necox-primary, #00a591);
    border-color: var(--necox-primary, #00a591);
    color: #fff;
}

.necox-price-drops-page__empty {
    padding: 60px 20px;
    text-align: center;
    color: #777;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 1024px) {
    .necox-price-drops__grid,
    .necox-price-drops-page__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .necox-price-drops__grid,
    .necox-price-drops-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .necox-price-drops-page__title {
        font-size: 1.5rem;
    }
    .necox-advert-price-drop {
        font-size: 14px;
    }
    .necox-advert-price-drop__new {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .necox-price-drops__grid,
    .necox-price-drops-page__grid {
        grid-template-columns: 1fr;
    }
}
