:root {
    --primary-color: #1d9bf0;
    --primary-hover: #1a8cd8;
    --bg-color: #000000;
    --text-color: #e7e9ea;
    --text-muted: #71767b;
    --surface-color: #16181c;
    --border-color: #2f3336;
    --input-bg: #202327;
    --card-bg: #16181c;
    --shadow-soft: 0 10px 40px rgba(29, 155, 240, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.light-mode {
    --bg-color: #ffffff;
    --text-color: #0f1419;
    --text-muted: #536471;
    --surface-color: rgba(255, 255, 255, 0.95);
    --border-color: #cfd9de;
    --input-bg: #eff3f4;
    --card-bg: #ffffff;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0;
    background-image: radial-gradient(circle at 50% 10%, rgba(29, 155, 240, 0.05) 0%, transparent 40%);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.9);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 50px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
    cursor: pointer;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.1);
}

.site-name {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.text-baba {
    color: var(--text-color);
}

.text-download {
    color: var(--primary-color);
}

.nav-links {
    display: none;
    gap: 15px;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 30px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active-link {
    background-color: rgba(29, 155, 240, 0.1);
    color: var(--primary-color);
}

/* NAV RIGHT */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Lang Dropdown */
.lang-dropdown {
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    margin-bottom: -20px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.lang-btn:hover,
.lang-dropdown.active .lang-btn {
    border-color: var(--primary-color);
    background-color: rgba(29, 155, 240, 0.1);
}

.flag-img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

.lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    min-width: 160px;
    z-index: 1001;
    overflow: hidden;
    margin-top: 5px;
}

.lang-menu.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-item {
    padding: 12px 15px;
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.lang-item:hover {
    background-color: rgba(29, 155, 240, 0.1);
    color: var(--primary-color);
}

.theme-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.theme-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
    }
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    display: none;
    backdrop-filter: blur(3px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: var(--card-bg);
    z-index: 1003;
    padding: 20px;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

#close-mobile-menu {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
}

.mobile-links a {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.mobile-links a:hover,
.mobile-links a.active-link {
    color: var(--primary-color);
}

/* Main Content */
.main-container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
    text-align: center;
    margin-top: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1px;
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 600px;
    line-height: 1.6;
}

/* Input */
.input-group {
    display: flex;
    width: 100%;
    max-width: 750px;
    background: var(--input-bg);
    border-radius: 9999px;
    padding: 8px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(29, 155, 240, 0.3);
}

.input-error {
    border-color: #f4212e !important;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

.input-group input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 20px;
    font-size: 16px;
    background: transparent;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
}

#paste-btn {
    background: transparent;
    border: none;
    border-right: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 50px;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
    border-radius: 0;
}

#paste-btn:hover {
    color: var(--primary-color);
}

.input-group button#download-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 45px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 9999px;
    transition: background-color 0.2s;
    margin-left: 10px;
}

.input-group button#download-btn:hover {
    background-color: var(--primary-hover);
}

/* Result Area */
.result-container {
    width: 100%;
    max-width: 750px;
    margin-top: 50px;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    display: none;
}

.video-card {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.video-thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.video-info {
    flex: 1;
    text-align: left;
}

.video-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.options-title {
    text-align: left;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
}

.buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.dl-option-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    padding: 12px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-color);
}

.dl-option-btn:hover {
    border-color: var(--primary-color);
    background-color: rgba(29, 155, 240, 0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.status-container {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.status-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* History Section */
.history-section {
    width: 100%;
    max-width: 750px;
    margin-top: 30px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px;
}

.history-title {
    font-size: 18px;
    color: var(--text-muted);
    font-family: 'Oswald', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clear-btn {
    background: transparent;
    border: none;
    color: #f4212e;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

.history-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-card {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 12px;
    transition: var(--transition);
}

.history-card:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.history-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.history-info {
    flex: 1;
    text-align: left;
    overflow: hidden;
}

.history-text {
    font-size: 14px;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.history-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.history-download-btn {
    background: rgba(29, 155, 240, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.history-download-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* --- NASIL KULLANILIR (IZGARA DÜZELTME) --- */
.info-section {
    width: 100%;
    max-width: 900px;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    color: var(--text-color);
    margin-bottom: 30px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
}

.step-card {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.step-number {
    background: var(--primary-color);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
}

.step-card h3 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
}

.step-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* --- GİZLİLİK POLİTİKASI (IZGARA DÜZELTME) --- */
.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 900px;
    margin-top: 30px;
}

.policy-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 16px;
    text-align: left;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.policy-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.policy-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: rgba(29, 155, 240, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.policy-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--primary-color);
}

.policy-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.policy-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

.policy-footer {
    margin-top: 50px;
    font-size: 13px;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.6;
}

/* --- SSS (AKORDEON DÜZELTME) --- */
.faq-container {
    width: 100%;
    max-width: 800px;
    text-align: left;
    margin-top: 30px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 14px;
}

.faq-item.active .faq-answer {
    padding-bottom: 20px;
}

/* --- FOOTER (YAN YANA DÜZEN) --- */
.site-footer {
    width: 100%;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    margin-top: auto;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    /* YAN YANA İÇİN ŞART */
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
    /* Mobilde alt alta geçsin */
    gap: 20px;
}

.footer-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.copyright {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Mobil Footer Ayarı */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Skeleton Loader */
.skeleton-loader {
    width: 100%;
    max-width: 750px;
    margin-top: 50px;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border-color);
    display: none;
}

.skeleton-box {
    background: linear-gradient(90deg, var(--border-color) 25%, var(--input-bg) 50%, var(--border-color) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-row {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.sk-thumb {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    flex-shrink: 0;
}

.sk-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sk-line-1 {
    height: 20px;
    width: 80%;
}

.sk-line-2 {
    height: 15px;
    width: 50%;
}

.sk-bar {
    height: 40px;
    width: 100%;
    border-radius: 20px;
    margin-top: 20px;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loaded #preloader {
    opacity: 0;
    visibility: hidden;
}

/* Transitions */
.main-container {
    animation: slideInFromRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body.page-exiting .main-container {
    transform: translateX(-50px);
    opacity: 0;
    transition: all 0.4s ease-in-out;
}