/**
 * 🚀 SV INLINE BATCH-2 2026 - FAZ-4.0 / Adım-2
 * Orta riskli inline CSS'lerin harici dosyaya taşınması
 * 
 * Kaynak dosyalar:
 * - includes/viewport_fix.php (viewport/zoom/text-size-adjust düzeltmeleri)
 * - includes/modern_ui_2025.php (modern UI component stilleri)
 * - includes/theme-unified.php (birleşik tema sistemi, CSS variables, dark mode)
 */

/* ============================================
   VIEWPORT FIX - Sayfaların Tam Boyutta Görünmesi İçin
   ============================================ */

/* VIEWPORT FIX - Sayfaların Tam Boyutta Görünmesi İçin */
html {
    zoom: 1 !important;
    -webkit-text-size-adjust: 100% !important;
    -moz-text-size-adjust: 100% !important;
    -ms-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}

body {
    zoom: 1 !important;
    transform: scale(1) !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Tüm container'lar için */
.container,
.page-container,
.content-wrapper,
main,
article,
section,
.dreams-platform,
.songs-platform,
.tarifler-platform,
.diziler-platform,
.kamu-ilan-platform,
.namaz-platform {
    zoom: 1 !important;
    transform: scale(1) !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Responsive düzeltmeler */
@media (max-width: 768px) {
    html {
        zoom: 1 !important;
        -webkit-text-size-adjust: 100% !important;
    }
    
    body {
        zoom: 1 !important;
        transform: scale(1) !important;
    }
}

/* Desktop için tam boyut */
@media (min-width: 769px) {
    html {
        zoom: 1 !important;
    }
    
    body {
        zoom: 1 !important;
        transform: scale(1) !important;
    }
    
    .container,
    .page-container {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Tüm zoom/scale ayarlarını sıfırla */
* {
    zoom: 1 !important;
}

/* Özel durumlar için */
img, video, iframe {
    max-width: 100% !important;
    height: auto !important;
}

/* Grid ve flex düzeltmeleri */
.grid,
.flex,
.row {
    width: 100% !important;
    max-width: 100% !important;
}

/* ============================================
   MODERN UI 2025 - GLOBAL STYLES
   ============================================ */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern Card Design */
.modern-card {
    background: var(--bg-secondary, #ffffff);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border, rgba(0, 0, 0, 0.05));
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.dark-mode .modern-card {
    background: var(--bg-secondary-dark, #1a1f3a);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark-mode .modern-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Modern Button */
.modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.modern-btn:active {
    transform: translateY(0);
}

.modern-btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modern-btn-secondary:hover {
    background: var(--bg-tertiary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Modern Input */
.modern-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.modern-input:focus {
    outline: none;
    border-color: var(--accent, #667eea);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.modern-input::placeholder {
    color: var(--text-muted);
}

/* Modern Badge */
.modern-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.modern-badge-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.modern-badge-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

/* Modern Loading Spinner */
.modern-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modern Skeleton Loader */
.modern-skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 0%,
        var(--bg-tertiary) 50%,
        var(--bg-secondary) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Modern Toast Notification */
.modern-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    animation: toast-slide-in 0.3s ease-out;
    max-width: 400px;
}

@keyframes toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Modern Tooltip */
.modern-tooltip {
    position: relative;
    display: inline-block;
}

.modern-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: var(--bg-primary-dark, #0a0e27);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Modern Grid Layout */
.modern-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

@media (max-width: 768px) {
    .modern-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Modern Flex Layout */
.modern-flex {
    display: flex;
    gap: 16px;
    align-items: center;
}

.modern-flex-wrap {
    flex-wrap: wrap;
}

.modern-flex-column {
    flex-direction: column;
}

/* Modern Avatar */
.modern-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.modern-avatar-lg {
    width: 80px;
    height: 80px;
    font-size: 32px;
}

.modern-avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

/* Modern Divider */
.modern-divider {
    height: 1px;
    background: var(--border);
    border: none;
    margin: 24px 0;
}

/* Modern Alert */
.modern-alert {
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 4px solid;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-alert-success {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.modern-alert-error {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.modern-alert-warning {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.modern-alert-info {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

.dark-mode .modern-alert-success {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.dark-mode .modern-alert-error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.dark-mode .modern-alert-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.dark-mode .modern-alert-info {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

/* Modern Modal */
.modern-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: modal-fade-in 0.3s ease-out;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modern-modal-content {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 32px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modal-slide-up 0.3s ease-out;
}

@keyframes modal-slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modern Tabs */
.modern-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
    overflow-x: auto;
}

.modern-tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.modern-tab:hover {
    color: var(--text-primary);
}

.modern-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Modern Progress Bar */
.modern-progress {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
}

.modern-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .modern-card {
        padding: 16px;
        border-radius: 16px;
    }
    
    .modern-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .modern-modal-content {
        padding: 24px;
        border-radius: 16px;
    }
}

/* Print Styles */
@media print {
    .modern-card,
    .modern-btn,
    .modern-modal {
        display: none;
    }
}

/* ============================================
   BİRLEŞİK TEMA - 2025 ULTRA
   ============================================ */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: rgba(15, 23, 42, 0.08);
    --border-color: rgba(15, 23, 42, 0.08); /* Backward compatibility */
    --accent: #667eea;
    --accent-primary: #667eea; /* Backward compatibility */
    --accent-secondary: #764ba2; /* Backward compatibility */
    --accent-hover: #4f46e5;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --header-height: 70px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

.dark-mode {
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1f3a;
    --bg-tertiary: #252b45;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #7a8ba3;
    --border: rgba(255,255,255,0.1);
    --border-color: rgba(255,255,255,0.1); /* Backward compatibility */
    --accent: #667eea;
    --accent-primary: #667eea; /* Backward compatibility */
    --accent-secondary: #764ba2; /* Backward compatibility */
    --shadow: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    padding-top: var(--header-height);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container */
.container,
.page-container,
.content-wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 768px) {
    .container,
    .page-container,
    .content-wrapper {
        padding: 15px;
    }
}

/* Glass Card - Global */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: all 0.3s ease;
    padding: 20px;
}

.glass-card:hover {
    box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.45);
    transform: translateY(-5px);
}

.dark-mode .glass-card {
    background: rgba(26, 31, 58, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dark mode için ek stiller */
.dark-mode body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.dark-mode .container,
.dark-mode .page-container,
.dark-mode .content-wrapper {
    color: var(--text-primary);
}

/* Platform Wrappers */
.ruya-detail-platform,
.burc-detail-platform,
.dizi-detail-platform,
.kamu-ilan-detail-platform,
.ekonomi-platform,
.recipe-platform,
.dreams-platform,
.songs-platform,
.diziler-platform,
.astrology-platform,
.kamu-ilan-platform,
.namaz-platform,
.haberler-platform {
    min-height: 100vh;
    background: var(--bg-primary);
    padding-top: calc(var(--header-height) + 20px);
}

@media (max-width: 768px) {
    .ruya-detail-platform,
    .burc-detail-platform,
    .dizi-detail-platform,
    .kamu-ilan-detail-platform,
    .ekonomi-platform,
    .recipe-platform,
    .dreams-platform,
    .songs-platform,
    .diziler-platform,
    .astrology-platform,
    .kamu-ilan-platform,
    .namaz-platform,
    .haberler-platform {
        padding-top: calc(var(--header-height) + 15px);
    }
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    body {
        padding-top: var(--header-height);
    }
    
    .container,
    .page-container,
    .content-wrapper,
    main,
    article {
        padding-top: calc(var(--header-height) + 20px) !important;
    }
}
