/* Custom Islamic-themed CSS */
:root {
    --islamic-green: #2d5530;
    --islamic-gold: #d4af37;
    --islamic-brown: #8b4513;
    --islamic-cream: #f8f5e8;
    --islamic-dark: #1a1a1a;
    --islamic-light-green: #4a7c59;
}

/* Base styles */
body {
    font-family: 'Amiri', serif;
    line-height: 1.6;
    color: var(--islamic-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Scheherazade New', serif;
    font-weight: 700;
}

/* Custom colors */
.bg-islamic-green {
    background-color: var(--islamic-green) !important;
}

.bg-islamic-gold {
    background-color: var(--islamic-gold) !important;
}

.bg-islamic-dark {
    background-color: var(--islamic-dark) !important;
}

.bg-islamic-cream {
    background-color: var(--islamic-cream) !important;
}

.text-islamic-green {
    color: var(--islamic-green) !important;
}

.text-islamic-gold {
    color: var(--islamic-gold) !important;
}

.text-islamic-dark {
    color: var(--islamic-dark) !important;
}

.btn-islamic-gold {
    background-color: var(--islamic-gold);
    border-color: var(--islamic-gold);
    color: white;
    font-weight: 600;
    border-radius: 25px;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.btn-islamic-gold:hover {
    background-color: #b8941f;
    border-color: #b8941f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-islamic-green {
    background-color: var(--islamic-green);
    border-color: var(--islamic-green);
    color: white;
    font-weight: 600;
    border-radius: 25px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.btn-islamic-green:hover {
    background-color: var(--islamic-light-green);
    border-color: var(--islamic-light-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 85, 48, 0.3);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.crescent-icon {
    font-size: 1.8rem;
    color: var(--islamic-gold);
}

.brand-text {
    color: white;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--islamic-gold) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--islamic-green) 0%, var(--islamic-light-green) 100%);
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="islamic-pattern" patternUnits="userSpaceOnUse" width="20" height="20"><path d="M10 0l10 10-10 10L0 10z" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23islamic-pattern)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}

.islamic-pattern-decoration {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.pattern-img {
    width: 80px;
    height: 80px;
    opacity: 0.8;
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
}

.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--islamic-gold);
    margin: 1rem auto;
    border-radius: 2px;
}

.section-divider.bg-white {
    background-color: white;
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid rgba(45, 85, 48, 0.1);
}

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

.feature-icon {
    font-size: 3rem;
    color: var(--islamic-green);
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: var(--islamic-dark);
    margin-bottom: 1rem;
}

/* Instructor Cards */
.instructor-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.instructor-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.instructor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--islamic-green), var(--islamic-light-green));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

.instructor-card h4 {
    color: var(--islamic-dark);
    margin-bottom: 0.5rem;
}

.instructor-body {
    text-align: left;
}

.instructor-body p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Book Cards */
.book-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    height: 100%;
}

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

.book-cover {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--islamic-brown), #a0522d);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
}

.book-info h5 {
    color: var(--islamic-dark);
    margin-bottom: 1rem;
}

.book-info p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Contact Section */
.contact-item {
    margin-bottom: 2rem;
}

.contact-item i {
    color: var(--islamic-gold);
    margin-bottom: 1rem;
}

.contact-item h5 {
    margin-bottom: 0.5rem;
}

.social-links a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--islamic-gold) !important;
}

/* Footer */
footer {
    background: var(--islamic-dark) !important;
}

footer h5 {
    color: var(--islamic-gold) !important;
    margin-bottom: 1rem;
}

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

footer .list-unstyled a:hover {
    color: var(--islamic-gold) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding: 60px 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .feature-card,
    .instructor-card,
    .book-card {
        margin-bottom: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .crescent-icon {
        font-size: 1.4rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Prayer times style elements */
.prayer-time-indicator {
    position: relative;
    display: inline-block;
}

.prayer-time-indicator::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

/* Islamic geometric patterns */
.geometric-border {
    border: 2px solid var(--islamic-gold);
    border-image: repeating-linear-gradient(
        45deg,
        var(--islamic-gold),
        var(--islamic-gold) 10px,
        transparent 10px,
        transparent 20px
    ) 2;
}

/* Hover effects for links */
a {
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--islamic-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--islamic-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--islamic-light-green);
}

/* Authentication Pages */
.auth-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 1px solid rgba(45, 85, 48, 0.1);
}

.auth-icon {
    margin-bottom: 1rem;
}

.auth-form .input-group-text {
    background: var(--islamic-cream);
    border-color: var(--islamic-green);
    color: var(--islamic-green);
}

.auth-form .form-control:focus {
    border-color: var(--islamic-green);
    box-shadow: 0 0 0 0.2rem rgba(45, 85, 48, 0.25);
}

/* Article Pages */
.article-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(45, 85, 48, 0.1);
    margin-bottom: 2rem;
}

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

.article-header h3 a {
    color: var(--islamic-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-header h3 a:hover {
    color: var(--islamic-green);
}

.article-meta {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(45, 85, 48, 0.1);
}

.article-excerpt {
    color: var(--islamic-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Article Detail */
.article-detail {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.article-title {
    color: var(--islamic-dark);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--islamic-dark);
}

.article-content h1, .article-content h2, .article-content h3 {
    color: var(--islamic-green);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-footer {
    border-top: 1px solid rgba(45, 85, 48, 0.1);
    padding-top: 1rem;
}

/* Panel Pages */
.panel-card {
    border: 1px solid rgba(45, 85, 48, 0.1);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.panel-header {
    background: var(--islamic-cream);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--islamic-green);
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    border: 1px solid rgba(45, 85, 48, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 3rem;
    color: var(--islamic-green);
    margin-bottom: 1rem;
}

.stat-content h3 {
    color: var(--islamic-dark);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-content p {
    color: var(--islamic-green);
    font-weight: 600;
    margin-bottom: 0;
}

.article-item {
    padding: 1rem 0;
}

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

/* Books and Documents */
.book-card-large {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    text-align: center;
    border: 1px solid rgba(45, 85, 48, 0.1);
}

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

.book-cover-large {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--islamic-brown), #a0522d);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: white;
}

.book-cover-xl {
    width: 200px;
    height: 250px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--islamic-brown), #a0522d);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 4rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.book-cover-small {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--islamic-brown), #a0522d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.book-description {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.book-actions {
    margin-top: 1rem;
}

.book-detail {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.book-title {
    color: var(--islamic-dark);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.book-author {
    color: var(--islamic-green);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.book-date {
    margin-bottom: 2rem;
}

.book-info .book-description {
    background: var(--islamic-cream);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.book-info .book-description h4 {
    color: var(--islamic-green);
    margin-bottom: 1rem;
}

.document-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(45, 85, 48, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

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

.document-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.document-info h5 {
    color: var(--islamic-dark);
    margin-bottom: 1rem;
}

.document-meta {
    margin-bottom: 1rem;
}

.document-actions {
    margin-top: 1rem;
}

.book-item {
    padding: 1rem 0;
}

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

/* Form Styles */
.article-form .form-label,
.book-form .form-label,
.document-form .form-label {
    font-weight: 600;
    color: var(--islamic-dark);
    margin-bottom: 0.5rem;
}

.article-form .form-control,
.book-form .form-control,
.document-form .form-control {
    border: 2px solid rgba(45, 85, 48, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    transition: border-color 0.3s ease;
}

.article-form .form-control:focus,
.book-form .form-control:focus,
.document-form .form-control:focus {
    border-color: var(--islamic-green);
    box-shadow: 0 0 0 0.2rem rgba(45, 85, 48, 0.25);
}

.article-form textarea,
.book-form textarea,
.document-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Pagination */
.pagination .page-link {
    color: var(--islamic-green);
    border-color: var(--islamic-green);
    margin: 0 2px;
    border-radius: 8px;
}

.pagination .page-link:hover {
    background-color: var(--islamic-green);
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: var(--islamic-green);
    border-color: var(--islamic-green);
    color: white;
}

/* Dropdown Menu */
.dropdown-menu {
    border: 1px solid rgba(45, 85, 48, 0.1);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: var(--islamic-dark);
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--islamic-cream);
    color: var(--islamic-green);
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .auth-card {
        padding: 1.5rem;
    }
    
    .article-card {
        padding: 1.5rem;
    }
    
    .article-detail {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .book-detail {
        padding: 1.5rem;
    }
    
    .book-title {
        font-size: 2rem;
    }
    
    .book-cover-xl {
        width: 150px;
        height: 180px;
        font-size: 3rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
}
