/* === INDEX.CSS - PROFESYONEL HABER SİTESİ STILLERİ === */

:root {
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --section-radius: 20px;
    --ios-blue: #007AFF;
    --ios-green: #34C759;
    --ios-orange: #FF9500;
    --ios-red: #FF3B30;
    --ios-purple: #AF52DE;
    --ios-indigo: #5856D6;
    --ios-teal: #5AC8FA;
    --ios-yellow: #FFCC00;
    --ios-pink: #FF2D55;
    --ios-bg: #F2F2F7;
    --ios-card: #FFFFFF;
    --ios-text: #1C1C1E;
    --ios-text-secondary: #8E8E93;
}

/* Genel Container */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 16px; 
}

.flex { 
    display: flex; 
    gap: 24px; 
}

.main { 
    flex: 1; 
    min-width: 0; 
}

.sidebar { 
    width: 340px; 
    flex-shrink: 0; 
}

@media (max-width: 1024px) {
    .flex { flex-direction: column; }
    .sidebar { 
        width: 100%; 
        display: grid; 
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
        gap: 16px; 
    }
}

@media (max-width: 768px) {
    .container { padding: 12px; }
    .sidebar { display: flex; flex-direction: column; }
}

/* === 4 ILGILI HABER KUTUCUĞU === */
.featured-grid {
    margin: 24px 0;
}

.featured-grid-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .featured-grid-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .featured-grid-inner { grid-template-columns: 1fr; }
}

.featured-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.featured-image {
    position: absolute;
    inset: 0;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    color: white;
}

.featured-cat {
    display: inline-block;
    padding: 4px 10px;
    background: var(--card-color, var(--ios-blue));
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.featured-content h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-content time {
    font-size: 12px;
    opacity: 0.8;
}

/* === YAZARLAR === */
.authors-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--section-radius);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--glass-shadow);
}

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

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ios-text);
    letter-spacing: -0.5px;
}

.section-link {
    color: var(--ios-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
}

.section-link:hover { opacity: 0.7; }

.authors-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.authors-scroll::-webkit-scrollbar { display: none; }

.author-card {
    flex-shrink: 0;
    width: 90px;
    text-align: center;
    scroll-snap-align: start;
    text-decoration: none;
    transition: transform 0.2s;
}

.author-card:hover { transform: translateY(-4px); }

.author-avatar {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    margin: 0 auto 8px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-color, var(--ios-blue)), var(--accent-color2, var(--ios-purple)));
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 700;
}

.author-status-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    background: var(--ios-green);
    border: 2px solid white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.author-name-card {
    font-size: 13px;
    font-weight: 600;
    color: var(--ios-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author-role {
    font-size: 11px;
    color: var(--ios-text-secondary);
    margin-top: 2px;
}

/* === BURÇLAR SLIDER === */
.horoscope-section {
    background: linear-gradient(135deg, rgba(175, 82, 222, 0.06), rgba(88, 86, 214, 0.06));
    border-radius: var(--section-radius);
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(175, 82, 222, 0.1);
}

.horoscope-slider-wrapper {
    position: relative;
    padding: 0 40px;
}

.horoscope-slider {
    display: flex;
    gap: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.horoscope-item {
    flex-shrink: 0;
    width: 80px;
    padding: 16px 8px;
    background: var(--ios-card);
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.horoscope-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(175, 82, 222, 0.2);
    border-color: var(--ios-purple);
}

.horoscope-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 6px;
}

.horoscope-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--ios-text);
    text-transform: capitalize;
}

/* === RÜYA TABİRLERİ SLIDER === */
.ruya-section {
    background: var(--ios-card);
    border-radius: var(--section-radius);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--glass-shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.ruya-slider-wrapper {
    position: relative;
    padding: 0 40px;
}

.ruya-slider {
    display: flex;
    gap: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.ruya-card {
    flex-shrink: 0;
    width: 200px;
    background: var(--ios-bg);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.ruya-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: var(--ios-blue);
}

.ruya-image {
    height: 120px;
    overflow: hidden;
}

.ruya-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.ruya-card:hover .ruya-image img {
    transform: scale(1.05);
}

.ruya-content {
    padding: 12px;
}

.ruya-content h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--ios-text);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ruya-meta {
    font-size: 11px;
    color: var(--ios-text-secondary);
}

/* Slider Butonları */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ios-card);
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ios-text);
    transition: all 0.2s;
    z-index: 10;
}

.slider-btn:hover {
    background: var(--ios-blue);
    color: white;
    border-color: var(--ios-blue);
}

.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }

@media (max-width: 640px) {
    .slider-btn { display: none; }
    .horoscope-slider-wrapper,
    .ruya-slider-wrapper { padding: 0; }
    .horoscope-slider,
    .ruya-slider { overflow-x: auto; scroll-snap-type: x mandatory; }
    .horoscope-item,
    .ruya-card { scroll-snap-align: start; }
}

/* === HABER AKIŞI === */
.news-section {
    background: var(--ios-card);
    border-radius: var(--section-radius);
    padding: 20px;
    box-shadow: var(--glass-shadow);
}

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

.news-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(242, 242, 247, 0.6);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.news-item:hover {
    background: white;
    border-color: rgba(0, 122, 255, 0.2);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.news-thumb {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-item:hover .news-thumb img { transform: scale(1.05); }

.news-content { 
    flex: 1; 
    min-width: 0; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.news-category {
    font-size: 11px;
    font-weight: 700;
    color: var(--ios-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.news-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ios-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.news-meta {
    font-size: 12px;
    color: var(--ios-text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-badge {
    background: var(--ios-red);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

/* === SIDEBAR === */
.sidebar-widget {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--section-radius);
    padding: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    margin-bottom: 20px;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Eczane Widget */
.pharmacy-widget {
    background: linear-gradient(135deg, var(--ios-green) 0%, #30D158 100%);
    color: white;
}

.pharmacy-widget .widget-title { color: white; }

.pharmacy-widget select {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: rgba(255,255,255,0.95);
    font-size: 15px;
    color: var(--ios-text);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23007AFF' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Hava Durumu Widget - iOS Rengi */
.weather-widget {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: white;
}

.weather-widget .widget-title { color: white; }

.weather-big {
    text-align: center;
    padding: 10px 0;
}

.weather-icon-big {
    font-size: 56px;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.weather-temp-big {
    font-size: 42px;
    font-weight: 200;
    line-height: 1;
    margin-bottom: 4px;
}

.weather-desc-big {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.weather-big a {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.weather-big a:hover {
    background: rgba(255,255,255,0.3);
}

/* Trend Haberler */
.trend-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-decoration: none;
    transition: background 0.2s;
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 8px;
}

.trend-item:hover { background: rgba(0,122,255,0.05); }

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

.trend-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.trend-thumb img { width: 100%; height: 100%; object-fit: cover; }

.trend-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ios-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trend-meta {
    font-size: 11px;
    color: var(--ios-text-secondary);
    margin-top: 4px;
}

/* Reklam Widget */
.ad-widget {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f7, #e8e8ed);
}

.ad-widget span {
    color: var(--ios-text-secondary);
    font-size: 13px;
    font-weight: 500;
}