/* Common Styles for Faqeer Qadri Website */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #2c3e50;
}

/* Header Styles */
header {
    background: linear-gradient(to right, #3498db, #2c3e50);
    color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.navbar {
    padding: 0.5rem 0;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    margin: 0 0.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: #fff;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

nav {
    margin: 20px 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
}

nav a:hover {
    text-decoration: underline;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

/* Hero Section */
.hero-section {
    background-image: linear-gradient(rgba(46, 49, 65, 0.7), rgba(46, 49, 65, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.hero-section h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-title {
    color: #1a73e8;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Book Card Specific Styles */
.book-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.book-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.book-card .card-body {
    flex: 1;
}

.book-card .btn {
    margin-top: auto;
}

.book-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(26, 115, 232, 0.8);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

footer {
    background: linear-gradient(to right, #2c3e50, #1a1a2e);
    color: #ffffff;
    padding: 2rem 0 1rem;
    position: relative;
    width: 100%;
}

.footer-links h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: none;
}

.social-icons {
    font-size: 1.5rem;
}

.social-icons a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 2rem;
}

h1, h2, h3 {
    color: #35424a;
}

.book-list {
    list-style-type: none;
    padding: 0;
}

.book-list li {
    background: #ffffff;
    margin: 10px 0;
    padding: 15px;
    border: 1px solid #dddddd;
    border-radius: 5px;
}

.book-list a {
    color: #35424a;
    text-decoration: none;
}

.book-list a:hover {
    text-decoration: underline;
}

/* Form Styles */
form label {
    font-weight: 500;
}

.btn-primary {
    background-color: #1a73e8;
    border-color: #1a73e8;
}

.btn-primary:hover {
    background-color: #0d62c9;
    border-color: #0d62c9;
}

/* PDF Reader Styles */
#pdfContainer {
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    height: 800px;
}

#pdfViewer {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-controls {
    background-color: #34495e;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.pdf-controls button {
    margin-right: 10px;
    background-color: #3498db;
    border: none;
}

.pdf-controls button:hover {
    background-color: #2980b9;
}

.page-info {
    color: white;
    margin-left: 10px;
}

/* Book Search and Filter */
.book-search {
    margin-bottom: 2rem;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.category-btn {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #495057;
    transition: all 0.2s ease;
}

.category-btn:hover, .category-btn.active {
    background-color: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    header h1 {
        font-size: 1.5rem;
        margin-top: 15px;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    #pdfContainer {
        height: 500px;
    }
}

/* Form Styles */
.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.newsletter-form .input-group {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px 0 0 50px !important;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0 !important;
    padding: 0.8rem 1.5rem;
    background-color: #3498db;
    border-color: #3498db;
}