/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.menu-toggle {
    font-size: 1.5rem;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.site-title {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    flex-grow: 1;
    margin: 0 1rem;
}

.date-display {
    text-align: right;
    font-size: 0.9rem;
}

.date-display div {
    margin-bottom: 0.2rem;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    z-index: 1001;
    transition: left 0.3s ease;
    padding-top: 3rem;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar.active {
    left: 0;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    padding: 0.3rem;
    border-radius: 50%;
}

.nav-menu {
    list-style: none;
    padding: 1rem;
}

.nav-menu li {
    margin-bottom: 0.5rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,0.1);
}

.nav-link i {
    margin-right: 0.8rem;
    width: 20px;
    text-align: center;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

/* Main Content */
.main-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Daily Hadith Section */
.daily-hadith {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 5px solid #27ae60;
}

.daily-hadith h2 {
    color: #27ae60;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hadith-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #2c3e50;
    font-style: italic;
    margin-bottom: 1rem;
}

.hadith-reference {
    color: #7f8c8d;
    font-size: 0.9rem;
    text-align: right;
}

/* Prayer Times Section */
.prayer-times {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 5px solid #3498db;
}

.prayer-times h2 {
    color: #3498db;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prayer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.prayer-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.prayer-name {
    display: block;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.prayer-time {
    font-size: 1.1rem;
    color: #3498db;
    font-weight: bold;
}

/* Featured Content Section */
.featured-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 5px solid #9b59b6;
}

.featured-content h2 {
    color: #9b59b6;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.content-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.content-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-item ul {
    list-style: none;
}

.content-item li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.content-item li:last-child {
    border-bottom: none;
}

.content-item a {
    color: #3498db;
    text-decoration: none;
}

.content-item a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .site-title {
        font-size: 1.4rem;
    }

    .date-display {
        font-size: 0.8rem;
    }

    .main-content {
        padding: 1rem;
    }

    .daily-hadith,
    .prayer-times,
    .featured-content {
        padding: 1.5rem;
    }

    .hadith-content {
        font-size: 1rem;
    }

    .prayer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .prayer-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        width: 280px;
    }
}

/* Animation for content loading */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.daily-hadith, .prayer-times, .featured-content {
    animation: fadeIn 0.6s ease-out;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}