/* ============================================
   Featured Magazine Style - البورصجية نيوز
   تصميم المجلة للأخبار المميزة
   ============================================ */

/* ============================================
   Main Container
   ============================================ */
.featured-magazine {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    padding: 12px;
    border: 1px solid #e0d8cc;
    border-radius: 3px;
}

/* ============================================
   Main Featured Card
   ============================================ */
.magazine-main-card {
    display: block;
    position: relative;
    border-radius: 3px;
    overflow: hidden;
    text-decoration: none;
}

.magazine-main-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.magazine-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.magazine-main-card:hover .magazine-main-image img {
    transform: scale(1.05);
}

/* Main Overlay - Centered */
.magazine-main-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Main Title - Centered */
.magazine-main-title {
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.7;
    margin: 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   Secondary Cards Row
   ============================================ */
.magazine-secondary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.magazine-secondary-card {
    display: block;
    position: relative;
    text-decoration: none;
    border-radius: 3px;
    overflow: hidden;
}

.magazine-secondary-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.magazine-secondary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.magazine-secondary-card:hover .magazine-secondary-image img {
    transform: scale(1.05);
}

/* Secondary Overlay - Centered */
.magazine-secondary-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

/* Secondary Title - Centered */
.magazine-secondary-title {
    font-family: var(--font-family);
    font-size: 0.82rem;
    font-weight: 500;
    color: #fff;
    line-height: 1.6;
    margin: 0;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 992px) {
    .featured-magazine {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .magazine-main-card {
        flex: 1;
        min-width: 300px;
    }

    .magazine-secondary-row {
        flex: 1;
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .featured-magazine {
        flex-direction: column;
    }

    .magazine-main-image {
        height: 180px;
    }

    .magazine-main-title {
        font-size: 1rem;
    }

    .magazine-secondary-image {
        height: 100px;
    }

    .magazine-secondary-title {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .magazine-secondary-row {
        grid-template-columns: 1fr;
    }

    .magazine-secondary-image {
        height: 120px;
    }
}

/* ============================================
   News of the Day - خبر اليوم
   ============================================ */
.news-of-day {
    margin-top: 12px;
    border: 1px solid #e0d8cc;
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
}

.news-of-day-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(-135deg, var(--primary-color) 0%, #4a7fb8 100%);
    border-bottom: 3px solid #d4af37;
}

.news-of-day-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.news-of-day-badge::before,
.news-of-day-badge::after {
    content: '✦';
    font-size: 0.5rem;
    color: #d4af37;
}

.news-of-day-card {
    display: flex;
    flex-direction: row-reverse;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-of-day-card:hover {
    background: #faf8f5;
}

.news-of-day-image {
    flex-shrink: 0;
    width: 120px;
    height: 85px;
    overflow: hidden;
}

.news-of-day-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-of-day-card:hover .news-of-day-image img {
    transform: scale(1.05);
}

.news-of-day-content {
    flex: 1;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 3px solid var(--primary-color);
}

.news-of-day-title {
    font-family: var(--font-family);
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-of-day-card:hover .news-of-day-title {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 480px) {
    .news-of-day-image {
        width: 100px;
        height: 75px;
    }

    .news-of-day-title {
        font-size: 0.8rem;
    }
}