/* Variables & Reset */
:root {
  --bg-color: #f1f2f5;
  --surface-color: #ffffff;
  --primary-red: #e30613;
  --primary-dark: #b9000b;
  --text-main: #111111;
  --text-muted: #555555;
  --border-color: #e2e8f0;
  --header-bg: #ffffff;
  --nav-bg: #e30613;
  --nav-text: #ffffff;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: auto !important; /* Ani zıplamaları engeller */
  scroll-snap-type: none !important; /* Mıknatıs etkisini kapatır */
}
body {
  margin: 0; padding: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  transition: opacity 0.5s ease;
  scroll-snap-type: none !important;
}

body.fonts-loaded {
  font-family: 'Inter', 'Roboto', sans-serif;
}

/* Image LazyLoad & Performance */
img { opacity: 1; transition: opacity 0.5s ease-in-out; }
img[data-src] { opacity: 0; }
img.lazy-loaded { opacity: 1; }

.ad-placeholder { 
    height: 90px; /* Sabit yükseklik zıplamayı önler */
    background: #f8f9fa; 
    border: 1px dashed #ddd; 
    position: relative; 
    overflow: hidden; 
    margin: 20px 0;
}
.ad-placeholder::after { content: 'Reklam Yükleniyor...'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #999; font-size: 0.8rem; }
.ad-placeholder.ad-initialized { background: transparent; border: none; height: 90px; }

a { color: var(--text-main); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary-red); }

.container { max-width: 1400px; margin: 0 auto; padding: 0 1rem; }

/* Animations */
.animate-fade-in { animation: fadeIn 0.5s ease-out; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-subtle { 0% { opacity: 1; } 50% { opacity: 0.7; } 100% { opacity: 1; } }

/* PWA Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #111;
    color: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    z-index: 10000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.pwa-content { display: flex; align-items: center; gap: 15px; }
.pwa-content i { font-size: 1.5rem; color: var(--primary-red); }
#installAppBtn { background: var(--primary-red); color: #fff; border: none; padding: 8px 20px; border-radius: 6px; font-weight: 700; cursor: pointer; }
#closeInstallBanner { background: none; border: none; color: #777; font-size: 1.5rem; cursor: pointer; }

/* Share Selection Menu */
#share-selection-menu {
    display: flex;
    gap: 10px;
    background: #333;
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: fadeInScale 0.2s ease-out;
}

#share-selection-menu a { color: #fff; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 4px; transition: background 0.3s; }
#share-selection-menu a:hover { background: var(--primary-red); }

/* Action Buttons (Listen, Font etc) */
.action-btn {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #fff;
    border-color: var(--primary-red);
    color: var(--primary-red);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.action-btn.is-playing {
    background: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);
    animation: pulse-subtle 1.5s infinite;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -150px;
    left: 20px;
    right: 20px;
    background: #fff;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.15);
    padding: 20px;
    z-index: 10001;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    max-width: 650px;
    margin: 0 auto;
}

.cookie-banner.show { bottom: 20px; }
body.dark-mode .cookie-banner { background: #1e293b; color: #fff; border: 1px solid rgba(255,255,255,0.1); }

.cookie-content p { margin: 0; font-size: 0.95rem; line-height: 1.4; color: #475569; }
body.dark-mode .cookie-content p { color: #cbd5e1; }

.cookie-btn {
    background: var(--primary-red);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
}

.cookie-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(227, 6, 19, 0.4); }

/* Network Status Bar */
#network-status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10002;
    animation: slideDown 0.4s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.offline-mode { background: #f59e0b; color: #fff; }
.online-mode { background: #10b981; color: #fff; }

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

