/* style.css -  */

:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    --hover-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    --btn-success: #10b981;
    --btn-photo: #ec4899;
    --error-bg: rgba(239, 68, 68, 0.1);
    --error-text: #fca5a5;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 15px rgba(59, 130, 246, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0; padding: 0; overflow-x: hidden; line-height: 1.6;
    background-image: radial-gradient(circle at top center, #1e293b 0%, #0f172a 60%);
    min-height: 100vh;
}

/* NAVBAR */
.navbar {
    background-color: rgba(15, 23, 42, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color); padding: 15px 0; width: 100%; position: sticky; top: 0; z-index: 100;
}
.nav-container { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.3rem; font-weight: 800; color: var(--text-main); letter-spacing: -0.02em; }
.logo-link svg { width: 28px; height: 28px; stroke: #3b82f6; }
.logo-link span span { color: #3b82f6; } 
.nav-links { display: flex; gap: 25px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: all 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #3b82f6; font-weight: 700; }

/* LAYOUT */
.main-layout { display: flex; justify-content: center; align-items: flex-start; gap: 30px; padding: 40px 20px; max-width: 1200px; margin: 0 auto; }
.content-wrapper { width: 100%; max-width: 700px; display: flex; flex-direction: column; align-items: center; }

/* HEADER & TEXT */
.hero-section { text-align: center; margin-bottom: 40px; }
.hero-section h1 { font-size: 2.5rem; margin-bottom: 10px; background: linear-gradient(to right, #fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; margin-top: 0; }
.hero-section p { color: var(--text-muted); font-size: 1.1rem; margin: 0; }

/* INPUT */
.input-group { display: flex; flex-direction: column; gap: 15px; background: var(--card-bg); padding: 10px; border-radius: 16px; border: 1px solid var(--border-color); box-shadow: var(--shadow-glow); width: 100%; box-sizing: border-box; }
.input-wrapper { position: relative; width: 100%; }
input[type="text"] { width: 100%; padding: 18px 110px 18px 20px; font-size: 16px; background-color: #0f172a; border: 1px solid var(--border-color); border-radius: 12px; box-sizing: border-box; outline: none; color: #fff; transition: all 0.2s; }
input[type="text"]:focus { border-color: #3b82f6; }
.input-actions { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; gap: 8px; }
.icon-btn { background: #1e293b; border: 1px solid var(--border-color); color: var(--text-muted); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.icon-btn:hover { background: #334155; color: #fff; }
#clearBtn { display: none; }
button.btn-download { background: var(--primary-gradient); color: white; border: none; padding: 18px; font-size: 1.1rem; border-radius: 12px; cursor: pointer; font-weight: 700; width: 100%; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); transition: all 0.3s; }
button.btn-download:hover { background: var(--hover-gradient); transform: translateY(-2px); }
button.btn-download:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* RESULTS & BLOG GRID */
#result-area { display: none; margin-top: 30px; width: 100%; }
.video-title { text-align: center; font-size: 1rem; color: var(--text-main); margin-bottom: 25px; padding: 20px; background: var(--card-bg); border-radius: 12px; border: 1px solid var(--border-color); }
.media-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; }
.media-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s; box-shadow: var(--shadow-md); }
.media-thumb { width: 100%; height: 180px; object-fit: cover; background-color: #0f172a; border-bottom: 1px solid var(--border-color); }
.card-actions { padding: 20px; display: flex; flex-direction: column; gap: 12px; justify-content: center; flex-grow: 1; }
.dl-link { display: flex; justify-content: center; align-items: center; width: 100%; padding: 12px; background-color: var(--btn-success); color: white; text-decoration: none; border-radius: 10px; font-weight: 600; text-align: center; transition: filter 0.2s; }
.dl-link.photo-type { background-color: var(--btn-photo); }
.dl-link:hover { filter: brightness(110%); }

/* BLOG SAYFASI */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; width: 100%; }
.blog-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.blog-card:hover { transform: translateY(-5px); border-color: #3b82f6; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.blog-thumb-area { height: 160px; background: #0f172a; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border-color); }
.blog-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.blog-tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: #3b82f6; font-weight: 700; margin-bottom: 10px; }
.blog-title { font-size: 1.25rem; font-weight: 700; color: #fff; margin: 0 0 10px 0; line-height: 1.4; }
.blog-desc { font-size: 0.95rem; color: #94a3b8; margin-bottom: 20px; }
.read-more { color: #3b82f6; font-weight: 600; margin-top: auto; }

/* CONTENT BOX (Makaleler için) */
.article-box { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 40px; width: 100%; box-sizing: border-box; margin-top: 0; color: #cbd5e1; box-shadow: var(--shadow-md); }
.article-box h1 { color: #fff; font-weight: 800; margin-top:0; margin-bottom: 10px; }
.article-box h2 { color: #e2e8f0; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-top: 35px; font-size: 1.4rem; }
.article-box a { color: #3b82f6; text-decoration: none; } .article-box a:hover { text-decoration: underline; }

/* YASAL UYARI KUTUSU */
.legal-warning { background: rgba(239, 68, 68, 0.05); border-left: 4px solid #ef4444; padding: 20px; margin: 30px 0; border-radius: 0 12px 12px 0; }
.legal-warning h3 { color: #ef4444; margin-top: 0; display: flex; align-items: center; gap: 10px; font-size: 1.1rem;}

/* ADS & EXTRAS */
.sidebar-ad { width: 160px; min-height: 600px; background: #182235; border: 1px dashed #334155; display: none; flex-direction: column; justify-content: center; align-items: center; color: #475569; font-size: 0.8rem; border-radius: 12px; position: sticky; top: 100px; }
.ad-space { width: 100%; background: #182235; border: 1px dashed #334155; display: none; justify-content: center; align-items: center; color: #475569; margin: 25px 0; border-radius: 12px; }
.ad-header { height: 90px; } .ad-middle { height: 250px; max-width: 320px; }
#error-box { display: none; margin-top: 20px; padding: 15px; background: var(--error-bg); border: 1px solid var(--error-text); color: var(--error-text); border-radius: 12px; text-align: center; width: 100%; }
.loader { border: 3px solid rgba(255,255,255,0.1); border-top: 3px solid #3b82f6; border-radius: 50%; width: 30px; height: 30px; animation: spin 0.8s linear infinite; margin: 20px auto; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* FOOTER */
footer { margin-top: 60px; padding: 40px 20px; border-top: 1px solid var(--border-color); width: 100%; text-align: center; }
.footer-content p { color: var(--text-muted); font-size: 0.9rem; max-width: 600px; margin: 0 auto 15px auto; }
.footer-content a { color: var(--text-muted); transition: color 0.2s; text-decoration: none; cursor: pointer; font-weight: 600; }
.footer-content a:hover { color: #3b82f6; text-decoration: underline; }

/* MEDIA QUERIES */
@media (min-width: 768px) { .input-group { flex-direction: row; padding: 10px; } button.btn-download { width: 220px; height: auto; margin-left: 10px; } }
@media (min-width: 1200px) { /* .sidebar-ad { display: flex; } */ }