/*
Theme Name: وعجلت إليك ربي لترضى - بوابة المواقع الإسلامية
Description: قالب WordPress إسلامي مخصص لبوابة المواقع الإسلامية "وعجلت إليك ربي لترضى"
Author: عين الكترونية التقنية
Version: 1.0
Text Domain: ainelctro
*/

/* General Styles */
:root {
    --primary-color: #2e7d32; /* Green */
    --secondary-color: #4caf50; /* Light Green */
    --accent-color: #ff9800; /* Orange */
    --text-color: #333;
    --light-text-color: #f4f4f4;
    --background-color: #f9f9f9;
    --dark-background-color: #2e7d32;
    --card-background-color: #fff;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hero-gradient: linear-gradient(135deg, rgba(46, 125, 50, 0.9), rgba(76, 175, 80, 0.8));
}

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

body {
    font-family: 'Tajawal', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    direction: rtl;
    text-align: right;
}

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

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

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

ul {
    list-style: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

.btn i {
    font-size: 14px;
}

/* Header Styles */
.header {
    background-color: var(--card-background-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--accent-color);
    color: var(--light-text-color);
    padding: 8px 0;
    font-size: 14px;
    text-align: center;
}

.top-bar p {
    margin: 0;
    animation: scroll-text 30s linear infinite;
}

@keyframes scroll-text {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.main-header {
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav ul li a {
    font-weight: 500;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.main-nav ul li a:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--background-color);
    border-radius: 25px;
    padding: 5px;
    border: 2px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary-color);
}

.search-box input {
    border: none;
    outline: none;
    padding: 10px 15px;
    background: transparent;
    font-size: 14px;
    width: 300px;
    direction: rtl;
}

.search-box button {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    background: var(--hero-gradient), url('assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light-text-color);
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-gradient);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.ayah-ref {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.description {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.95;
}

/* Sections Overview */
.sections-overview {
    padding: 80px 0;
    background-color: var(--card-background-color);
}

.sections-overview h2 {
    font-size: 42px;
    margin-bottom: 60px;
    text-align: center;
    color: var(--primary-color);
    font-weight: bold;
}

.section-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.section-cards .card {
    background-color: var(--background-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.section-cards .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.section-cards .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.section-cards .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.section-cards .card-content {
    padding: 30px;
}

.section-cards .card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: bold;
}

.section-cards .card p {
    margin-bottom: 25px;
    line-height: 1.8;
    color: #666;
}

/* Islamic Tools */
.islamic-tools {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.islamic-tools h2 {
    font-size: 42px;
    margin-bottom: 60px;
    text-align: center;
    color: var(--primary-color);
    font-weight: bold;
}

.tool-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.tool-cards .card {
    background-color: var(--card-background-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-cards .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.tool-cards .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tool-cards .card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.tool-cards .card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: bold;
}

.tool-cards .card p {
    margin-bottom: 25px;
    line-height: 1.8;
    color: #666;
}

/* Islamic Trends */
.islamic-trends {
    padding: 80px 0;
    background-color: var(--card-background-color);
}

.islamic-trends h2 {
    font-size: 42px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary-color);
    font-weight: bold;
}

.islamic-trends p {
    text-align: center;
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Famous Sites */
.famous-sites {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.famous-sites h2 {
    font-size: 42px;
    margin-bottom: 60px;
    text-align: center;
    color: var(--primary-color);
    font-weight: bold;
}

.site-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.site-cards .card {
    background-color: var(--card-background-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.site-cards .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.site-cards .card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.site-cards .card-content {
    padding: 25px;
}

.site-cards .card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: bold;
}

/* Newsletter */
.newsletter {
    padding: 80px 0;
    background: var(--hero-gradient);
    color: var(--light-text-color);
    text-align: center;
}

.newsletter h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: bold;
}

.newsletter p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter form {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    min-width: 250px;
    direction: rtl;
}

.newsletter button {
    background-color: var(--accent-color);
    color: var(--light-text-color);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter button:hover {
    background-color: #f57c00;
}

/* Footer */
.footer {
    background-color: var(--dark-background-color);
    color: var(--light-text-color);
    padding: 60px 0 20px 0;
}

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

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--light-text-color);
    font-weight: bold;
}

.footer-col p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--light-text-color);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-col ul li a i {
    margin-left: 10px;
    width: 20px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .search-box input {
        width: 250px;
    }

    .hero-content h2 {
        font-size: 36px;
    }

    .sections-overview h2,
    .islamic-tools h2,
    .famous-sites h2 {
        font-size: 32px;
    }

    .section-cards,
    .tool-cards {
        grid-template-columns: 1fr;
    }

    .site-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .newsletter form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter input {
        min-width: 100%;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 28px;
    }

    .sections-overview h2,
    .islamic-tools h2,
    .famous-sites h2 {
        font-size: 28px;
    }

    .section-cards .card-content,
    .tool-cards .card {
        padding: 25px 20px;
    }

    .site-cards {
        grid-template-columns: 1fr;
    }
}
