* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

        :root {
            --primary: #3a4f66;
            --secondary: #ff6b6b;
            --accent: #4ecdc4;
            --light: #f8f9fa;
            --dark: #2b2d42;
            --success: #28a745;
            --gradient: linear-gradient(135deg, #3a4f66 0%, #2b2d42 100%);
            --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
        }

        body {
            font-family: 'Poppins', sans-serif;
            color: #495057;
            background: url("b2.jpg")no-repeat center center;
            background-size: cover;
            line-height: 1.6;
        }

        h1, h2, h3, h4, h5 {
            font-family: 'Playfair Display', serif;
            color: var(--dark);
            font-weight: 700;
        }

        /* Header Styles */
        header {
            background: url("") no-repeat center center;
            background-size: cover;
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 1000;
            padding: 1rem 0;
            backdrop-filter: blur(10px);
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .logo {
            display: flex;
            align-items: center;
            font-size: 1.8rem;
            font-weight: 700;
            color: rgb(218, 55, 55);
            text-decoration: none;
        }

        .logo i {
            margin-right: 10px;
            color: rgb(219, 69, 69);
            font-size: 2rem;
        }

        .nav-links {
            display: flex;
            list-style: none;
        }

        .nav-links li {
            margin-left: 2rem;
            position: relative;
        }

        .nav-links a {
            color: var(--dark);
            text-decoration: none;
            font-weight: 500;
            transition: rgb(219, 69, 69);
            padding: 0.5rem 0.8rem;
            border-radius: 4px;
        }

        .nav-links a:hover {
            color: rgb(219, 69, 69);
        }

        .nav-links a:hover::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 100%;
            height: 3px;
            background: rgb(219, 69, 69);
            border-radius: 3px;
        }

        .search-bar {
            display: flex;
            align-items: center;
            background: var(--light);
            border-radius: 50px;
            padding: 0.5rem 1rem;
            margin: 0 1.5rem;
            border: 1px solid rgb(219, 69, 69);
            transition: rgb(40, 1, 1);
        }

        .search-bar:focus-within {
            box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
            border-color: rgb(219, 69, 69);
        }

        .search-bar input {
            border: none;
            background: transparent;
            color: var(--dark);
            outline: none;
            width: 200px;
            padding: 0.2rem;
        }

        .search-bar input::placeholder {
            color: #6c757d;
        }

        .search-bar button {
            background: transparent;
            border: none;
            color: var(--primary);
            cursor: pointer;
            transition: var(--transition);
        }

        .search-bar button:hover {
            color: rgb(219, 69, 69);
        }

        .user-actions a {
            color: black;
            text-decoration: none;
            margin-left: 1.5rem;
            font-size: 1.2rem;
            transition: var(--transition);
            position: relative;
        }

        .user-actions a:hover {
            color: rgb(219, 69, 69);
        }

        .user-actions .notification-count {
            position: absolute;
            top: -8px;
            right: -8px;
            background: var(--secondary);
            color: white;
            font-size: 0.7rem;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Hero Section */
        .hero {
            background: url("https://plus.unsplash.com/premium_photo-1725400826922-39ffcf68f736?q=80&w=1674&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D") no-repeat center center;
            background-size: cover;
            color: white;
            padding: 5rem 2rem;
            position: relative;
            overflow: hidden;
        }

        .hero-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            z-index: 2;
        }

        .hero-text {
            flex: 1;
            padding-right: 2rem;
        }

.hero-text h1 {
    font-size: 2.6rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8); 
}

.hero-text p {
    font-size: 1.0rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8); 
}


        .hero-buttons {
            display: flex;
            gap: 1rem;
        }

        .btn {
            padding: 1rem 2rem;
            border-radius: 50px;
            font-weight: 600;
            text-decoration: none;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .btn-primary {
            background: rgb(218, 57, 57);
            color: white;
            box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
        }

        .btn-primary:hover {
            background: #011a18;
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
        }

        .btn-secondary {
            background: transparent;
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.583);
        }

        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.271);
            border-color: rgba(255, 255, 255, 0.869);
            transform: translateY(-3px);
        }

        .btn i {
            margin-right: 8px;
        }

        .hero-image {
            flex: 1;
            display: flex;
            justify-content: flex-end;
        }

        .hero-image img {
            max-width: 100%;
            border-radius: 10px;
            box-shadow: var(--shadow);
            transform: perspective(800px) rotateY(-15deg);
            transition: var(--transition);
        }

        .hero-image img:hover {
            transform: perspective(800px) rotateY(-5deg);
        }

        /* Main Content */
        .container {
            display: flex;
            max-width: 1200px;
            margin: 3rem auto;
            padding: 0 2rem;
            gap: 2rem;
        }

        /* Sidebar */
        .sidebar {
            width: 280px;
            background: rgba(255, 255, 255, 0.133);
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: var(--shadow);
            height: fit-content;
        }

        .sidebar h3 {
            margin-bottom: 1.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid black;
            color: var(--primary);
            display: flex;
            align-items: center;
        }

        .sidebar h3 i {
            margin-right: 10px;
            color: black;
        }

        .categories {
            list-style: none;
        }

        .categories li {
            margin-bottom: 0.8rem;
            display: flex;
            align-items: center;
        }

        .categories a {
            color: black;
            text-decoration: none;
            transition: black;
            width: 100%;
            padding: 0.7rem;
            border-radius: 8px;
            display: flex;
            align-items: center;
            cursor: pointer;
        }

        .categories a:hover, .categories a.active {
            background: rgba(218, 57, 57, 0.112);
            color: black;
            padding-left: 1.2rem;
        }

        .categories i {
            margin-right: 12px;
            width: 20px;
            text-align: center;
            color: black;
        }

        .count {
            margin-left: auto;
            background: var(--light);
            color: var(--dark);
            font-size: 0.8rem;
            padding: 0.2rem 0.6rem;
            border-radius: 20px;
        }

        /* Main Content */
        .main-content {
            flex: 1;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
        }

        .page-title {
            color: black;
            position: relative;
            display: inline-block;
        }

        .page-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 50%;
            height: 4px;
            background: rgb(218, 57, 57);
            border-radius: 2px;
        }

        .view-all {
            color: rgb(218, 57, 57);
            text-decoration: none;
            font-weight: 500;
            display: flex;
            align-items: center;
        }

        .view-all i {
            margin-left: 5px;
            transition: var(--transition);
        }

        .view-all:hover i {
            transform: translateX(5px);
        }

        /* Book Cards */
.books-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 2rem;
}
        .book-card {
            background: rgba(255, 255, 255, 0.693);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .book-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .book-cover {
            height: 220px;
            overflow: hidden;
            position: relative;
        }

        .book-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .book-card:hover .book-cover img {
            transform: scale(1.1);
        }


        .book-details {
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .book-title {
            font-size: 1.3rem;
            margin-bottom: 0.5rem;
            color: var(--dark);
        }

        .book-author {
            color: #6c757d;
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }

        .book-description {
            color: #495057;
            font-size: 0.9rem;
            margin-bottom: 1.5rem;
            flex: 1;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .book-meta {
            display: flex;
            justify-content: space-between;
            margin-bottom: 1.5rem;
            font-size: 0.9rem;
        }

        .book-rating {
            color: #ffc107;
        }

        .book-pages {
            color: #6c757d;
        }

        .download-btn {
            background: rgb(210, 77, 77);
            color: white;
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            text-decoration: none;
            text-align: center;
        }

        .download-btn:hover {
            background: linear-gradient(135deg, #070300 0%, #050000 100%);
            box-shadow: 0 5px 15px rgba(218, 57, 57, 0.333);
        }

        .download-btn i {
            margin-right: 8px;
        }

        /* No Results Message */
        .no-results {
            grid-column: 1 / -1;
            text-align: center;
            padding: 3rem;
            background: white;
            border-radius: 12px;
            box-shadow: var(--shadow);
        }

        .no-results i {
            font-size: 3rem;
            color: #ddd;
            margin-bottom: 1rem;
        }

        .no-results p {
            color: #6c757d;
            font-size: 1.2rem;
        }


    /* Dictionary */
    /* Dictionary Wrapper - Centering */
.dictionary-wrapper {
  display: flex;
  justify-content: center;  
  align-items: center;
  min-height: 10vh;
  padding: 20px;
}

    .dic {
      background: rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-radius: 20px;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
      padding: 30px;
      max-width: 1136px;
      width: 100%;
      text-align: center;
      animation: fadeIn 0.6s ease-in-out;
      color: #fff;
    }

    .dic h1 {
      font-size: 2rem;
      margin-bottom: 20px;
    }

    .tagline {
        font-size: 1rem;
        font-style: italic;
        color: rgba(6, 0, 0, 0.85);
        margin-bottom: 20px;
        letter-spacing: 0.5px;
        animation: fadeIn 1s ease-in-out;
    }


    form {
      display: flex;
      flex-direction: row;
      gap: 10px;
      margin-bottom: 20px;
    }

    form input[type="text"] {
      flex: 1;
      padding: 12px 15px;
      border: 2px solid rgba(217, 68, 68, 0.778);
      border-radius: 12px;
      font-size: 16px;
      background: rgba(255, 255, 255, 0.2);
      color: #080000;
      transition: all 0.3s ease;
    }

    form input[type="text"]::placeholder {
      color: rgba(75, 6, 6, 0.7);
    }

    form input[type="text"]:focus {
      border-color: #fff;
      outline: none;
      box-shadow: 0 0 8px rgba(88, 4, 4, 0.582);
    }

    form button {
      padding: 12px 20px;
      border: none;
      border-radius: 12px;
      background: #fa2727d2;
      color: #fbfcfc;
      font-size: 16px;
      font-weight: bold;
      cursor: pointer;
      transition: 0.3s ease;
    }

    form button:hover {
      background: #090200;
      color: #fff;
      transform: scale(1.05);
    }

    .result {
      margin-top: 20px;
      text-align: left;
      background: rgba(255, 255, 255, 0.15);
      padding: 20px;
      border-radius: 15px;
      line-height: 1.6;
      color: #060000;
    }

    .result h2 {
      margin-bottom: 10px;
      color: #080000;
    }

    .btn-readmore {
      display: inline-block;
      margin-top: 15px;
      padding: 10px 18px;
      background: #f63535e1;
      color: #f8f9fb;
      border-radius: 12px;
      font-weight: bold;
      text-decoration: none;
      transition: 0.3s ease;
    }

    .btn-readmore:hover {
      background: #000307;
      color: #fff;
      transform: scale(1.05);
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Responsive */
    @media (max-width: 600px) {
      form {
        flex-direction: column;
      }

      form button {
        width: 100%;
      }
    }





        /* Footer */
        footer {
            background: url("b2.jpg") no-repeat center center;
            background-size: cover;
            color: rgb(6, 0, 0);
            padding: 4rem 2rem 2rem;
            margin-top: 4rem;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-section {
            margin-bottom: 2rem;
        }

        .footer-section h3 {
            color: rgb(3, 0, 0);
            margin-bottom: 1.5rem;
            position: relative;
            padding-bottom: 0.8rem;
            font-size: 1.5rem;
        }

        .footer-section h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background: rgb(218, 57, 57);
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.8rem;
        }

        .footer-links a {
            color: #000000;
            text-decoration: none;
            transition: var(--transition);
            display: inline-block;
        }

        .footer-links a:hover {
            color: rgb(218, 57, 57);
            transform: translateX(5px);
        }

        .footer-contact {
            list-style: none;
        }

        .footer-contact li {
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
        }

        .footer-contact i {
            margin-right: 10px;
            color: black;
            font-size: 1.2rem;
            width: 20px;
            }

        .social-icons {
            display: flex;
            margin-top: 1.5rem;
            gap: 1rem;
        }

        .social-icons a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(213, 71, 71, 0.781);
            color: white;
            transition: var(--transition);
        }

        .social-icons a:hover {
            background: rgb(218, 57, 57);
            transform: translateY(-5px);
        }

        .newsletter input {
            width: 100%;
            padding: 0.8rem 1rem;
            border: rgb(218, 57, 57);
            border-radius: 50px;
            margin-bottom: 1rem;
            background: rgba(165, 7, 7, 0.1);
            color: white;
        }

        .newsletter input::placeholder {
            color: #080000;
        }

        .newsletter button {
            background: rgb(220, 66, 66);
            color: white;
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: 50px;
            cursor: pointer;
            font-weight: 600;
            transition: var(--transition);
            width: 100%;
        }

        .newsletter button:hover {
            background: #000505;
        }

        .copyright {
            text-align: center;
            padding-top: 2rem;
            margin-top: 2rem;
            border-top: 1px solid rgba(14, 0, 0, 0.285);
            color: rgba(14, 0, 0, 0.487);
            max-width: 1200px;
            margin-left: auto;
            margin-right: auto;
        }

        /* Responsive Design */
       @media (max-width: 992px) {
    .books-container {
        grid-template-columns: repeat(2, 1fr); /* Tablet pe 2 cards */
    }
}

@media (max-width: 600px) {
    .books-container {
        grid-template-columns: 1fr; /* Mobile pe 1 card */
    }
}


        @media (max-width: 992px) {
            .container {
                flex-direction: column;
            }
            
            .sidebar {
                width: 100%;
                margin-bottom: 2rem;
            }
            
            .categories {
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
                gap: 0.5rem;
            }
            
            .categories li {
                margin-bottom: 0.5rem;
            }
            
            .nav-links {
                display: none;
            }
            
            .hero-content {
                flex-direction: column;
                text-align: center;
            }
            
            .hero-text {
                padding-right: 0;
                margin-bottom: 2rem;
            }
            
            .hero-buttons {
                justify-content: center;
            }
            
            .hero-image {
                justify-content: center;
            }
            
            .hero-image img {
                transform: none;
                max-width: 80%;
            }
            
            .hero-image img:hover {
                transform: scale(1.05);
            }
        }

        @media (max-width: 768px) {
            .navbar {
                flex-wrap: wrap;
            }
            
            .search-bar {
                order: 3;
                margin-top: 1rem;
                max-width: 100%;
                width: 100%;
                margin-left: 0;
                margin-right: 0;
            }
            
            .hero-text h1 {
                font-size: 2.5rem;
            }
            
            .books-container {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 576px) {
            .logo {
                font-size: 1.5rem;
            }
            
            .user-actions a {
                margin-left: 1rem;
                font-size: 1rem;
            }
            
            .hero {
                padding: 3rem 1rem;
            }
            
            .hero-text h1 {
                font-size: 2rem;
            }
            
            .hero-buttons {
                flex-direction: column;
            }
            
            .btn {
                width: 100%;
            }
        }

        /* Animation */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .book-card {
            animation: fadeIn 0.5s ease-out;
            animation-fill-mode: both;
        }

        .book-card:nth-child(1) { animation-delay: 0.1s; }
        .book-card:nth-child(2) { animation-delay: 0.2s; }
        .book-card:nth-child(3) { animation-delay: 0.3s; }
        .book-card:nth-child(4) { animation-delay: 0.4s; }
        .book-card:nth-child(5) { animation-delay: 0.5s; }
        .book-card:nth-child(6) { animation-delay: 0.6s; }

        .hero-text, .hero-image {
            animation: fadeIn 1s ease-out;
        }

