@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #f4f6f9;
    --text-color: #1e293b;
    --text-light: #64748b;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --dark-bg: #0f172a;
    --card-bg: #ffffff;
    --accent-purple: #a855f7;
    --accent-red: #ef4444;
    --border-color: #e2e8f0;
    --header-bg: #ffffff;
    --modal-bg: #ffffff;
}

body.dark-theme {
    --bg-color: #090d16;
    --text-color: #f1f5f9;
    --text-light: #94a3b8;
    --primary: #38bdf8;
    --primary-hover: #0284c7;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --accent-purple: #c084fc;
    --accent-red: #f87171;
    --border-color: #334155;
    --header-bg: #1e293b;
    --modal-bg: #1e293b;
}

body { 
    font-family: 'Outfit', sans-serif; 
    margin: 0; padding: 0; 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    line-height: 1.5; 
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* === HEADER & SUB-HEADER STRIP === */
header { 
    background-color: var(--header-bg); 
    color: var(--text-color); 
    padding: 15px 50px; 
    display: flex; 
    align-items: center; 
    gap: 35px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); 
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.sub-header-strip {
    background-color: var(--dark-bg);
    color: #f8fafc;
    padding: 8px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}
.sub-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #94a3b8;
    font-weight: 500;
}
.sub-header-socials {
    display: flex;
    gap: 15px;
    margin-left: auto;
}
.sub-header-socials a {
    color: #94a3b8;
    transition: color 0.3s, transform 0.3s;
    font-size: 15px;
    text-decoration: none;
}
.sub-header-socials a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

@keyframes techVibrate {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-1.5px, 1px) rotate(-1deg); }
    50% { transform: translate(1.5px, -1px) rotate(1deg); }
    75% { transform: translate(-1px, 0) rotate(0deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.logo-container { 
    position: relative; 
    width: 220px; 
    height: 60px; 
    flex-shrink: 0; 
    cursor: pointer;
}
.logo-container:hover {
    animation: techVibrate 0.3s ease;
}

.logo-light, .logo-dark { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: none; }
body:not(.dark-theme) .logo-light { display: block; }
body.dark-theme .logo-dark { display: block; }

.logo-container img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; animation: fadeEffect 25s infinite; }
.logo-container img:nth-child(1) { animation-delay: 0s; }
.logo-container img:nth-child(2) { animation-delay: 5s; }
.logo-container img:nth-child(3) { animation-delay: 10s; }
.logo-container img:nth-child(4) { animation-delay: 15s; }
.logo-container img:nth-child(5) { animation-delay: 20s; }
@keyframes fadeEffect { 0% { opacity: 0; } 10% { opacity: 1; } 20% { opacity: 1; } 30% { opacity: 0; } 100% { opacity: 0; } }

/* Menü Tasarımı */
nav ul { list-style: none; display: flex; gap: 15px; margin: 0; padding: 0; align-items: center; }
nav ul li a { 
    font-family: 'Outfit', sans-serif; 
    color: var(--text-color); 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 14px; 
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    transition: all 0.3s ease;
}
.menu-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
nav ul li a:hover { 
    color: var(--primary);
    background: transparent;
    transform: translateY(-2px);
}
nav ul li a:hover .menu-dot {
    transform: scale(1.6);
    box-shadow: 0 0 8px var(--primary);
}
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 12px; right: 12px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
nav ul li a:hover::after {
    transform: scaleX(1);
}

.header-right-area { display: flex; align-items: center; gap: 15px; margin-left: auto; }

/* Daha Küçük Dark/Light Geçiş Butonu */
.theme-toggle-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    width: 36px; height: 36px; /* Daha küçük boyut */
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 15px; /* Küçültüldü */
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.theme-toggle-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(15deg) scale(1.05);
}
body.dark-theme .theme-toggle-btn .fa-moon { display: none; }
body:not(.dark-theme) .theme-toggle-btn .fa-sun { display: none; }

/* === KULLANICI PROFİLİ VE AÇILIR MENÜ (DROPDOWN) === */
.user-dropdown-container {
    position: relative;
}
.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.user-profile-btn:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.12);
}
.user-profile-btn img {
    width: 36px; height: 36px;
    border-radius: 8px; /* Kare ve yumuşak kenarlı */
    object-fit: cover;
    border: 2px solid var(--primary);
}
.user-profile-btn span {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-color);
}
.user-profile-btn i {
    font-size: 12px;
    color: var(--text-light);
    transition: transform 0.3s;
}
.user-dropdown-container.active .user-profile-btn i {
    transform: rotate(180deg);
}

/* Dropdown İçerik */
.user-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 220px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    animation: fadeInDropdown 0.2s ease;
}
.user-dropdown-container.active .user-dropdown-menu {
    display: flex;
}
@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-dropdown-menu a {
    padding: 12px 18px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    transition: 0.2s;
}
.user-dropdown-menu a:last-child {
    border-bottom: none;
}
.user-dropdown-menu a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding-left: 22px;
}
.user-dropdown-menu a i {
    width: 16px;
    text-align: center;
}

.user-area button { background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-family: 'Outfit'; font-weight: 600; transition: 0.3s; }
.user-area button:hover { background: var(--primary-hover); }

/* Modal Stilleri */
.modal { display: none; position: fixed; z-index: 999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(5px); }
.modal-content { background-color: var(--modal-bg); color: var(--text-color); margin: 5% auto; padding: 30px; border-radius: 12px; width: 400px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; color: var(--text-light); }
.form-group { margin-bottom: 15px; }
.form-group input { width: 100%; padding: 12px; border: 1px solid var(--border-color); background: var(--bg-color); color: var(--text-color); border-radius: 8px; font-family: 'Outfit'; box-sizing: border-box; }
.btn-submit { width: 100%; background: var(--dark-bg); color: #fff; padding: 12px; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; margin-bottom: 10px; }
.btn-google { width: 100%; background: #db4437; color: #fff; padding: 12px; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; }

/* Anasayfa & Diğer Alanlar */
.container { max-width: 1280px; margin: 30px auto; padding: 0 20px; }
.hero-grid { display: grid; grid-template-columns: 1fr 280px; gap: 20px; margin-bottom: 40px; }
.main-hero-area { display: flex; flex-direction: column; gap: 20px; width: 100%; overflow: hidden; }
.slider-container { position: relative; width: 100%; height: 350px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.05); background: var(--dark-bg); }
.slide { display: flex; width: 100%; height: 100%; position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 0.5s ease-in-out; z-index: 1; }
.slide.active { opacity: 1; z-index: 2; }
.slide .featured-img { width: 65%; height: 100%; position: relative; }
.slide .featured-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.slide .featured-text { width: 35%; height: 100%; background-color: var(--accent-red); color: white; padding: 30px; display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; }
.slide .featured-text h2 { margin: 0 0 10px 0; font-size: 26px; font-weight: 800; line-height: 1.2; }
.slide .featured-text p { margin: 0; font-size: 14px; opacity: 0.9; }

.slider-nav { position: absolute; top: 50%; width: 65%; display: flex; justify-content: space-between; padding: 0 15px; transform: translateY(-50%); z-index: 3; box-sizing: border-box; pointer-events: none; }
.slider-btn { pointer-events: auto; background: rgba(0,0,0,0.5); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: 0.3s; backdrop-filter: blur(5px); }
.slider-btn:hover { background: var(--accent-red); }
.slider-dots { position: absolute; bottom: 15px; left: 32.5%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: 0.3s; }
.slider-dot.active { background: white; width: 24px; border-radius: 6px; }

.hot-deals { background-color: var(--accent-purple); color: white; border-radius: 12px; padding: 20px; box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2); height: 100%; box-sizing: border-box; }
.hot-deals-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; border-bottom: 2px solid rgba(255,255,255,0.2); padding-bottom: 15px; margin-bottom: 15px; }
.hot-deals ul { list-style: none; padding: 0; margin: 0; }
.hot-deals ul li { border-bottom: 1px dashed rgba(255,255,255,0.3); padding: 12px 0; font-size: 14px; font-weight: 600; line-height: 1.4; transition: 0.2s; cursor: pointer; }
.hot-deals ul li:last-child { border-bottom: none; }
.hot-deals ul li:hover { padding-left: 5px; color: #fdf4ff; }

.sub-hero-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.sub-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: transform 0.2s; cursor: pointer; }
.sub-card:hover { transform: translateY(-5px); }
.sub-card img { width: 100%; height: 130px; object-fit: cover; border-bottom: 2px solid var(--accent-red); }
.sub-card .title { padding: 12px; font-size: 14px; font-weight: 700; color: var(--text-color); line-height: 1.3; }

.section-title { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--text-color); margin-bottom: 20px; }
.section-title i { color: var(--accent-red); font-style: normal; font-size: 24px; }
.carousel-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-bottom: 40px; }
.video-card { position: relative; border-radius: 10px; overflow: hidden; cursor: pointer; border: 1px solid var(--border-color); }
.video-card img { width: 100%; height: 140px; object-fit: cover; display: block; transition: 0.3s; }
.video-card:hover img { transform: scale(1.05); }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(239, 68, 68, 0.9); width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; padding-left: 4px; box-sizing: border-box; font-size: 20px; z-index: 2; pointer-events: none; }
.video-card .title { background: var(--card-bg); padding: 10px; font-size: 13px; font-weight: 700; height: 50px; overflow: hidden; color: var(--text-color); }

.content-split { display: grid; grid-template-columns: 1fr 320px; gap: 30px; margin-bottom: 40px; }
.news-feed { display: flex; flex-direction: column; gap: 20px; }
.news-row { display: flex; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.03); transition: 0.2s; cursor: pointer; align-items: stretch; }
.news-row:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.news-content { flex: 1; padding: 25px; display: flex; flex-direction: column; justify-content: center; }
.news-content h3 { margin: 0 0 10px 0; font-size: 20px; font-weight: 700; color: var(--text-color); }
.news-content p { margin: 0 0 15px 0; font-size: 14px; color: var(--text-light); line-height: 1.5; }
.news-meta { font-size: 12px; color: var(--text-light); font-weight: 600; }
.news-meta span { color: var(--accent-red); margin-right: 5px; }
.news-img { width: 320px; flex-shrink: 0; }
.news-img img { width: 100%; height: 100%; object-fit: cover; }

.sidebar-widget { background: var(--card-bg); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid var(--border-color); }
.sidebar-widget .header { background: var(--accent-red); color: white; padding: 15px 20px; font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.sidebar-widget .main-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.sidebar-widget ul { list-style: none; padding: 20px; margin: 0; counter-reset: custom-counter; }
.sidebar-widget li { position: relative; padding-left: 45px; margin-bottom: 20px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--text-color); cursor: pointer; }
.sidebar-widget li:last-child { margin-bottom: 0; }
.sidebar-widget li:hover { color: var(--accent-red); }
.sidebar-widget li::before { counter-increment: custom-counter; content: counter(custom-counter); position: absolute; left: 0; top: -3px; width: 28px; height: 28px; background: var(--accent-red); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .slide .featured-img { width: 50%; }
    .slide .featured-text { width: 50%; }
    .slider-nav { width: 50%; }
    .slider-dots { left: 25%; }
    .sub-hero-grid, .carousel-row { grid-template-columns: repeat(3, 1fr); }
    .content-split { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    header { padding: 15px 20px; flex-direction: column; gap: 15px; }
    .header-right-area { margin-left: 0; width: 100%; justify-content: space-between; }
    .sub-header-strip { padding: 8px 20px; flex-direction: column; gap: 8px; text-align: center; }
    .sub-header-socials { margin-left: 0; }
    .sub-hero-grid, .carousel-row { grid-template-columns: repeat(2, 1fr); }
    .slide { flex-direction: column; }
    .slide .featured-img, .slide .featured-text { width: 100%; height: 50%; }
    .slider-nav { width: 100%; top: 25%; }
    .slider-dots { left: 50%; bottom: 55%; }
    .news-row { flex-direction: column-reverse; }
    .news-img { width: 100%; height: 200px; }
}
@media (max-width: 480px) {
    .sub-hero-grid, .carousel-row { grid-template-columns: 1fr; }
}