/* --- CORE THEME & VARIABLES --- */
:root {
    /* DARK MODE (DEFAULT) */
    --bg-deep: #020b16;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-mute: rgba(255, 255, 255, 0.6);
    --accent-cyan: #00f3ff;
    --accent-purple: #bc13fe;
    --accent-green: #00ff88;
    --accent-teal: #00d2d3;
    --accent-solid: #00f3ff;
    --discount-badge: #0a3d62;
    --discount-text: #00d2d3;
    --success: #76ff03;
    --btn-grad: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    --card-navy: #0b1a2b;
    --card-border-navy: #152b45;
    --nav-bg: rgba(2, 11, 22, 0.85);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* LIGHT MODE OVERRIDES */
[data-theme="light"] {
    --bg-deep: #f4f7fa;
    --glass: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
    --text-main: #1a202c;
    --text-mute: #556070;
    --accent-cyan: #008ba3; /* Okunurluk için koyultuldu */
    --accent-solid: #00bcd4;
    --card-navy: #ffffff;
    --card-border-navy: #e2e8f0;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --discount-badge: #e0f7fa;
    --discount-text: #006064;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    background-color: var(--bg-deep); 
    color: var(--text-main); 
    font-family: 'Montserrat', sans-serif; 
    overflow-x: hidden; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    cursor: none; /* Body genelinde imleci gizle */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- THEME TOGGLE SWITCH (AY/GÜNEŞ) --- */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-right: 15px;
    z-index: 1002;
}

.theme-checkbox {
    display: none;
}

.theme-label {
    background-color: var(--glass);
    border: 1px solid var(--glass-border);
    width: 60px;
    height: 30px;
    border-radius: 50px;
    position: relative;
    padding: 5px;
    cursor: none; /* İmleç gizlendi */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: scale(0.9);
}

.theme-label .fa-moon { color: #f1c40f; font-size: 14px; margin-left: 5px; }
.theme-label .fa-sun { color: #f39c12; font-size: 14px; margin-right: 5px; }

.theme-ball {
    background-color: var(--text-main);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease;
}

/* Checkbox işaretlendiğinde (Light Mode Aktifse) */
.theme-checkbox:checked + .theme-label .theme-ball {
    transform: translateX(30px);
    background-color: #fff; /* Light modda top beyaz kalsın */
}

/* --- OJS HOME GRID --- */
#ojs-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    margin-top: 40px;
}

@media(max-width: 768px) {
    #ojs-home-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
}

/* --- BACKGROUND & CURSOR --- */
#aurora-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; filter: blur(50px); opacity: 0.7; pointer-events: none; }
.stars { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)), radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)); background-size: 300px 300px; z-index: -2; opacity: 0.3; animation: twinkle 8s infinite; }

/* Light modda yıldızları gizle, aurora'yı yumuşat */
[data-theme="light"] .stars { opacity: 0; }
[data-theme="light"] #aurora-canvas { opacity: 0.3; }

#custom-cursor { position: fixed; top: 0; left: 0; width: 32px; height: 32px; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); filter: drop-shadow(0 0 8px rgba(0, 243, 255, 0.6)); transition: transform 0.1s ease-out; display: none; }
#custom-cursor.clicking { transform: translate(-50%, -50%) scale(0.8); }

/* --- CURSOR DISPLAY SETTINGS --- */
@media (pointer: fine) { 
    #custom-cursor { display: block; } 
    
    /* BUTONLAR VE LINKLER ICIN SISTEM IMLECINI GIZLE */
    a, button, input, select, textarea, 
    .premium-card, .btn-primary, .btn-secondary, 
    .lang-btn, .theme-label, .cart-icon-wrap, .hamburger {
        cursor: none !important;
    }
}

@media (hover: none) and (pointer: coarse) { 
    body { cursor: auto; } 
    #custom-cursor { display: none; } 
    a, button, .premium-card { cursor: pointer; } 
}

/* Light modda cursor rengini güncelle ve KARE SORUNUNU ÇÖZ (border-radius) */
[data-theme="light"] #custom-cursor { 
    border: 2px solid var(--accent-cyan); 
    filter: none; 
    border-radius: 50%; /* Kare görünümünü daire yapar */
}

/* --- NAVBAR --- */
nav { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 1.5rem 5%; display: flex; justify-content: space-between; align-items: center; background: var(--nav-bg); backdrop-filter: blur(15px); border-bottom: 1px solid var(--glass-border); transition: background 0.3s ease; }
.logo { font-family: 'Exo 2', sans-serif; font-size: 1.5rem; font-weight: 600; letter-spacing: 2px; color: var(--text-main); text-shadow: 0 0 10px var(--accent-cyan); z-index: 1001; text-decoration: none; cursor: none; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-mute); font-family: 'Exo 2', sans-serif; font-weight: 300; letter-spacing: 1px; transition: 0.3s; text-transform: uppercase; font-size: 0.9rem; position: relative; cursor: none; }
.nav-links a:hover { color: var(--text-main); text-shadow: 0 0 10px var(--accent-cyan); }
.nav-links a.active { color: var(--text-main); border-bottom: 2px solid var(--accent-solid); padding-bottom: 5px; }
.nav-actions { display: flex; gap: 1.5rem; align-items: center; z-index: 1001; }
.hamburger { display: none; font-size: 1.5rem; color: var(--text-main); cursor: none; z-index: 1002; }

/* Dropdown & Cart */
.lang-dropdown { position: relative; }
.lang-btn { background: transparent; border: 1px solid var(--glass-border); color: var(--text-mute); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; cursor: none; transition: 0.3s; font-family: 'Montserrat', sans-serif; }
.lang-btn:hover { border-color: var(--accent-cyan); color: var(--text-main); }
.dropdown-content { display: none; position: absolute; right: 0; top: 120%; background: var(--card-navy); border: 1px solid var(--glass-border); border-radius: 10px; min-width: 120px; overflow: hidden; z-index: 1005; }
.dropdown-content a { display: block; padding: 10px 15px; color: var(--text-mute); text-decoration: none; font-size: 0.8rem; cursor: none; }
.dropdown-content a:hover { background: var(--glass); color: var(--text-main); }
.show { display: block; }
.cart-icon-wrap { position: relative; color: var(--text-mute); transition: 0.3s; cursor: none; }
.cart-icon-wrap:hover { color: var(--text-main); text-shadow: 0 0 10px var(--accent-cyan); }
.cart-count { position: absolute; top: -8px; right: -8px; background: var(--accent-purple); color: #fff; font-size: 0.7rem; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; display: none; }

/* --- MOBILE MENU --- */
.mobile-menu-overlay { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: var(--bg-deep); backdrop-filter: blur(20px); z-index: 1500; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: 0.4s ease-in-out; border-left: 1px solid var(--glass-border); }
.mobile-menu-overlay.active { right: 0; }
.mobile-menu-links { list-style: none; text-align: center; }
.mobile-menu-links li { margin: 20px 0; opacity: 0; transform: translateY(20px); transition: 0.5s; }
.mobile-menu-overlay.active .mobile-menu-links li { opacity: 1; transform: translateY(0); }
.mobile-menu-links a { font-family: 'Exo 2'; font-size: 1.5rem; color: var(--text-main); text-decoration: none; text-transform: uppercase; letter-spacing: 2px; cursor: none; }
.mobile-close-btn { position: absolute; top: 30px; right: 30px; font-size: 2rem; color: var(--text-main); cursor: none; }

/* --- GLOBAL LAYOUT --- */
.hero { padding: 180px 5% 60px; text-align: center; }
.hero h1 { font-family: 'Exo 2', sans-serif; font-size: 4rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--text-main); line-height: 1.2; }
.aurora-text { background: linear-gradient(to right, #00f3ff, #fff, #bc13fe); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; display: inline-block; }
[data-theme="light"] .aurora-text { background: linear-gradient(to right, #008ba3, #bc13fe); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.hero p, .hero-main-text { color: var(--text-mute); font-size: 1.2rem; max-width: 800px; margin: 0 auto 3rem; line-height: 1.6; }
.hero-main-text { font-size: 2.5rem; font-weight: 300; background: linear-gradient(120deg, #fff, #a5f3fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
[data-theme="light"] .hero-main-text { background: linear-gradient(120deg, #1a202c, #008ba3); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.hero-main-text span { font-weight: 600; display: block; margin-top: 10px; font-size: 3rem; letter-spacing: -1px; text-shadow: 0 0 30px rgba(165, 243, 252, 0.3); }
[data-theme="light"] .hero-main-text span { text-shadow: none; }

.hero-btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: var(--btn-grad); color: #fff; padding: 15px 40px; border: none; border-radius: 30px; font-family: 'Exo 2'; font-weight: 600; font-size: 1rem; cursor: none; transition: 0.3s; text-decoration: none; white-space: nowrap; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 243, 255, 0.5); }
.btn-secondary { background: transparent; color: var(--text-main); padding: 15px 40px; border: 1px solid var(--glass-border); border-radius: 30px; font-family: 'Exo 2'; font-weight: 600; font-size: 1rem; cursor: none; transition: 0.3s; text-decoration: none; white-space: nowrap; }
.btn-secondary:hover { border-color: var(--accent-cyan); background: var(--glass); }

/* Sections */
.info-section { padding: 80px 5%; max-width: 1400px; margin: 0 auto; display: flex; align-items: center; gap: 50px; }
.info-section.reverse { flex-direction: row-reverse; }
.info-text { flex: 1; }
.info-text h2 { font-family: 'Exo 2'; font-size: 2.5rem; color: var(--text-main); margin-bottom: 20px; text-transform: uppercase; }
.info-text p { color: var(--text-mute); line-height: 1.7; font-size: 1.1rem; margin-bottom: 20px; }
.info-text ul { list-style: none; margin-bottom: 20px; }
.info-text ul li { margin-bottom: 10px; color: var(--text-mute); display: flex; align-items: center; }
.info-text ul li i { color: var(--accent-green); margin-right: 10px; }
.info-img { flex: 1; display: flex; justify-content: center; width: 100%; }
.placeholder-img { width: 100%; max-width: 500px; height: 350px; background: rgba(255,255,255,0.05); border: 2px dashed var(--glass-border); border-radius: 20px; display: flex; align-items: center; justify-content: center; color: var(--text-mute); font-family: 'Exo 2'; text-align: center; padding: 20px; overflow: hidden; }
.placeholder-img img { width: 100%; height: 100%; object-fit: cover; }

/* Grid & Cards */
.packages-container { padding: 0 5% 80px; max-width: 1400px; margin: 0 auto; width: 100%; }
.pricing-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; padding: 0 5% 100px; max-width: 1400px; margin: 0 auto; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; width: 100%; }
.premium-card, .plan-card { background: var(--card-navy); border: 1px solid var(--card-border-navy); border-radius: 16px; padding: 30px 25px; transition: 0.4s; position: relative; display: flex; flex-direction: column; height: 100%; backdrop-filter: blur(25px); cursor: none; }
.premium-card:hover, .plan-card:hover { border-color: var(--accent-cyan); transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.card-header h3, .plan-name { font-family: 'Exo 2'; font-size: 1.5rem; font-weight: 600; color: var(--text-main); margin-bottom: 5px; }
.price-wrap, .price-area { margin: 1.5rem 0; border-bottom: 1px solid var(--glass-border); padding-bottom: 1.5rem; }
.old-price { text-decoration: line-through; color: var(--text-mute); font-size: 0.9rem; margin-right: 10px; }
.save-badge, .discount-tag { background: var(--discount-badge); color: var(--discount-text); padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; border: 1px solid var(--glass-border); }
.main-price, .current-price { font-family: 'Exo 2'; font-size: 2.8rem; color: var(--text-main); font-weight: 500; display: block; line-height: 1.1; margin-top: 5px; text-shadow: 0 0 20px rgba(0, 243, 255, 0.2); }
[data-theme="light"] .main-price, [data-theme="light"] .current-price { text-shadow: none; }

.price-period { font-size: 0.9rem; color: var(--text-mute); font-weight: 400; }
.currency-note { display: block; font-size: 0.7rem; color: #8fa6b8; margin-top: 5px; font-style: italic; }
.user-count-highlight, .features li.highlight { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); font-weight: 700; color: var(--text-main); font-size: 1rem; }
[data-theme="light"] .user-count-highlight, [data-theme="light"] .features li.highlight { border-bottom: 1px solid rgba(0,0,0,0.1); }

.user-count-highlight i, .features li i { color: var(--accent-teal); font-size: 1.2rem; }
.feature-list, .features { list-style: none; margin-bottom: 30px; flex-grow: 1; }
.feature-list li, .features li { color: var(--text-mute); margin-bottom: 12px; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.feature-list li i, .features li i { color: var(--accent-teal); font-size: 0.9rem; }
.card-btn, .btn-add { background: transparent; border: 1px solid var(--glass-border); color: var(--text-main); padding: 15px; width: 100%; border-radius: 4px; font-family: 'Exo 2'; font-weight: 600; font-size: 0.9rem; letter-spacing: 1px; cursor: none; transition: 0.3s; text-transform: uppercase; }
.card-btn:hover, .btn-add:hover { background: var(--glass); border-color: var(--accent-cyan); text-shadow: 0 0 10px #fff; box-shadow: 0 0 20px rgba(0, 243, 255, 0.2); }
[data-theme="light"] .card-btn:hover, [data-theme="light"] .btn-add:hover { text-shadow: none; }

.view-all-container { text-align: center; margin-top: 40px; }
.btn-view-all { display: inline-block; background: var(--glass); color: var(--text-mute); padding: 12px 30px; border-radius: 30px; text-decoration: none; border: 1px solid var(--glass-border); transition: 0.3s; font-size: 0.9rem; cursor: none; }
.btn-view-all:hover { color: var(--text-main); border-color: var(--accent-cyan); }

/* Table */
.academic-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: var(--card-navy); border-radius: 10px; overflow: hidden; border: 1px solid var(--card-border-navy); }
.academic-table th, .academic-table td { padding: 15px; text-align: left; border-bottom: 1px solid var(--glass-border); color: var(--text-mute); }
.academic-table th { background: rgba(0,0,0,0.2); color: #fff; font-family: 'Exo 2'; }
[data-theme="light"] .academic-table th { background: rgba(0,0,0,0.05); color: var(--text-main); }

/* Cart */
.cart-sidebar { position: fixed; top: 0; right: -400px; width: 350px; height: 100vh; background: var(--bg-deep); border-left: 1px solid var(--glass-border); z-index: 2000; padding: 2rem; display: flex; flex-direction: column; transition: right 0.4s cubic-bezier(0.21, 1, 0.35, 1); }
.cart-sidebar.active { right: 0; }
.cart-header { display: flex; justify-content: space-between; border-bottom: 1px solid var(--glass-border); padding-bottom: 1rem; margin-bottom: 1rem; }
.cart-header h2 { font-family: 'Exo 2'; font-weight: 300; color: var(--text-main); }
.cart-item { background: var(--glass); padding: 1rem; margin-bottom: 1rem; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--glass-border); }
.btn-checkout { width: 100%; background: var(--accent-purple); color: #fff; border: none; padding: 15px; font-family: 'Exo 2'; letter-spacing: 1px; margin-top: auto; cursor: none; }
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--bg-deep); border: 1px solid var(--success); color: var(--success); padding: 10px 30px; border-radius: 30px; opacity: 0; transition: 0.5s; z-index: 3000; box-shadow: 0 5px 20px rgba(0,0,0,0.3); }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* Footer */
footer { margin-top: auto; border-top: 1px solid var(--glass-border); background: var(--nav-bg); backdrop-filter: blur(10px); padding: 60px 5% 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; max-width: 1400px; margin: 0 auto; }
.footer-col h4 { font-family: 'Exo 2'; color: var(--text-main); margin-bottom: 20px; font-size: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-mute); text-decoration: none; transition: 0.3s; font-size: 0.9rem; cursor: none; }
.footer-col ul li a:hover { color: var(--accent-cyan); padding-left: 5px; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; color: var(--text-main); text-decoration: none; transition: 0.3s; cursor: none; }
.social-links a:hover { background: var(--accent-cyan); color: #000; border-color: var(--accent-cyan); }
.copyright { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid var(--glass-border); color: var(--text-mute); font-size: 0.8rem; }

@media (hover: hover) {
    a:hover ~ #custom-cursor, button:hover ~ #custom-cursor, .premium-card:hover ~ #custom-cursor, .cart-icon-wrap:hover ~ #custom-cursor, .theme-label:hover ~ #custom-cursor { transform: translate(-50%, -50%) scale(1.3); }
}

@media(max-width: 992px) {
    .nav-links { display: none; } .hamburger { display: block; }
    header, .hero { padding-top: 140px; } .hero h1 { font-size: 2.5rem; }
}

@media(max-width: 768px) {
    .nav-actions { gap: 0.8rem; } .lang-btn { padding: 4px 10px; font-size: 0.7rem; } .cart-icon-wrap i, .hamburger i { font-size: 1.2rem; }
    .hero-main-text { font-size: 1.8rem; } .hero-main-text span { font-size: 2.2rem; }
    .cart-sidebar { width: 100%; right: -100%; }
    
    /* MOBILE IMAGE FIX */
    .info-section { flex-direction: column !important; text-align: center; gap: 40px; }
    .info-section.reverse { flex-direction: column !important; }
    .info-img { width: 100% !important; margin-top: 20px; display: block; }
    .placeholder-img { width: 100% !important; height: auto !important; min-height: 250px; max-height: 400px; display: flex; }
    .placeholder-img img { width: 100% !important; height: 100% !important; object-fit: cover !important; }

    .info-text ul { display: inline-block; text-align: left; }
    .academic-table { display: block; width: 100%; border: none; background: transparent; }
    .academic-table tbody { display: block; width: 100%; }
    .academic-table tr { display: flex; flex-direction: column; width: 100%; margin-bottom: 10px; }
    .academic-table td { display: flex; align-items: center; justify-content: flex-start; width: 100%; padding: 10px; background: var(--card-navy); border-bottom: 1px solid rgba(255,255,255,0.1); }
    [data-theme="light"] .academic-table td { border-bottom: 1px solid rgba(0,0,0,0.1); }
}

@keyframes twinkle { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.6; } }

/* FIX: image crop issue */
.placeholder-img {
    height: auto;
}

.placeholder-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* === MOBILE: PACKAGES & CARDS STACK FIX (SAFE) === */
@media (max-width: 768px) {
    .pricing-container,
    .packages-container,
    .service-grid,
    #ojs-home-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* --- LIGHT MODE CART FIXES (BEYAZ MOD SEPET DÜZELTMELERİ) --- */
[data-theme="light"] .cart-item {
    background: rgba(0, 0, 0, 0.05); /* Sepet elemanının arka planını hafif koyulaştır */
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .cart-item h4, 
[data-theme="light"] .cart-item span, 
[data-theme="light"] .cart-item p,
[data-theme="light"] .cart-item div {
    color: #000000 !important; /* Ürün isimleri ve fiyatları siyah */
}

[data-theme="light"] .cart-item i {
    color: #000000 !important; /* X (Silme) ikonu siyah */
    opacity: 0.7;
}

[data-theme="light"] .cart-item i:hover {
    color: var(--accent-cyan) !important; /* Üzerine gelince tema rengi olsun */
    opacity: 1;
}
    
}