/* ============================================
   ECR NEWS v3 - iOS 26 Design System
   Optimized & Unified
   ============================================ */

/* 1. Font Awesome CDN */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2') format('woff2');
}

/* 2. CSS Variables */
:root {
    /* iOS Colors */
    --ios-blue: #007aff;
    --ios-green: #34c759;
    --ios-red: #ff3b30;
    --ios-orange: #ff9500;
    --ios-yellow: #ffcc00;
    --ios-purple: #af52de;
    --ios-pink: #ff2d55;
    
    /* iOS Interface Colors */
    --ios-bg: #f2f2f7;
    --ios-bg-secondary: #ffffff;
    --ios-card: rgba(255, 255, 255, 0.75);
    --ios-glass: rgba(255, 255, 255, 0.5);
    --ios-text-main: #1c1c1e;
    --ios-text-secondary: #8e8e93;
    --ios-border: rgba(255, 255, 255, 0.4);
    --ios-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    
    /* Dimensions */
    --ios-card-radius: 42px;
    --ios-blur: blur(20px);
    
    /* Safe Areas */
    --safe-area-top: env(safe-area-inset-top);
    --safe-area-bottom: env(safe-area-inset-bottom);
    --safe-area-left: env(safe-area-inset-left);
    --safe-area-right: env(safe-area-inset-right);
}

/* 3. Reset & Base */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: #fdfdff;
    color: var(--ios-text-main);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    overflow-x: hidden;
    padding-bottom: calc(80px + var(--safe-area-bottom));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 4. Utilities */
.glass {
    background: var(--ios-glass);
    backdrop-filter: var(--ios-blur) saturate(180%);
    -webkit-backdrop-filter: var(--ios-blur) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 5. Layout */
.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 16px;
}

.app-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
}

.flex {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.main-content, .main {
    flex: 1;
    width: 100%;
    min-width: 0;
}

.sidebar {
    display: none;
    width: 320px;
}

/* 6. Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--ios-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 0.5px solid rgba(0,0,0,0.1);
    height: calc(64px + var(--safe-area-top));
    padding-top: var(--safe-area-top);
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none;
    color: var(--ios-text-main);
}

.logo span {
    color: var(--ios-blue);
}

.desktop-menu {
    display: none;
    gap: 24px;
}

.desktop-menu a {
    text-decoration: none;
    color: var(--ios-text-main);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}

.desktop-menu a:hover {
    color: var(--ios-blue);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    color: var(--ios-blue);
}

.content-spacer {
    height: calc(64px + var(--safe-area-top));
}

/* 7. Breaking News Band */
.breaking-news-ios {
    margin: 15px auto;
    max-width: 1200px;
    height: 44px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.breaking-label {
    background: var(--ios-red);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    box-shadow: 10px 0 20px rgba(0,0,0,0.1);
}

.pulse-icon {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: ios-pulse 1.5s infinite;
}

.breaking-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.breaking-scroll {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.breaking-scroll:hover {
    animation-play-state: paused;
}

.breaking-item {
    text-decoration: none;
    color: var(--ios-text-main);
    font-size: 14px;
    font-weight: 600;
    padding: 0 20px;
    transition: color 0.2s;
}

.breaking-item:hover {
    color: var(--ios-blue);
}

.breaking-divider {
    color: #d1d1d6;
    font-weight: bold;
}

/* 8. News Cards (Hero) */
.news-card {
    position: relative;
    margin: 15px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    background: var(--ios-bg-secondary);
    transition: transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

.news-card:active {
    transform: scale(0.96);
}

.news-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
}

.card-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 0;
}

/* 9. Magazine Slider */
.magazine-slider-wrapper {
    background: var(--ios-bg);
    padding: 10px 0;
    margin: 20px 15px;
    border-radius: 50px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.02), 0 10px 30px rgba(0,0,0,0.03);
}

.magazine-slider-container {
    position: relative;
    overflow: hidden;
    contain: layout style paint;
}

.magazine-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 30px 0;
    scrollbar-width: none;
    scroll-behavior: smooth;
    align-items: center;
    -webkit-overflow-scrolling: touch;
}

.magazine-track::-webkit-scrollbar {
    display: none;
}

.mag-card {
    flex: 0 0 82%;
    min-width: 280px;
    height: 480px;
    background: var(--ios-glass);
    backdrop-filter: var(--ios-blur);
    -webkit-backdrop-filter: var(--ios-blur);
    border-radius: var(--ios-card-radius);
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    padding: 22px;
    cursor: pointer;
    border: 1px solid var(--ios-border);
    transition: all 0.7s cubic-bezier(0.2, 1, 0.3, 1);
    transform: scale(0.88);
    opacity: 0.5;
    will-change: transform, opacity;
}

.mag-card.is-active {
    transform: scale(1.02);
    opacity: 1;
    background: var(--ios-bg-secondary);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.12);
    backdrop-filter: none;
    border: 1px solid var(--ios-bg-secondary);
    z-index: 10;
}

.spacer-card {
    flex: 0 0 9%;
    min-width: 30px;
}

.mag-header {
    margin-bottom: 12px;
    height: 85px;
    overflow: hidden;
}

.mag-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--ios-text-main);
    line-height: 1.15;
    letter-spacing: -0.6px;
    margin: 0;
}

.mag-media {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 28px;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--ios-bg);
    position: relative;
}

.mag-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease-in-out;
}

.mag-media img[loading="lazy"] {
    opacity: 0;
}

.mag-media img.loaded {
    opacity: 1;
}

.mag-excerpt {
    font-size: 13.5px;
    color: #3a3a3c;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ad-container-inner {
    flex: 1;
    background: rgba(0,0,0,0.03);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #c7c7cc;
}

.mag-btn {
    color: #fff;
    padding: 12px 18px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    margin-top: auto;
    font-size: 14px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background: var(--ios-bg-secondary);
    border: none;
    border-radius: 50%;
    z-index: 20;
    color: var(--ios-blue);
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.slider-nav:hover {
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev { left: 20px; }
.slider-nav.next { right: 20px; }

/* 10. Poker Cards (Legacy Slider) */
.card-slider-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.card-track {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    scroll-behavior: smooth;
    overflow-x: auto;
    scrollbar-width: none;
}

.card-track::-webkit-scrollbar {
    display: none;
}

.poker-card {
    flex: 0 0 85%;
    min-width: 300px;
    height: 450px;
    border-radius: 30px;
    background: var(--ios-bg-secondary);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    -webkit-tap-highlight-color: transparent;
}

.card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

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

.card-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--ios-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.poker-card .card-title {
    color: var(--ios-text-main);
}

.card-subtitle {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ios-text-secondary);
    letter-spacing: 0.5px;
}

.card-image-wrapper {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    margin: 10px 0;
}

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

/* Color Variations */
.card-ios-blue .card-icon { background: var(--ios-blue); }
.card-ios-red .card-icon { background: var(--ios-red); }
.card-ios-green .card-icon { background: var(--ios-green); }
.card-ios-orange .card-icon { background: var(--ios-orange); }
.card-ios-purple .card-icon { background: var(--ios-purple); }

.btn-card-action {
    background: var(--ios-bg);
    padding: 12px 16px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--ios-blue);
    font-weight: 700;
    transition: background 0.2s ease;
}

.btn-card-action:active {
    background: #d1d1d6;
}

/* 11. Progress Bar */
.progress-container {
    width: 100px;
    height: 4px;
    background: rgba(0,0,0,0.1);
    margin: 20px auto;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--ios-blue);
    transition: width 0.1s linear;
    border-radius: 10px;
}

/* 12. Authors Widget - Unified */
.authors-widget-container {
    padding: 10px 15px;
    margin: 10px 0;
}

.authors-glass-frame {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 35px;
    padding: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.section-header-ios {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px 15px 25px;
}

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

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

.ios-see-all:hover {
    opacity: 0.7;
}

.authors-scroll-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 25px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
}

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

.author-item {
    min-width: 85px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(15px);
    animation: iosReveal 0.6s cubic-bezier(0.2, 1, 0.3, 1) forwards;
    animation-delay: var(--delay);
    will-change: transform, opacity;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes iosReveal {
    to { opacity: 1; transform: translateY(0); }
}

.author-item:hover {
    transform: translateY(-3px);
}

.author-item:active {
    transform: scale(0.92);
}

.author-avatar-wrapper {
    position: relative;
    width: 76px;
    height: 76px;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color, var(--ios-blue)), rgba(255,255,255,0.6));
    margin-bottom: 8px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.author-item:active .author-avatar-wrapper {
    transform: scale(0.9);
}

.author-img, .author-img-placeholder, .author-initial {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.author-img-placeholder, .author-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 26px;
    background: var(--ios-blue);
    text-transform: uppercase;
}

.author-initial {
    width: 60px;
    height: 60px;
    font-size: 24px;
    flex-shrink: 0;
}

.author-online-pulse {
    position: absolute;
    bottom: 3px;
    right: 5px;
    width: 14px;
    height: 14px;
    background: var(--ios-green);
    border: 2.5px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: pulse 2s infinite;
}

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

.author-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--ios-text-main);
    text-align: center;
    width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 4px;
}

.author-status {
    font-size: 9px;
    font-weight: 800;
    color: var(--ios-text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
}

/* 13. Horoscope Widget */
.horoscope-widget-container {
    padding: 15px;
    margin-top: 10px;
}

.horoscope-glass-frame {
    background: linear-gradient(135deg, #6578fd 0%, #b43bc3 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 35px;
    padding: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(101, 120, 253, 0.2);
    position: relative;
    overflow: hidden;
}

.horoscope-glass-frame::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.horoscope-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px 15px 25px;
}

.horoscope-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.horoscope-scroll-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 5px 25px 10px 25px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.horoscope-scroll-track::-webkit-scrollbar {
    display: none;
}

.horoscope-item {
    min-width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.horoscope-item:hover {
    transform: translateY(-5px);
}

.horoscope-item:active {
    transform: scale(0.9);
}

.horoscope-icon-box {
    width: 58px;
    height: 58px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #ffffff;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.horoscope-item:hover .horoscope-icon-box {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.horoscope-name {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 14. Pharmacy Widget */
.pharmacy-widget-container {
    padding: 15px;
    margin-top: 10px;
}

.pharmacy-glass-frame {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: var(--ios-blur);
    -webkit-backdrop-filter: var(--ios-blur);
    border-radius: 35px;
    padding: 20px;
    border: 1px solid var(--ios-border);
    box-shadow: var(--ios-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.ph-info h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--ios-text-main);
}

.ph-info p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: var(--ios-red);
    font-weight: 600;
}

.ph-btn {
    background: var(--ios-green);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ph-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(52, 199, 89, 0.4);
}

.ph-btn:active {
    transform: scale(0.95);
}

/* 15. Tab Bar (Bottom Navigation) - Unified */
.ios-tab-bar, .tabbar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: calc(65px + var(--safe-area-bottom));
    padding-bottom: var(--safe-area-bottom);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
    z-index: 9999;
    transition: transform 0.3s ease;
}

.tab-item, .tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--ios-text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 16px;
    border-radius: 16px;
    position: relative;
    flex: 1;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
}

.tab-item i, .tabbar a svg {
    font-size: 22px;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
    width: 24px;
    height: 24px;
}

.tab-item span {
    letter-spacing: 0.5px;
}

.tab-item.active, .tabbar a.active {
    color: var(--ios-blue);
}

.tab-item.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 14px;
    z-index: -1;
}

.tabbar a.active svg {
    transform: translateY(-2px);
}

.tab-item:active, .tabbar a:active {
    transform: scale(0.9);
    opacity: 0.7;
}

.tab-item:active i {
    transform: scale(0.8);
}

/* 16. News Feed - Unified */
.news-feed-section, .haberler {
    margin-top: 30px;
}

.news-grid, .haberler-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.haberler h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.news-card-horizontal, .haber-card {
    background: var(--ios-bg-secondary);
    border-radius: 25px;
    padding: 12px;
    display: flex;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 0.5px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    margin-bottom: 16px;
}

.news-card-horizontal:hover, .haber-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.news-card-horizontal:active, .haber-card:active {
    transform: scale(0.97);
}

.news-card-media, .haber-img {
    width: 110px;
    height: 110px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e5e5ea;
}

.news-card-media img, .haber-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.haber-img {
    border-radius: 14px;
}

.news-card-content, .haber-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.news-category-label, .haber-kat {
    color: var(--ios-blue);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title, .haber-baslik {
    font-size: 16px;
    font-weight: 700;
    color: var(--ios-text-main);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta, .haber-meta {
    color: var(--ios-text-secondary);
    font-size: 12px;
    font-weight: 500;
}

/* 17. Sidebar - Unified */
.sidebar-widget {
    background: var(--ios-bg-secondary);
    border-radius: 28px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.pharmacy-side-card {
    background: var(--ios-blue) !important;
    color: #fff;
}

.pharmacy-side-card h3 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 18px;
}

.pharmacy-side-card p {
    opacity: 0.9;
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.ios-select-side {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
    outline: none;
}

.ios-select-side option {
    color: var(--ios-text-main);
}

.side-trend-item, .trend-item, .side-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 15px;
    align-items: center;
    transition: transform 0.2s;
}

.side-trend-item:hover, .trend-item:hover, .side-item:hover {
    transform: translateX(5px);
}

.side-trend-item img, .trend-img, .side-item img {
    width: 65px;
    height: 65px;
    border-radius: 15px;
    object-fit: cover;
    flex-shrink: 0;
}

.trend-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
}

.side-trend-item h4, .side-item h4 {
    font-size: 13px;
    margin: 0;
    line-height: 1.3;
    font-weight: 600;
    color: var(--ios-text-main);
}

.side-item {
    align-items: flex-start;
}

.side-item img {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.side-item h4 {
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 18. Alert Prompt */
.ios-alert-prompt {
    position: fixed;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 0.5px solid rgba(255,255,255,0.5);
    transition: top 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.ios-alert-prompt.show {
    top: calc(20px + var(--safe-area-top));
}

.prompt-icon {
    background: var(--ios-blue);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.prompt-content {
    flex: 1;
}

.prompt-content h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--ios-text-main);
}

.prompt-content p {
    margin: 0;
    font-size: 13px;
    color: var(--ios-text-secondary);
    line-height: 1.3;
}

.prompt-btn {
    background: var(--ios-blue);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.prompt-btn:hover {
    background: #0056b3;
}

.prompt-btn.secondary {
    background: var(--ios-bg);
    color: var(--ios-blue);
}

/* 19. Buttons */
.btn-read-more {
    background: var(--ios-bg);
    padding: 12px 20px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--ios-blue);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-read-more:hover {
    background: #e5e5ea;
}

.btn-read-more:active {
    background: #d1d1d6;
    transform: scale(0.96);
}

/* 20. Keyframes Consolidated */
@keyframes ios-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 21. Desktop Responsive - Unified */
@media (min-width: 1024px) {
    .app-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 30px;
        padding: 0 30px;
    }

    .main-content {
        width: 70%;
    }

    .sidebar {
        display: block;
        width: 30%;
        position: sticky;
        top: calc(84px + var(--safe-area-top));
    }

    .desktop-menu {
        display: flex;
    }

    .mobile-only {
        display: none;
    }

    .magazine-slider-wrapper {
        margin: 30px auto;
        max-width: 1280px;
        padding: 15px 0;
    }

    .mag-card {
        flex: 0 0 360px;
    }

    .slider-nav {
        display: flex;
    }

    .spacer-card {
        flex: 0 0 35%;
    }

    .authors-glass-frame {
        margin: 0 auto;
        max-width: 1200px;
    }

    .ios-tab-bar, .tabbar {
        width: 400px;
        left: 50%;
        
        
    }

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

    .nav-container {
        padding: 0 30px;
    }
}

/* 22. Mobile Adjustments */
@media (max-width: 768px) {
    .breaking-news-ios {
        margin: 10px 16px;
        height: 38px;
        border-radius: 10px;
    }
    .breaking-label {
        font-size: 10px;
        padding: 0 10px;
    }
    .breaking-item {
        font-size: 13px;
    }
}

/* 23. Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --ios-bg: #000000;
        --ios-bg-secondary: #1c1c1e;
        --ios-card: rgba(28, 28, 30, 0.75);
        --ios-glass: rgba(28, 28, 30, 0.5);
        --ios-text-main: #ffffff;
        --ios-text-secondary: #8e8e93;
        --ios-border: rgba(255, 255, 255, 0.1);
    }
    
    body {
        background-color: var(--ios-bg);
    }
    
    .news-card-horizontal,
    .haber-card,
    .sidebar-widget,
    .poker-card,
    .mag-card.is-active {
        background: var(--ios-bg-secondary);
    }
    
    .author-name {
        color: #ffffff;
    }
}

/* 24. Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 25. Print Styles */
@media print {
    .ios-tab-bar,
    .tabbar,
    .navbar,
    .slider-nav,
    .ios-alert-prompt {
        display: none !important;
    }
    
    body {
        padding-bottom: 0;
        background: #fff;
    }
}