/* ===== ساختار اصلی صفحه ۸۰/۲۰ ===== */
.homepage-container {
    padding: 20px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.homepage-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
}

.main-content-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* ===== استایل‌های عمومی ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title i {
    font-size: 1.5rem;
    color: #007bff;
}

.header-title h2 {
    font-size: 1.5rem;
    margin: 0;
    color: #333;
    font-weight: 700;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 20px;
    background: #f8f9fa;
    transition: all 0.3s;
}

.view-all:hover {
    background: #007bff;
    color: white;
    transform: translateX(-5px);
}

/* ===== اسلایدر حرفه‌ای ===== */
.featured-slider-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.slider-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.slider-container {
    height: 450px;
    position: relative;
}

.slider-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slider-slide.active {
    opacity: 1;
}

.slide-background {
    position: absolute;
    width: 100%;
    height: 100%;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.slide-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

.slide-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 30px;
    color: white;
    z-index: 2;
}

.slide-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.slide-category {
    background: #007bff;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.slide-date {
    font-size: 0.85rem;
    opacity: 0.9;
}

.slide-title {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: 800;
}

.slide-title a {
    color: white;
    text-decoration: none;
}

.slide-title a:hover {
    color: #ffc107;
}

.slide-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
    max-width: 700px;
}

.slide-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #007bff;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.read-more-btn:hover {
    background: #0056b3;
    transform: translateY(-3px);
    color: white;
}

.slide-stats {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
}

.slider-prev,
.slider-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: white;
}

/* ===== آخرین اخبار (گرید ۲ در ۲) ===== */
.latest-news-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid #eee;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card-image {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .card-image img {
    transform: scale(1.1);
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #007bff;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.card-content {
    padding: 20px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #6c757d;
}

.news-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-title a {
    color: #333;
    text-decoration: none;
}

.news-title a:hover {
    color: #007bff;
}

.news-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 8px;
}

/* ===== ردیف ۲: پیشنهاد سردبیر + اختصاصی (۷۰/۳۰) ===== */
.row-section {
    display: grid;
    grid-template-columns: 2.33fr 1fr; /* 70% / 30% */
    gap: 25px;
    margin-bottom: 30px;
}

.editor-picks-section {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.editor-picks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.editor-pick-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.editor-pick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.pick-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.pick-content {
    flex: 1;
}

.pick-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.pick-category {
    background: #ffc107;
    color: #212529;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pick-time {
    font-size: 0.8rem;
    color: #6c757d;
}

.pick-title {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.pick-title a {
    color: #333;
    text-decoration: none;
}

.pick-excerpt {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.pick-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pick-stats {
    font-size: 0.8rem;
    color: #6c757d;
}

.pick-link {
    color: #ffc107;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ===== مطالب اختصاصی ===== */
.exclusive-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.exclusive-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.exclusive-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.exclusive-card:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.exclusive-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #ffd700, #daa520);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.exclusive-content {
    flex: 1;
}

.exclusive-title {
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.exclusive-title a {
    color: #333;
    text-decoration: none;
}

.exclusive-title a:hover {
    color: #daa520;
}

.exclusive-excerpt {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.exclusive-meta {
    font-size: 0.75rem;
    color: #888;
}

/* ===== سرویس‌های BilgiX (۴ کارت کنار هم) ===== */
.services-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 2px solid;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.5rem;
}

.service-header h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}

.service-body p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== ردیف ۳: تیتر داغ + زندگی و سرگرمی (۵۰/۵۰) ===== */
.horizontal-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.hot-topics-section,
.life-entertainment-section {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.hot-topics-list,
.life-entertainment-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hot-topic-item,
.life-entertainment-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hot-topic-item:hover,
.life-entertainment-item:hover {
    background: #e9ecef;
    transform: translateX(-5px);
}

.item-number {
    width: 30px;
    height: 30px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.item-content {
    flex: 1;
}

.item-title {
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.item-title a {
    color: #333;
    text-decoration: none;
}

.item-title a:hover {
    color: #dc3545;
}

.item-meta {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: #6c757d;
}

/* ===== ردیف ۴: گزارش و تحلیل + نگاه ویژه (۵۰/۵۰ عمودی) ===== */
.vertical-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.analytical-reports-section,
.special-view-section {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.vertical-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vertical-news-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.vertical-news-item:last-child {
    border-bottom: none;
}

.vertical-news-item:hover {
    background: #f8f9fa;
    border-radius: 8px;
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.vertical-item-content {
    flex: 1;
}

.vertical-item-title {
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.vertical-item-title a {
    color: #333;
    text-decoration: none;
}

.vertical-item-excerpt {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.vertical-item-meta {
    font-size: 0.75rem;
    color: #888;
}

/* ===== مولتی‌مدیا ===== */
.multimedia-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.multimedia-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.video-player {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    height: 95px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== اقتصاد و بازار ===== */
.economy-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.economy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.economy-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.economy-icon {
    width: 50px;
    height: 50px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.3rem;
}

.economy-title {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #333;
}

.economy-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 5px;
}

.economy-change {
    font-size: 0.9rem;
    color: #6c757d;
}

/* ===== معرفی نرم‌افزار و اپلیکیشن ===== */
.software-apps-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.software-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.software-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.app-icon {
    width: 60px;
    height: 60px;
    background: #6f42c1;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.5rem;
}

.software-title {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #333;
}

.software-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #6f42c1;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.download-btn:hover {
    background: #59359a;
    color: white;
}

/* ===== ستون کناری ===== */
.sidebar-column {
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* تبلیغات */
.vertical-ads {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ad-banner {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.ad-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.ad-banner a {
    display: block;
    width: 100%;
    height: 200px;
    position: relative;
}

.ad-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-label {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 15px;
    font-weight: 600;
}

/* قیمت‌های زنده */
.live-prices-sidebar {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #dc3545;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-right: 10px;
}

.live-indicator i {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.prices-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.price-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.currency-name {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.price-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #28a745;
}

.price-change {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price-change.up {
    background: #d4edda;
    color: #155724;
}

.price-change.down {
    background: #f8d7da;
    color: #721c24;
}

/* فروشگاه */
.shop-banner {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    border-radius: 15px;
    padding: 25px;
    color: white;
    text-align: center;
}

.shop-banner h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.shop-banner p {
    margin-bottom: 20px;
    opacity: 0.9;
    font-size: 0.9rem;
}

.shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #20c997;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.shop-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.2);
}

/* رسپانسیو */
@media (max-width: 1400px) {
    .homepage-layout {
        grid-template-columns: 1fr 300px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .homepage-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar-column {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
        margin-top: 30px;
        position: static;
    }
}

@media (max-width: 992px) {
    .news-grid,
    .services-grid,
    .software-grid,
    .economy-grid,
    .multimedia-content {
        grid-template-columns: 1fr;
    }
    
    .row-section,
    .horizontal-sections,
    .vertical-sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .slider-container {
        height: 350px;
    }
    
    .slide-title {
        font-size: 1.5rem;
    }
    
    .editor-picks-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-column {
        grid-template-columns: 1fr;
    }
}
