/* ====================================
   IMAGES-FIX.CSS - Şəkillər üçün düzəlişlər
   ==================================== */

/* Brand logo düzəlişləri */
.brand-card img {
    width: 100%;
    height: 60px;
    object-fit: contain;
    background: white;
    padding: 10px;
    border-radius: 8px;
}

.brand-card .brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    margin-bottom: 10px;
}

.brand-card .brand-emoji {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

/* Listing şəkil düzəlişləri */
.listing-card .listing-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-card .listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modal şəkil düzəlişləri */
.modal-content .image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.modal-content .gallery-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.modal-content .gallery-image:hover {
    transform: scale(1.05);
}

/* Tam ekran şəkil modal */
.fullscreen-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.fullscreen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: default;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 50px;
    color: white;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.3s ease;
}

.fullscreen-close:hover {
    transform: scale(1.2);
}

/* Error state for images */
img.error {
    display: none !important;
}

img + .brand-emoji {
    display: none;
}

img.error + .brand-emoji {
    display: flex !important;
}