/**
 * 🚀 SOSYALVADI HOME PAGE STYLES - 2026 Standardı
 * Ana sayfa özel stilleri
 * 
 * Not: Bu dosya sadece ana sayfa için kullanılır.
 * Genel bileşenler 40-components.css içinde tanımlıdır.
 * Bu dosya homepage-2025.css içeriğini içerir.
 */

/* Hero section - ensure centering and prevent layout shift */
.hero-section {
    width: 100%;
}

.hero-section .hero-content {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
}

/* ===== GENEL DÜZEN ===== */
.homepage-main-content {
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 20px;
    display: grid;
    gap: 40px;
}

/* İlk reklam bloğu için boşluk yok */
.homepage-main-content > .homepage-ad-block:first-child {
    margin-top: 0;
    padding-top: 0;
}

.content-section {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    animation: rotateGradient 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    text-align: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* ===== TREND NOW & PERSONALIZED GRID ===== */
.content-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.content-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.content-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.content-card .card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.content-card:hover .card-image {
    transform: scale(1.03);
}

.content-card .card-content {
    padding: 20px;
}

.content-card .card-type {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.content-card .card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-card .card-summary {
    font-size: 15px;
    color: var(--text-secondary);
    flex-grow: 1;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-card .card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== EKONOMI CANLI PANEL ===== */
.economy-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

.economy-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    min-height: 180px;
    position: relative;
    overflow: hidden;
}

.economy-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.economy-card .economy-symbol {
    font-size: 36px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.economy-card .economy-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.economy-card .economy-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.economy-card .economy-change {
    font-size: 16px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 8px;
}

.economy-card .economy-change.positive {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.economy-card .economy-change.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.economy-card .economy-change.neutral {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

.economy-card .economy-source {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
}

/* ===== UTILITY WIDGETS (Namaz, Hava, Eczane) ===== */
.utility-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.widget-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    cursor: pointer;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.widget-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.widget-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.widget-card p, .widget-card ul {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.widget-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.widget-card ul li {
    margin-bottom: 5px;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 5px;
}

.widget-card ul li:last-child {
    border-bottom: none;
}

.widget-card a {
    color: var(--accent);
    text-decoration: none;
}

.widget-card a:hover {
    text-decoration: underline;
}

.prayer-times-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.prayer-times-list p {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 10px;
    font-size: 14px;
}

/* ===== LOADING STATES ===== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--text-muted);
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-content {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .homepage-main-content {
        margin: 20px auto 40px;
        gap: 30px;
    }
    .content-section {
        padding: 30px;
    }
    .section-title {
        font-size: 30px;
        margin-bottom: 10px;
    }
    .content-cards-grid, .economy-cards-grid, .utility-widgets-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    .homepage-ad-block {
        margin: 15px 0;
    }
}

@media (max-width: 768px) {
    .homepage-main-content {
        margin: 15px auto 30px;
        padding: 0 15px;
        gap: 25px;
    }
    .homepage-ad-block {
        margin: 10px 0;
        padding: 15px;
    }
    .content-section {
        padding: 25px;
        border-radius: 20px;
    }
    .section-title {
        font-size: 26px;
        margin-bottom: 8px;
    }
    .section-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }
    .content-cards-grid, .economy-cards-grid, .utility-widgets-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .content-card .card-image {
        height: 150px;
    }
    .economy-card {
        min-height: 150px;
    }
    .widget-card {
        min-height: 180px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 22px;
        margin-bottom: 6px;
    }
    .content-card .card-title {
        font-size: 18px;
    }
    .economy-card .economy-symbol {
        font-size: 30px;
    }
    .economy-card .economy-value {
        font-size: 20px;
    }
    .widget-card h3 {
        font-size: 20px;
    }
}

/* ===== DARK MODE ADJUSTMENTS ===== */
.dark-mode .content-section {
    background: rgba(26, 31, 58, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .content-card,
.dark-mode .economy-card,
.dark-mode .widget-card {
    background: rgba(26, 31, 58, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

html:not(.dark-mode) .content-section {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
}

html:not(.dark-mode) .content-card,
html:not(.dark-mode) .economy-card,
html:not(.dark-mode) .widget-card {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.08);
}

