/* 
   HTS Analiz Pro - Modern Stylesheet 
   Theme: Dark Tech & Glassmorphism (Restored from Backup)
*/

/* --- Variables --- */
:root {
    --bg-color: #0f172a;
    --bg-gradient: radial-gradient(circle at top left, #1e293b, #0f172a);

    --primary-color: #38bdf8;
    /* Sky Blue */
    --secondary-color: #818cf8;
    /* Indigo */
    --accent-color: #f472b6;
    /* Pink */

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);

    --font-main: 'Outfit', sans-serif;

    --transition: all 0.3s ease;
    --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.15);
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

ul {
    list-style: none;
}

/* --- Layout Utilities --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    margin-bottom: 3rem;
    position: relative;
}

.center-text {
    text-align: center;
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* --- Background Effects --- */
.bg-sphere {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
}

.sphere-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
    animation: float 10s infinite alternate;
}

.sphere-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: -50px;
    right: -50px;
    animation: float 12s infinite alternate-reverse;
}

@keyframes float {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(30px, 30px);
    }
}

/* --- Components --- */

/* Glass Effect */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-effect-strong {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
}

.btn-primary-alt {
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.btn-primary-alt:hover {
    background: var(--primary-color);
    color: white;
}

.btn-get-now {
    background: linear-gradient(135deg, #facc15, #eab308);
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.3);
}

.btn-get-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(234, 179, 8, 0.5);
    background: linear-gradient(135deg, #fde047, #facc15);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-main);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-200 {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.auth-modal {
    width: 90%;
    max-width: 450px;
    padding: 2.5rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .auth-modal {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    color: var(--text-muted);
    font-size: 1.5rem;
}

.close-modal:hover {
    color: white;
}

/* --- Light Theme Support (Soft/Eye-Comfort) --- */
body.theme-light {
    --bg-color: #f1f5f9;
    /* Slate 100 - Soft Gray/White */
    --bg-gradient: radial-gradient(circle at top left, #f8fafc, #f1f5f9);

    --text-main: #334155;
    /* Slate 700 - Soft Dark Gray */
    --text-muted: #64748b;
    /* Slate 500 */

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(203, 213, 225, 0.6);
    /* Slate 300 */
    --glass-blur: blur(16px);

    --shadow-glow: 0 4px 20px rgba(56, 189, 248, 0.1);
    /* Reduced glow */
}

/* Light Theme Override for Specific Elements */
body.theme-light .glass-effect-strong {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

body.theme-light .input,
body.theme-light textarea {
    background: rgba(255, 255, 255, 0.8);
    color: #1e293b;
    border: 1px solid #cbd5e1;
}

body.theme-light .feature-card:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--primary-color);
}

body.theme-light .accordion-header {
    color: var(--text-main);
    background: transparent;
}

body.theme-light .accordion-header:hover {
    background: rgba(0, 0, 0, 0.03);
}

body.theme-light .pricing-card {
    background: rgba(255, 255, 255, 0.6);
}

body.theme-light .social-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #334155;
    border: 1px solid #e2e8f0;
}

body.theme-light .social-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

body.theme-light .social-divider span {
    background: var(--bg-color);
    color: var(--text-muted);
}

/* --- Contact Section Styles (Fix Layout) --- */
.contact-section {
    padding: 100px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 50px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    /* Dark Glass */
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

/* Light Theme için Form Arka Planı (ÖNEMLİ) */
body.theme-light .contact-form-wrapper {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

/* Light Theme Input Overrides */
body.theme-light .contact-form input,
body.theme-light .contact-form textarea {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

body.theme-light .contact-form input:focus,
body.theme-light .contact-form textarea:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.full-width {
    width: 100%;
    justify-content: center;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}

/* --- Layout Fixes & Improvements --- */

/* Global Section Spacing */
section {
    padding: 6rem 0;
}

/* Credit System Promotion Banner */
.credit-promo-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(14, 165, 233, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.credit-promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

.credit-promo-banner h3 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.credit-promo-banner p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    color: var(--text-muted);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Grid System Fixes */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

@media (max-width: 968px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
}

/* Hero Enhancements */
.hero-section {
    padding-top: 180px;
    padding-bottom: 120px;
    min-height: 85vh;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-image {
        margin-top: 40px;
    }
}

/* Feature Cards Enhancement */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature-card {
    padding: 2.5rem;
    border-radius: 20px;
    height: 100%;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Pricing Enhancements */
.pricing-card {
    padding: 3rem 2rem !important;
    /* Increase padding */
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.pricing-card .price .amount {
    font-size: 3rem;
    font-weight: 700;
}

/* Light Theme Overrides (Refined) */
body.theme-light .feature-card,
body.theme-light .pricing-card {
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

body.theme-light .feature-card:hover,
body.theme-light .pricing-card.featured {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}


@media (max-width: 968px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* Hero Spacing */
.hero-section {
    padding-top: 180px;
    /* Navbar payı */
    padding-bottom: 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        margin-top: 50px;
    }
}

/* Info Section Spacing */
.hts-info-section {
    padding: 100px 0;
    margin-top: 50px;
}

.info-content img {
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.info-content img:hover {
    transform: scale(1.02);
}

/* Fix Mockup Image Overflow */
.info-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

/* --- Toast Notification Styles --- */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
    /* Allow clicking through container */
}

.toast {
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.toast.toast-visible {
    transform: translateX(0);
    opacity: 1;
}

.toast i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Light Theme Toast */
body.theme-light .toast {
    background: white;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* --- FULL WIDTH & RESPONSIVE ENHANCEMENTS --- */
.container {
    width: 94%;
    max-width: 1480px;
    padding: 0 24px;
}

@media (min-width: 1920px) {
    .container {
        max-width: 1700px;
    }
}

.navbar .nav-container {
    max-width: 98%;
    padding: 0.8rem 30px;
}

/* Mobile Enhancements */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 16px;
    }

    section {
        padding: 4rem 0;
    }

    .hero-section {
        padding-top: 110px;
        padding-bottom: 60px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-content,
    .grid-2,
    .contact-container {
        grid-template-columns: 1fr;
        /* Stack columns on mobile */
        gap: 2rem;
        display: flex;
        flex-direction: column;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        margin: 0;
    }

    /* Ensure images adjust */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* =========================================
   USER FIXES: Navbar Alignment & Hero Image Size
   ========================================= */

/* 1. Navbar Sıkışıklığını Giderme */
.navbar .nav-container {
    max-width: 98% !important;
    padding: 0 20px !important;
}

.navbar .nav-links {
    gap: 15px !important;
}

.navbar .nav-actions {
    gap: 6px !important;
    flex-wrap: nowrap !important;
    display: flex;
    /* Ensure flex behavior */
    align-items: center;
    /* Center items vertically */
}

/* Ensure buttons don't wrap internally */
.navbar .nav-actions a,
.navbar .nav-actions button {
    white-space: nowrap;
    flex-shrink: 0;
    /* Prevent shrinking */
}

/* Hide some nav links on smaller desktop screens to make space for buttons */
@media (max-width: 1250px) {
    .navbar .nav-links a:nth-child(5),
    /* SSS */
    .navbar .nav-links a:nth-child(6)

    /* İletişim */
        {
        display: none;
    }
}

.navbar .btn {
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    min-width: fit-content;
}

/* Logo boyutunu hafif optimize et */
.logo span {
    font-size: 1.3rem !important;
}

/* 2. Hero & Program Görsellerini Büyütme */
@media (min-width: 969px) {

    /* Hero Bölümü: Görsel alanını genişlet (Metin: %40, Görsel: %60) */
    .hero-content {
        grid-template-columns: 0.8fr 1.2fr !important;
        align-items: center !important;
        gap: 2rem !important;
    }

    /* Görsel Container'larını Büyüt */
    #hero-spinner,
    #program-spinner {
        width: 115% !important;
        /* %15 taşırarak büyüt */
        max-width: none !important;
        margin-left: -5% !important;
        /* Ortalamak için sola çek */
        transform-origin: center center;
    }

    /* Görsellerin kesilmesini önle */
    .hero-image,
    .info-visual {
        overflow: visible !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .hero-section {
        overflow-x: hidden;
        /* Sayfa taşmasını önle */
    }

    /* HTS Nedir Bölümü Görseli */
    .info-content.grid-2 {
        grid-template-columns: 0.8fr 1.2fr !important;
        align-items: center !important;
        gap: 3rem !important;
    }
}

/* --- Mobile Performance Optimizations (CRITICAL) --- */
@media (max-width: 768px) {

    /* 1. Disable heavy background blur animations creating lag */
    .bg-sphere {
        display: none !important;
        animation: none !important;
        filter: none !important;
    }

    /* 2. Disable heavy Glassmorphism (backdrop-filter) */
    .glass-effect,
    .glass-effect-strong,
    .navbar,
    .modal-overlay,
    .hero-text .beta-notice,
    nav.navbar {
        background-color: var(--bg-color) !important;
        /* Solid fallback */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        /* Shadows are also heavy */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Solid Light Theme Fallback for Mobile */
    body.theme-light .glass-effect,
    body.theme-light .navbar {
        background-color: #ffffff !important;
        border-bottom: 1px solid #e2e8f0;
    }

    /* 3. Simplify transforms */
    .hero-image,
    .info-visual {
        transform: translateZ(0);
        /* Promote to layer without blurry filter */
        perspective: none !important;
        /* Remove perspective */
    }

    #hero-spinner,
    #program-spinner {
        transform-style: flat !important;
        /* No 3D nesting */
    }

    /* 4. Font Loading Optimization */
    body {
        text-rendering: optimizeSpeed;
    }
}

/* Mobile Table Fixes */
@media (max-width: 768px) {
    .table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table { min-width: 500px; }
}
