/* ============================================
   QAZET - Qazetlər
   ============================================ */

/* Tək qazet */
.azcs-qazet-single {
    max-width: 280px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.azcs-qazet-featured {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.azcs-qazet-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.azcs-qazet-featured a {
    display: block;
    text-decoration: none;
}

.azcs-qazet-img-wrap {
    position: relative;
    aspect-ratio: 3/4;
    background: #f3f4f6;
}

.azcs-qazet-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.azcs-qazet-placeholder {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
}

.azcs-qazet-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.azcs-qazet-featured:hover .azcs-qazet-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.azcs-qazet-pdf-icon {
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 18px;
    border-radius: 6px;
}

.azcs-qazet-featured:hover .azcs-qazet-pdf-icon {
    opacity: 1;
}


/* Grid Wrapper */
.azcs-qazet-wrapper {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header - posts-list və reading-now ilə eyni */
.azcs-qazet-header {
    padding: 14px 18px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.azcs-qazet-header-title {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

/* Grid */
.azcs-qazet-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 16px;
}

.azcs-qazet-card {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.azcs-qazet-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.azcs-qazet-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.azcs-qazet-card-img {
    position: relative;
    aspect-ratio: 3/4;
    background: #f3f4f6;
    overflow: hidden;
}

.azcs-qazet-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.azcs-qazet-card-hover {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.azcs-qazet-card:hover .azcs-qazet-card-hover {
    background: rgba(0, 0, 0, 0.45);
}

.azcs-qazet-card-hover span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #dc2626;
    padding: 8px 14px;
    border-radius: 5px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.2s ease;
}

.azcs-qazet-card:hover .azcs-qazet-card-hover span {
    opacity: 1;
    transform: scale(1);
}

.azcs-qazet-card-title {
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: 1px solid #f3f4f6;
}


/* ===== Responsive ===== */

@media (max-width: 1200px) {
    .azcs-qazet-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .azcs-qazet-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
        padding: 14px;
    }
}

@media (max-width: 768px) {
    .azcs-qazet-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 12px;
    }
    
    .azcs-qazet-header {
        padding: 12px 14px;
    }
    
    .azcs-qazet-card {
        border-radius: 6px;
    }
    
    .azcs-qazet-card-title {
        padding: 8px 10px;
        font-size: 11px;
    }
}

@media (max-width: 540px) {
    .azcs-qazet-wrapper {
        border-radius: 8px;
    }
    
    .azcs-qazet-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }
    
    .azcs-qazet-card-title {
        padding: 8px;
        font-size: 10px;
    }
    
    .azcs-qazet-card-hover span {
        font-size: 10px;
        padding: 6px 10px;
    }

    .azcs-qazet-single {
        max-width: 200px;
    }
}
