/**
 * Doping Stilleri
 * 
 * İlan dopinglerinin görsel stillerini içerir.
 * 
 * @author OPUS-1
 * @version 1.0
 * @date 2026-01-03
 */

/* ===== DOPİNG BADGE'LERİ ===== */

.doping-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: calc(100% - 60px);
}

.doping-badges .badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ===== DOPİNG TÜRLERİ ===== */

/* Acil Acil */
.doping-urgent,
.badge-urgent {
    background-color: #ff0000 !important;
    animation: pulse-urgent 1.5s ease-in-out infinite;
}

@keyframes pulse-urgent {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4); }
    50% { opacity: 0.9; box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
}

/* Kalın Çerçeve */
.doping-bold-frame {
    background: linear-gradient(135deg, #ff6600 0%, #ff9900 100%) !important;
}

/* Başa Al (Güncelim) */
.doping-refresh {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%) !important;
}

/* Başa Al */
.doping-top {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%) !important;
}

/* Anasayfa Vitrin */
.doping-homepage {
    background: linear-gradient(135deg, #cc0066 0%, #e91e8c 100%) !important;
}

/* Kategori Vitrin */
.doping-category {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%) !important;
}

/* Arama Sonucu Vitrin */
.doping-search-showcase {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
}

/* Öne Çıkar */
.doping-featured {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
}

/* ===== LİSTE GÖRÜNÜMÜ ===== */

/* Acil ilanlar */
.listing-card.has-urgent,
.product-thumb.has-urgent {
    border: 2px solid #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

/* Kalın yazı (bold_frame): tüm kart/satır sarı, çerçeve yok */
.listing-card.has-bold-frame,
.product-thumb.has-bold-frame {
    border: none !important;
    box-shadow: none !important;
    background-color: #fff9e6 !important;
    border-radius: 4px;
}

.listing-card.has-bold-frame .listing-title,
.listing-card.has-bold-frame .caption h4,
.product-thumb.has-bold-frame .caption h4 {
    font-weight: 700 !important;
    font-size: calc(1em + 2pt) !important;
    color: #0d3b66;
}

/* ===== ACİL İLAN BADGE ===== */

.badge-urgent-corner {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ff0000;
    color: #fff;
    padding: 5px 25px;
    font-weight: bold;
    font-size: 11px;
    transform: rotate(45deg) translate(22%, -50%);
    transform-origin: top right;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== İLAN DETAY SAYFASI ===== */

.listing-detail-page .doping-badges {
    top: 15px;
    left: 15px;
}

.listing-detail-page .doping-badges .badge {
    padding: 8px 16px;
    font-size: 12px;
}

/* İlan detay — kalın çerçeve dopingi: çerçeve yok, zemin beyaz (liste sarısı kaldırıldı) */
.listing-gallery.has-bold-frame {
    border: none !important;
    border-radius: 12px;
    padding: 8px;
    background: #fff !important;
}

/* ===== JOURNAL3 ENTEGRASYONU ===== */

/* Journal3 grid product items */
.product-layout .product-thumb.has-doping {
    position: relative;
}

.product-layout .product-thumb .doping-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 5;
}

/* Journal3 quick view doping info */
.quickview-modal .doping-badges {
    position: static;
    margin-bottom: 15px;
}

/* ===== ANİMASYONLAR ===== */

@keyframes shine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.badge-shine {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200% 100%;
    animation: shine 2s infinite;
}

/* Sparkle effect for premium dopings */
.doping-homepage::after,
.doping-featured::after {
    content: '✨';
    margin-left: 5px;
}

/* ===== RESPONSİVE ===== */

@media (max-width: 991px) {
    .doping-badges .badge {
        padding: 5px 10px;
        font-size: 10px;
    }
}

@media (max-width: 767px) {
    .doping-badges {
        top: 8px;
        left: 8px;
        gap: 4px;
    }
    
    .doping-badges .badge {
        padding: 4px 8px;
        font-size: 9px;
    }
    
    .listing-gallery.has-bold-frame {
        padding: 5px;
    }
}

@media (max-width: 480px) {
    .doping-badges .badge {
        padding: 3px 6px;
        font-size: 8px;
    }
}

/* Tablo liste (emlak/vasıta) — bold_frame: sarı satır, çerçeve yok, başlık +2pt */
.product-list-table tbody tr.has-bold-frame,
.product-list-table tbody tr.has-bold-frame:nth-of-type(odd),
.product-list-table tbody tr.has-bold-frame:nth-of-type(even) {
    background-color: #fff9e6 !important;
}
.product-list-table tbody tr.has-bold-frame > td {
    background-color: #fff9e6 !important;
    border-top-color: #e8e0c8 !important;
    border-bottom-color: #e8e0c8 !important;
    box-shadow: none !important;
}
.product-list-table tbody tr.has-bold-frame:hover > td {
    background-color: #fff3cc !important;
}
.product-list-table tbody tr.has-bold-frame td:first-child {
    border-left: none !important;
    box-shadow: none !important;
}
.product-list-table tbody tr.has-bold-frame td:last-child {
    border-right: none !important;
}
.product-list-table tr.has-urgent.has-bold-frame td:first-child {
    box-shadow: none !important;
}
.product-list-table .product-name.doping-title-bold,
.product-list-table .product-name.doping-title-bold strong {
    font-size: calc(14px + 2pt);
    font-weight: 700;
    color: #0d3b66;
}

/* ===== PRINT STYLES ===== */

@media print {
    .doping-badges {
        position: static;
        margin-bottom: 10px;
    }
    
    .doping-badges .badge {
        border: 1px solid #333;
        color: #333 !important;
        background: #fff !important;
    }
}
