:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #10b981;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --text: #334155;
    --text-light: #64748b;
    --danger: #ef4444;
    --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    --brand-gradient-hover: linear-gradient(135deg, #4338ca 0%, #2563eb 100%);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: #f1f5f9;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Abstract Shapes */
.bg-shape {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    border-radius: 50%;
    opacity: 0.5;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: #cbd5e1;
    top: -200px;
    left: -200px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: #e0e7ff;
    top: 300px;
    right: -100px;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: #dcfce7;
    bottom: -100px;
    left: 20%;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* -------------- HEADER (GLASSMORPHISM) -------------- */
header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--primary);
    background: #e0e7ff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.1);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    transition: 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    left: 0;
    bottom: -5px;
    transition: 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-btn,
.cart-btn {
    background: #fff;
    border: 1px solid #e2e8f0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text);
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.cart-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
}

.search-btn:hover,
.cart-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.login-btn {
    background: var(--brand-gradient);
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    border: none;
    cursor: pointer;
}

.login-btn:hover {
    background: var(--brand-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

/* -------------- HERO SECTION -------------- */
.hero {
    position: relative;
    padding: 30px 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    min-height: 40vh;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 60px;
    line-height: 1.1;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 25px;
    letter-spacing: -1.5px;
}

.hero-content h1 span {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: var(--brand-gradient);
    color: #fff;
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.5);
}

.btn-secondary {
    background: #fff;
    color: var(--dark);
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Kayan Kitaplar (Showcase) */
.hero-image {
    position: relative;
    perspective: 1000px;
}

.glass-card-showcase {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
    transform: rotateY(-10deg) rotateX(10deg);
    transition: 0.5s ease;
}

.glass-card-showcase:hover {
    transform: rotateY(0) rotateX(0);
}

.showcase-book {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.showcase-book:last-child {
    margin-bottom: 0;
}

.bk-cover {
    width: 60px;
    height: 85px;
    background: #e2e8f0;
    border-radius: 6px;
    flex-shrink: 0;
    object-fit: cover;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.1);
}

.bk-info h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    color: var(--dark);
}

.bk-info p {
    margin: 0;
    font-size: 13px;
    color: var(--text-light);
}

/* -------------- SECTION TITLES -------------- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    letter-spacing: -1px;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.view-all {
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.view-all:hover {
    color: var(--primary);
}

/* -------------- BOOK GRID -------------- */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.book-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    border: 1px solid #f1f5f9;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.book-cover-wrapper {
    position: relative;
    height: 260px;
    background: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 20px;
}

.book-cover {
    height: 100%;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
    transition: 0.5s ease;
}

.book-card:hover .book-cover {
    transform: scale(1.05);
}

.book-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.book-actions-overlay {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
    transition: 0.3s ease;
    z-index: 2;
}

.book-card:hover .book-actions-overlay {
    bottom: 0;
}

.action-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.action-icon:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.book-info {
    padding: 20px;
}

.book-author {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.book-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 15px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.book-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary);
}

.add-to-cart {
    background: #f1f5f9;
    color: var(--dark);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.add-to-cart:hover {
    background: var(--dark);
    color: #fff;
}

/* -------------- CATEGORIES QUICK NAV -------------- */
.categories-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 15px;
}

.categories-tabs::-webkit-scrollbar {
    height: 4px;
}

.categories-tabs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.cat-tab {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.cat-tab.active,
.cat-tab:hover {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.2);
}

/* -------------- FOOTER -------------- */
footer {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 50px 0 30px 0;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 25px;
}

.footer-col h3 a {
    display: inline-block;
    margin-bottom: 0;
}

.footer-col a {
    display: block;
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 15px;
    transition: 0.3s;
}

.footer-col a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-about p {
    color: var(--text-light);
    margin-top: 20px;
    margin-bottom: 25px;
    padding-right: 40px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--dark);
    margin: 0;
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px) !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
    color: var(--text-light);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 45px;
    }

    .nav-links {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}