/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
header {
    text-align: center;
    padding: 40px 20px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    font-size: 3rem;
    margin-bottom: 10px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff0050, #00f2ea, #ff0050);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    margin-bottom: 10px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 25px;
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

/* Main Container */
.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.main-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 40px;
}

.main-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
}

/* Input Section */
.input-section {
    margin-bottom: 30px;
}

.input-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.url-input {
    width: 100%;
    padding: 18px 60px 18px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 16px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
}

.url-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

.paste-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.paste-icon:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Generate Button */
.generate-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.generate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.generate-btn:hover::before {
    left: 100%;
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Generate Button 2 */
.generate-btn2 {
    width: 100%;
    padding: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.generate-btn2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.generate-btn2:hover::before {
    left: 100%;
}

.generate-btn2:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.generate-btn2:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 30px;
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Results Section */
.results {
    display: none;
    margin-top: 30px;
}

.video-preview {
    text-align: center;
    margin-bottom: 25px;
}

.video-preview video {
    max-width: 100%;
    max-height: 400px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Butonları yan yana hizalayan ve aralarına boşluk koyan kapsayıcı */
.download-buttons-container {
  display: flex;
  justify-content: center; /* Butonları ortalar */
  gap: 15px; /* Butonlar arasına 15px boşluk koyar */
  margin-top: 20px; /* Üstteki elementle arasına boşluk koyar */
}

/* Tüm indirme butonları için ortak stil */
.btn-download {
  padding: 12px 25px;
  border: none;
  border-radius: 50px; /* Tam yuvarlak kenarlar için */
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none; /* Link altı çizgisini kaldırır */
  cursor: pointer;
  transition: all 0.3s ease; /* Üzerine gelince yumuşak geçiş efekti için */
  display: flex; /* İkon ve yazıyı hizalamak için */
  align-items: center;
  gap: 8px; /* İkon ve yazı arasına boşluk */
}

/* Üzerine gelince hafif büyüme efekti */
.btn-download:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Ses İndirme Butonu (Mavi tonları) */
.btn-download.audio {
  background: linear-gradient(45deg, #3b82f6, #60a5fa);
}

/* Video İndirme Butonu (Mor tonları) */
.btn-download.video {
  background: linear-gradient(45deg, #8b5cf6, #a78bfa);
}

.download-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.download-btn {
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.download-video {
    background: linear-gradient(45deg, #00c851, #007e33);
    color: white;
}

.download-audio {
    background: linear-gradient(45deg, #ff8a00, #e85d04);
    color: white;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin: 15px 0;
    font-weight: 500;
    display: none;
    animation: slideIn 0.3s ease;
}

.alert-error {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
}

.alert-success {
    background: linear-gradient(45deg, #51cf66, #40c057);
    color: white;
}

/* Content Sections */
.content-section {
    margin-bottom: 40px;
}

.content-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.6s ease-out;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: block;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.feature-desc {
    color: #666;
    line-height: 1.6;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question h3 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-icon {
    font-size: 1.5rem;
    color: #667eea;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.6;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
}

.about-text h3,
.about-text h4 {
    color: #333;
    margin-bottom: 15px;
}

.about-text h3 {
    font-size: 1.4rem;
}

.about-text h4 {
    font-size: 1.2rem;
    margin-top: 25px;
}

.about-text p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.blog-item {
    padding: 25px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-item h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.blog-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-date {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 50px 20px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 80px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-main {
    margin-bottom: 40px;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.footer-text {
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-column h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ── Globe Language Switcher ──────────────────────── */
.lang-globe {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 100;
}

/* trigger: flag + code pill */
.lang-globe .trigger {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50px;
    padding: 7px 14px 7px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.lang-globe .trigger:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.lang-globe .trigger .globe {
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.lang-globe .trigger .code {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.lang-globe .trigger .arrow {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 1px;
    transition: transform 0.2s;
}

.lang-globe.open .trigger .arrow {
    transform: rotate(180deg);
}

/* dropdown wrapper */
.lang-globe .dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 190px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
    pointer-events: none;
    transition: all 0.22s cubic-bezier(.4, 0, .2, 1);
}
.lang-globe.open .dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* search input area (sticky header inside dropdown) */
.lang-globe .search-wrap {
    padding: 10px 12px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    background: rgba(255, 255, 255, 0.98);
    position: sticky;
    top: 0;
    z-index: 2;
}
.lang-globe .search-wrap input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid rgba(0, 0, 0, 0.13);
    border-radius: 8px;
    font-size: 0.82rem;
    outline: none;
    background: #fafafa;
    color: #333;
    transition: border-color 0.2s;
}
.lang-globe .search-wrap input:focus {
    border-color: #667eea;
}
.lang-globe .search-wrap input::placeholder {
    color: #aaa;
}

/* scrollable language list */
.lang-globe .lang-list {
    max-height: 220px;
    overflow-y: auto;
}
.lang-globe .lang-list::-webkit-scrollbar       { width: 5px; }
.lang-globe .lang-list::-webkit-scrollbar-track  { background: transparent; }
.lang-globe .lang-list::-webkit-scrollbar-thumb  {
    background: rgba(102, 126, 234, 0.25);
    border-radius: 3px;
}
.lang-globe .lang-list::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.4);
}

/* each language link */
.lang-globe .lang-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-size: 0.86rem;
    font-weight: 500;
    transition: background 0.15s;
}
.lang-globe .lang-list a:hover {
    background: rgba(102, 126, 234, 0.07);
}
.lang-globe .lang-list a.active {
    background: rgba(102, 126, 234, 0.11);
    color: #5a3d9a;
    font-weight: 700;
}
.lang-globe .lang-list a + a {
    border-top: 1px solid rgba(0, 0, 0, 0.055);
}

/* flag emoji */
.lang-globe .lang-list .flag {
    font-size: 1.18rem;
    line-height: 1;
    flex-shrink: 0;
}

/* language name – takes remaining space */
.lang-globe .lang-list .name {
    flex: 1;
}

/* active check tick */
.lang-globe .lang-list .tick {
    font-size: 0.72rem;
    color: #667eea;
    opacity: 0;
    flex-shrink: 0;
}
.lang-globe .lang-list a.active .tick {
    opacity: 1;
}

/* hidden utility (search filter hides non-matching) */
.lang-globe .lang-list a.lang-hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .main-card,
    .content-card {
        padding: 25px;
    }

    .download-buttons {
        grid-template-columns: 1fr;
    }

    .footer-links-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .logo {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .main-nav {
        gap: 15px;
    }

    .nav-link {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .main-card,
    .content-card {
        padding: 20px;
    }

    .url-input {
        padding: 15px 50px 15px 15px;
    }

    .generate-btn {
        padding: 15px;
        font-size: 16px;
    }

    .generate-btn2 {
        padding: 10px;
        font-size: 11px;
    }
}
