/* 
   BETIO V10 - CENTRAL UI KIT 
   Glassmorphism & Modern Soft Design
*/

:root {
    --primary-color: #5a3e2b;
    --primary-rgb: 90, 62, 43;
    --secondary-color: #8d6e63;
    --bg-gradient: linear-gradient(135deg, #fbe8c6, #f3caaa);
    --warm-bg: #fdfaf5;
    --warm-card: #f9f1e7;
    --warm-border: #e6dccf;
    --glass-border: rgba(90, 62, 43, 0.15);
    --glass-blur: blur(12px);
    --glass-shadow: 6px 6px 18px rgba(90, 62, 43, 0.08);
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--primary-color);
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
}

.main-content-wrapper { 
    position: relative; 
    max-width: 100%;
    overflow: hidden !important;
}

.container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: var(--glass-shadow);
    padding: 25px;
    margin: 15px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- BUTTONS --- */
.glass-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--primary-color);
    padding: 12px 24px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.05), -3px -3px 10px rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    color: var(--primary-color);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
}

.glass-btn.active {
    background: var(--primary-color);
    color: #fff !important;
}

/* --- HEADER & NAVIGATION (REFACTORED) --- */
.desktop-header-main {
    background: rgba(255, 248, 235, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    position: sticky;
    top: 0;
    z-index: 9999;
    height: 70px;
    display: flex;
    align-items: center;
    width: 100%;
}

.desktop-header {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    gap: 10px;
}

.logo-section .logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 2px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.nav-item-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
    gap: 2px; /* Spacing between text and icon */
}

.nav-item-short {
    text-decoration: none !important;
    color: #6d5959 !important;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 50px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    letter-spacing: 0.1px;
}

.nav-item-short:hover {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-color) !important;
}

.nav-item-short.active {
    background: var(--primary-color);
    color: #fff8eb !important;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

.dropdown-toggle-icon {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8d6e63;
    transition: all 0.3s ease;
    font-size: 0.65rem;
    margin-left: 0px; /* No overlap */
}

.hover-dropdown:hover .dropdown-toggle-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.dropdown-menu-dynamic {
    display: block;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100% !important;
    margin-top: 10px !important;
    background: #fffcf5 !important;
    border: 1px solid rgba(var(--primary-rgb), 0.1) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(90, 62, 43, 0.1) !important;
    transition: all 0.15s ease-out;
    transform: translateY(-5px);
    z-index: 9998;
    min-width: 240px;
    padding: 5px 0;
    list-style: none;
}

.hover-dropdown:hover .dropdown-menu-dynamic {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: rgba(var(--primary-rgb), 0.05); }

.header-actions {
    display: flex;
    align-items: center;
    min-width: fit-content;
}

.btn-auth-minimal {
    padding: 8px 16px;
    font-size: 0.8rem;
    white-space: nowrap;
    background: #e5e0d8;
    color: #5a3e2b;
    border: 1px solid rgba(90, 62, 43, 0.1);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-auth-minimal:hover {
    background: #d8d2c9;
    transform: translateY(-1px);
}

@media (max-width: 1400px) {
    .desktop-header { padding: 0 10px; }
    .nav-item-short { padding: 8px 8px; font-size: 0.75rem; }
    .logo-section .logo-text { font-size: 1.1rem; }
}

@media (max-width: 1199px) {
    .desktop-header-main { display: none !important; }
}

/* --- MODERN HERO AESTHETIC --- */
.hero-aesthetic-wrapper {
    padding: 60px 20px;
    background: radial-gradient(circle at 50% 50%, rgba(var(--primary-rgb), 0.03) 0%, transparent 70%);
    position: relative;
    z-index: 100;
}

.hero-aesthetic-box {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    padding: 60px 40px;
    box-shadow: 0 30px 60px rgba(90, 62, 43, 0.05), inset 0 0 20px rgba(255, 255, 255, 0.3);
    overflow: visible;
    position: relative;
    z-index: 10;
}

.hero-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(var(--primary-rgb), 0.05);
}

.pulse-icon {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(46, 204, 113, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 35px;
}

.search-curved-container {
    max-width: 650px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 9999;
}

.search-curved-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-curved-input {
    width: 100%;
    background: white !important;
    border: 2px solid transparent !important;
    padding: 18px 24px 18px 56px !important;
    border-radius: 100px !important;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(90, 62, 43, 0.08) !important;
    transition: all 0.3s ease;
}

.search-curved-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 15px 40px rgba(90, 62, 43, 0.12) !important;
    outline: none;
}

/* Hero'da buton varsa sağ padding artır */
.search-curved-group .search-curved-btn ~ .search-curved-input,
.search-curved-group:has(.search-curved-btn) .search-curved-input {
    padding-right: 70px !important;
}

.search-icon-main {
    position: absolute;
    left: 25px;
    font-size: 1.3rem;
    color: #bbb;
    z-index: 5;
}

.search-curved-btn {
    position: absolute;
    right: 10px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-curved-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

.search-results-curved {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px;
    z-index: 9999;
    display: none;
    max-height: 360px;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.search-results-curved.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: background 0.15s ease;
    gap: 8px;
}

.search-result-item:last-child { border-bottom: none; }

.search-result-item:hover {
    background: rgba(90,62,43,0.05);
    color: var(--primary-color);
}

.hero-stats-row {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.5);
    padding: 12px 30px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-stat-item {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-stat-item i {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.hero-stat-divider {
    width: 1px;
    height: 20px;
    background: rgba(var(--primary-rgb), 0.1);
}

/* --- STICKY BOTTOM AD REFACTOR --- */
.sticky-ad-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.sticky-ad-wrapper.collapsed {
    transform: translateY(calc(100% - 30px));
}

.sticky-ad-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    pointer-events: auto;
    position: relative;
    border: 1px solid rgba(var(--primary-rgb), 0.05);
}

.sticky-ad-toggle {
    position: absolute;
    top: 0;
    right: 20px;
    width: 40px;
    height: 30px;
    background: white;
    border: 1px solid rgba(var(--primary-rgb), 0.05);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(-100%);
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
    z-index: 10;
}

.sticky-ad-toggle i {
    transition: transform 0.3s;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.collapsed .sticky-ad-toggle i {
    transform: rotate(180deg);
}

.sticky-ad-content {
    padding: 10px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sticky-ad-label {
    font-size: 9px;
    font-weight: 800;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.sticky-ad-placeholder {
    width: 100%;
    min-height: 50px;
    display: flex;
    justify-content: center;
    background: #fafafa;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .hero-aesthetic-box { padding: 40px 20px; border-radius: 40px; }
    .hero-title { font-size: 2.2rem; }
    .search-curved-input { padding: 15px 60px 15px 50px !important; font-size: 1rem; }
    .search-icon-main { left: 20px; font-size: 1.1rem; }
    .search-curved-btn { width: 40px; height: 40px; font-size: 1rem; }
    .hero-stats-row { padding: 10px 20px; }
    .sticky-ad-container { max-width: 95%; margin: 0 auto; }
}

.category-grid-minimal { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; margin-top: 15px; }
.minimal-card {
    background: var(--warm-card);
    border: 1px solid var(--warm-border);
    border-radius: 16px;
    padding: 24px 16px;
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.grid-ad-card {
    background: rgba(var(--primary-rgb), 0.03) !important;
    border: 1px dashed rgba(var(--primary-rgb), 0.12) !important;
    padding: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    height: auto !important;
    min-height: 180px !important;
    border-radius: 20px !important;
}

.ad-label-minimal {
    font-size: 8px;
    font-weight: 800;
    color: #a08a7e;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: absolute;
    top: 10px;
    width: 100%;
    text-align: center;
}

.ad-content-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}
.minimal-card:hover { transform: translateY(-2px); border-color: var(--primary-color); box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.06); }
.minimal-card h3 { font-size: 0.7rem; font-weight: 700; color: var(--primary-color); margin: 0; line-height: 1.1; }

.guncel-badge {
    position: absolute; top: -12px; right: 12px;
    background: #2ecc71; color: white; padding: 6px 16px; border-radius: 10px;
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4); z-index: 10; border: 2px solid white;
}

/* --- MOBILE NAV --- */
.mobile-nav {
    position: fixed; bottom: 25px; left: 20px; right: 20px; height: 75px;
    background: rgba(255, 248, 235, 0.95); backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px); border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 35px; display: flex; justify-content: space-around; align-items: center;
    z-index: 10000; padding: 0 10px; box-shadow: 0 25px 50px rgba(90, 62, 43, 0.2);
}
.mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: #a08a7e; flex: 1; transition: all 0.4s; height: 100%; }
.mobile-nav a.active { color: var(--primary-color); }
.mobile-nav a.active i { transform: translateY(-8px) scale(1.25); }
.mobile-nav i { font-size: 1.6rem !important; margin-bottom: 4px; }
.mobile-nav span { font-size: 0.6rem !important; font-weight: 800; text-transform: uppercase; }

.mobile-header-main {
    background: rgba(255, 248, 235, 0.98); backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1); position: sticky; top: 0; z-index: 9999; height: 65px; display: flex; align-items: center;
}
.mobile-header-main .container { height: 100%; display: flex; justify-content: center; align-items: center; }

/* --- VERIFY SLIDER (SLIDE TO VERIFY) --- */
.verify-slider-container {
    position: relative;
    width: 100%;
    height: 54px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    overflow: hidden;
    user-select: none;
    box-shadow: inset 2px 2px 10px rgba(0,0,0,0.02);
}

.verify-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 50px;
    transition: width 0.1s linear, background 0.3s;
    z-index: 1;
}

.verify-slider-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    z-index: 2;
    pointer-events: none;
    letter-spacing: 0.2px;
    opacity: 0.7;
}

.verify-slider-handle {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: var(--primary-color);
    transition: box-shadow 0.2s, transform 0.2s;
}

.verify-slider-handle:active {
    cursor: grabbing;
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.verify-slider-handle i {
    font-size: 1.2rem;
}

@keyframes slideShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.verify-slider-text::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: slideShimmer 2s infinite linear;
}

/* --- FOOTER (Extended) --- */
footer { background: #fff8eb; border-top: 1px solid rgba(90, 62, 43, 0.05); padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-section h5 { font-size: 0.95rem; font-weight: 700; margin-bottom: 25px; color: var(--primary-color) !important; text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { text-decoration: none; color: #8d6e63; font-size: 0.85rem; transition: 0.2s; }
.footer-links a:hover { color: var(--primary-color); padding-left: 5px; }

@media (max-width: 992px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

/* --- SEARCH --- */
.search-results-dropdown {
    position: absolute; top: 100%; left: 0; right: 0; background: #fffcf5 !important;
    border: 1px solid rgba(var(--primary-rgb), 0.2) !important; border-radius: 18px;
    box-shadow: 0 25px 60px rgba(90, 62, 43, 0.25); z-index: 10001; margin-top: 15px;
    max-height: 450px; overflow-y: auto; display: none; padding: 10px 0;
}
.search-results-dropdown.active { display: block; }
.search-result-item { display: flex; align-items: center; padding: 15px 25px; text-decoration: none !important; color: #5a3e2b !important; border-bottom: 1px solid rgba(0, 0, 0, 0.08); transition: 0.2s; gap: 10px; }
.search-result-item:hover { background: rgba(var(--primary-rgb), 0.05); }
.search-result-item span:first-of-type { flex: 1; font-size: 0.88rem; line-height: 1.4; }
.search-result-item .result-type { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; color: #8d6e63; background: rgba(var(--primary-rgb), 0.05); padding: 2px 8px; border-radius: 4px; margin-left: auto; white-space: nowrap; }
