/**
 * NHC Market - Görsel Placeholder Stilleri
 * Gerçek görseller yüklenene kadar kullanılacak
 */

/* ═══════════════════════════════════════════════════════════════
   ÜRÜN GÖRSELLERİ
   ═══════════════════════════════════════════════════════════════ */

/* Ürün kartı görselleri */
.product-card img,
.product-image {
    background: linear-gradient(135deg, #358275 0%, #64A095 100%);
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 80px;
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.product-card img[src*=".jpg"],
.product-card img[src*=".png"],
.product-card img[src*=".webp"] {
    object-fit: cover;
    background: white;
}

/* Ürün kartı için placeholder ikon */
.product-image-placeholder {
    background: linear-gradient(135deg, #358275 0%, #64A095 100%);
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 80px;
    border-radius: 8px 8px 0 0;
    position: relative;
    overflow: hidden;
}

.product-image-placeholder::before {
    content: "🏥";
    font-size: 100px;
    opacity: 0.9;
    animation: pulse 2s ease-in-out infinite;
}

.product-image-placeholder::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════
   LOGO
   ═══════════════════════════════════════════════════════════════ */

/* Logo görseli */
.navbar-brand img {
    height: 50px;
    width: auto;
    object-fit: contain;
    max-width: 200px;
}

/* Logo yoksa placeholder */
.logo-placeholder {
    background: linear-gradient(135deg, #358275, #64A095);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 24px;
    display: inline-block;
    letter-spacing: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   SLIDER / BANNER
   ═══════════════════════════════════════════════════════════════ */

/* Hero section gradient */
.hero-section {
    min-height: 400px;
    background: linear-gradient(135deg, #358275 0%, #64A095 50%, #9BC6B8 100%);
    position: relative;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.carousel-item {
    min-height: 400px;
    background: linear-gradient(135deg, #358275 0%, #64A095 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ═══════════════════════════════════════════════════════════════
   KATEGORİ KARTLARI
   ═══════════════════════════════════════════════════════════════ */

/* Kategori ikonları */
.category-icon {
    font-size: 64px;
    color: #358275;
    margin-bottom: 15px;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.category-card {
    background: linear-gradient(135deg, rgba(53,130,117,0.05) 0%, rgba(100,160,149,0.05) 100%);
    border: 2px solid #D1E6E6;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(53,130,117,0.2);
    border-color: #358275;
}

.category-name {
    color: #358275;
    font-weight: bold;
    font-size: 20px;
    margin-top: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   SEPET GÖRSELLERİ
   ═══════════════════════════════════════════════════════════════ */

.cart-item-image {
    background: linear-gradient(135deg, #9BC6B8, #D1E6E6);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-image::before {
    content: "🏥";
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   ÜRÜN DETAY SAYFASI
   ═══════════════════════════════════════════════════════════════ */

/* Ürün detay ana resim */
.product-image-container {
    position: relative;
}

.product-image-container img,
#mainProductImage {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

/* Görsel yoksa placeholder */
.product-detail-placeholder {
    background: linear-gradient(135deg, #358275, #64A095);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: white;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.product-detail-placeholder::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════════════════════════ */

/* Admin ürün görselleri */
.admin-product-image {
    background: linear-gradient(135deg, #9BC6B8, #D1E6E6);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 4px;
}

.admin-product-image::before {
    content: "🏥";
}

.admin-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ═══════════════════════════════════════════════════════════════
   GÖRSEL YÜKLEME ÖNİZLEME
   ═══════════════════════════════════════════════════════════════ */

.image-preview {
    background: #f8f9fa;
    border: 2px dashed #9BC6B8;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-preview:hover {
    border-color: #358275;
    background: #D1E6E6;
}

.image-preview i {
    font-size: 48px;
    color: #64A095;
    margin-bottom: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSİVE AYARLAR
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .product-image,
    .product-image-placeholder {
        height: 200px;
        font-size: 60px;
    }
    
    .product-image-placeholder::before {
        font-size: 80px;
    }
    
    .product-detail-placeholder,
    .product-image-container img,
    #mainProductImage {
        min-height: 300px;
        max-height: 300px;
        font-size: 80px;
    }
    
    .category-icon {
        font-size: 48px;
    }
    
    .logo-placeholder {
        font-size: 18px;
        padding: 8px 15px;
    }
    
    .hero-section {
        min-height: 300px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ÖZEL YARDIMCI SINIFLAR
   ═══════════════════════════════════════════════════════════════ */

/* Gerçek resim varsa arka planı beyaz yap */
.has-image {
    background: white !important;
}

.has-image::before,
.has-image::after {
    display: none !important;
}

/* Yükleme animasyonu */
.image-loading {
    position: relative;
}

.image-loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #358275;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
