/*
Theme Name: Budoor Zahera
Theme URI: https://budoorzahera.cloud
Description: Islamic content theme with multilingual support
Version: 1.0
Author: Custom Development
*/

/* === Global Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #006847;
    --secondary-color: #FFD700;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', 'Amiri', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
}

body.rtl,
body[dir="rtl"] {
    font-family: 'Amiri', 'Roboto', sans-serif;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* === Header === */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.logo .tagline {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu li a {
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    display: block;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-menu li a:hover::after,
.nav-menu li.current-menu-item a::after {
    width: 100%;
}

.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.language-switcher .lang-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    background: var(--white);
    white-space: nowrap;
}

.language-switcher .lang-item:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.language-switcher .lang-item.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0,104,71,0.3);
}

.lang-fallback {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.search-box {
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border-radius: 25px;
    overflow: hidden;
}

.search-field {
    border: none;
    padding: 10px 20px;
    background: transparent;
    width: 200px;
    outline: none;
    font-size: 14px;
}

.search-submit {
    border: none;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover {
    background: var(--secondary-color);
    color: var(--text-color);
}

.search-submit i {
    font-size: 16px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* === Main Content === */
main {
    padding: 60px 0;
    min-height: calc(100vh - 400px);
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-description {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* === Video Grid === */
.youtube-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
    margin-bottom: 50px;
}

.video-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.video-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.video-item h3 {
    padding: 20px;
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-color);
    min-height: 80px;
}

.video-meta {
    padding: 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-date {
    font-size: 13px;
    color: #999;
}

/* === Blog/Articles === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.article-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.article-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.article-content {
    padding: 25px;
}

.article-title {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.article-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
}

.read-more:hover {
    background: var(--secondary-color);
    color: var(--text-color);
}

/* === Quotes Section === */
.quotes-section {
    background: var(--white);
    padding: 60px 30px;
    margin: 50px 0;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.quote-item {
    max-width: 800px;
    margin: 0 auto;
}

.quote-text {
    font-size: 24px;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.8;
}

.quote-author {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
}

/* === Footer === */
.site-footer {
    background: linear-gradient(135deg, var(--primary-color), #004d35);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-section p {
    margin-bottom: 12px;
    line-height: 1.7;
}

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

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: var(--white);
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 20px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--text-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* === Responsive Design === */
@media (max-width: 992px) {
    .main-navigation {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 80px);
        background: var(--white);
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        transition: var(--transition);
        overflow-y: auto;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .youtube-videos-grid,
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 24px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .search-field {
        width: 180px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* === Islamic Design Elements === */
.islamic-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23006847' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.decorative-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    margin: 20px auto;
}
