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

:root {
    /* --- PALETTE: Neo-SaaS Light --- */
    --base: #ffffff;
    --base-alt: #f8fafc;
    /* Slate 50 */
    --border: #e2e8f0;
    /* Slate 200 */
    --border-hover: #cbd5e1;

    --text-main: #0f172a;
    /* Slate 900 */
    --text-muted: #64748b;
    /* Slate 500 */

    --primary: #0f172a;
    /* Siyahımsı Lacivert */
    --accent: #2563eb;
    /* Parlak Mavi */
    --accent-glow: rgba(37, 99, 235, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* --- ANIMATIONS --- */
    --ease-squish: cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--base);
    color: var(--text-main);
    line-height: 1.5;
    font-size: 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- MARQUEE BANNER (Top) --- */
.anno-bar {
    background: var(--text-main);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 0;
    text-align: center;
    letter-spacing: 0.03em;
}

/* --- HEADER: Glass & Sticky --- */
.neo-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand-logo {
    font-weight: 900;
    font-size: 20px;
    letter-spacing: -0.5px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-logo {
    height: 130px;
    width: auto;
    max-width: 500px;
    display: block;
    object-fit: contain;
}

.brand-logo span {
    color: var(--text-muted);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-item {
    position: relative;
    white-space: nowrap;
}

.nav-link {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s;
    cursor: pointer;
    padding: 10px 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

/* --- DROPDOWN MENU --- */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s var(--ease-squish);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
}

.dropdown-link:hover {
    background: var(--base-alt);
    color: var(--text-main);
}

/* --- COMPONENTS: Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s var(--ease-squish);
    cursor: pointer;
}

.btn-dark {
    background: var(--text-main);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--base-alt);
    border-color: var(--border-hover);
}

/* --- HERO SECTION --- */
.neo-hero {
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.neo-hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 15% 50%, rgba(37, 99, 235, 0.04) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.04) 0%, transparent 25%);
    z-index: -1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 100px;
    background: #eff6ff;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid #dbeafe;
}

.hero-title {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 24px;
    background: linear-gradient(145deg, var(--text-main), #475569);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 19px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* --- LOGO SLIDER --- */
.logo-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
    overflow: hidden;
    background: var(--base-alt);
}

.logo-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: scroll 30s linear infinite;
    align-items: center;
}

.logo-item {
    font-weight: 700;
    font-size: 18px;
    color: #94a3b8;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- BENTO GRID --- */
.section-title {
    text-align: center;
    padding: 80px 0 40px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-bottom: 100px;
}

.bento-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s var(--ease-squish);
    position: relative;
    overflow: hidden;
    min-height: 260px;
}

/* Library Grid (Fiyat Listesi) */
.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    padding: 30px 0;
}

.library-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    transition: all 0.2s ease;
}

.library-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.lib-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.lib-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
}

.lib-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.lib-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.filter-btn.active {
    background: var(--text-main);
    color: #fff;
    border-color: var(--text-main);
}

.bento-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.bento-icon {
    width: 48px;
    height: 48px;
    background: var(--base-alt);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.bento-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.bento-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.bento-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 16px;
}

.bento-price span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.btn-block {
    width: 100%;
}

.tag-popular {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--text-main);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

/* --- DETAIL PAGE (New) --- */
.detail-hero {
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.detail-hero h1 {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.detail-hero p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.feature-list {
    display: grid;
    gap: 12px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 15px;
}

.feature-icon {
    color: var(--accent);
}

/* --- FOOTER --- */
.neo-footer {
    background: var(--base-alt);
    border-top: 1px solid var(--border);
    padding: 60px 0;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .main-logo {
        height: 70px;
    }
}

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

    .nav-wrapper {
        height: 60px;
    }

    .main-logo {
        height: 75px !important;
    }

    .nav-menu {
        display: none;
    }

    .hero-title {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .hero-sub {
        font-size: 16px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .nav-wrapper>div[style*="display:flex"] {
        gap: 8px !important;
    }

    .anno-bar {
        font-size: 10px;
        padding: 8px 12px;
    }

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

    .logo-item {
        font-size: 14px;
        gap: 4px;
    }

    .section-title h2 {
        font-size: 26px;
    }
}

@media (max-width: 400px) {
    .nav-wrapper {
        padding: 0 8px;
    }

    .main-logo {
        height: 65px !important;
    }

    /* Giriş/Kayıt butonlarını yan yana sığdırmak için yazı boyutunu küçült */
    .nav-wrapper>div[style*="display:flex"] .btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .nav-wrapper>div[style*="display:flex"] {
        gap: 5px !important;
    }
}

/* --- SHOPPING CART DRAWER --- */
.cart-drawer {
    position: fixed;
    top: 100px;
    right: -350px;
    width: 320px;
    max-height: calc(100vh - 140px);
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.active {
    right: 24px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.cart-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: #1a202c;
    margin: 0;
}

.cart-close {
    cursor: pointer;
    font-size: 24px;
    color: #a0aec0;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-right: -10px;
    padding-right: 10px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.cart-item-info h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1a202c;
}

.cart-item-info p {
    font-size: 13px;
    color: #718096;
    margin: 0;
}

.cart-item-remove {
    color: #e53e3e;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
    display: inline-block;
}

.cart-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 2px solid #f8f9fa;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1a202c;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    backdrop-filter: none;
    z-index: 1999;
    display: none;
    pointer-events: none;
    /* Allow interaction with underlying page */
}

.cart-overlay.active {
    display: block;
    opacity: 1;
}

.cart-badge {
    display: none !important;
}

/* --- HEADER CART ICON --- */
.header-cart {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: all 0.2s var(--ease-squish);
    border-radius: 10px;
    background: var(--base-alt);
    margin-right: 5px;
}

.header-cart:hover {
    background: var(--border);
    color: var(--accent);
}

.header-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    padding: 0 4px;
}

@media (max-width: 600px) {
    .header-cart {
        font-size: 18px;
        padding: 6px;
    }
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #3b82f6;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #fff;
}

@media (max-width: 480px) {
    .cart-overlay {
        z-index: 2100;
        /* Ensure overlay is above everything */
    }

    .cart-drawer {
        position: fixed;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 80vh;
        /* Don't cover full height */
        top: auto;
        bottom: -100%;
        /* Start hidden below screen */
        left: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
        /* Rounded top corners */
        transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 20px;
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.2);
        z-index: 2200;
        /* Ensure drawer is on top of overlay */
        background: #fff;
    }

    .cart-drawer.active {
        right: 0;
        /* Reset right property from desktop styles */
        bottom: 0;
        /* Slide up to bottom */
    }

    .cart-items {
        max-height: 50vh;
        /* Scrollable area for items */
    }
}

/* --- RELATED PRODUCTS GRID --- */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

.related-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
    height: 100%;
}

.related-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.related-icon {
    width: 48px;
    height: 48px;
    background: var(--base-alt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.related-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 8px;
}

.related-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.4;
    flex: 1;
}

.related-meta {
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.related-price {
    font-weight: 800;
    font-size: 16px;
    color: var(--text-main);
}

.related-btn {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    background: var(--text-main);
    color: #fff;
    border-radius: 6px;
    transition: 0.2s;
    text-decoration: none;
}

.related-btn:hover {
    background: var(--accent);
    color: #fff;
}