/*
Theme Name: Jolz Magazine
Theme URI: https://jolz.sa
Author: Jolz Team
Description: ثيم مجلة جولز الفاخر - مخصص للمجوهرات والذهب والساعات الفاخرة
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jolz
Domain Path: /languages
*/

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;900&display=swap');

:root {
    --primary-gold: #D4AF37;
    --secondary-gold: #C5A028;
    --dark-blue: #0f172a;
    --black: #000000;
    --white: #ffffff;
    --light-gray: #f4f4f4;
    --medium-gray: #e8e8e8;
    --dark-gray: #333333;
    --font-main: 'Tajawal', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--dark-gray);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-gold);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

/* ========== TOP BAR & NEWS TICKER ========== */
.top-bar {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 12px 0;
    font-size: 0.9rem;
    overflow: hidden;
}

.news-ticker-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ticker-title {
    background: var(--primary-gold);
    color: var(--black);
    padding: 5px 15px;
    font-weight: 900;
    white-space: nowrap;
    margin-left: 15px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.ticker-content {
    display: inline-block;
    animation: ticker-scroll 125s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    display: inline-block;
    margin: 0 30px;
    font-weight: 500;
}

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

/* ========== MAIN HEADER ========== */
.main-header {
    background: var(--black);
    padding: 25px 0;
    border-bottom: 4px solid var(--primary-gold);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.header-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary-gold);
    font-size: 2.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    font-weight: 900;
}

.logo a {
    color: var(--primary-gold);
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.main-nav a {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.header-search {
    color: var(--primary-gold);
    font-size: 1.2rem;
    cursor: pointer;
}
/* ====== إعادة تفعيل القائمة افتراضياً ====== */
.main-nav {
  display: block;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

/* ====== زر الهامبرغر ====== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--primary-gold);
  transition: .3s;
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ====== مظهر الموبايل ====== */
@media (max-width: 900px) {

  .header-wrapper {
    position: relative;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: var(--black);
    border-top: 3px solid var(--primary-gold);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }

  .main-nav.open {
    max-height: 400px;
  }

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

  .hamburger {
    display: flex;
  }
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-blue) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 700px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--primary-gold);
    border-radius: 5px;
}

.slide-content h2 {
    font-size: 2.8rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.slide-content p {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 25px;
}

.slide-btn {
    display: inline-block;
    background: var(--primary-gold);
    color: var(--black);
    padding: 12px 35px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.slide-btn:hover {
    background: var(--secondary-gold);
    transform: scale(1.05);
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--primary-gold);
    transform: scale(1.3);
}

/* ========== MAIN CONTAINER ========== */
.container {
    max-width: 100%;
    margin: 0;
    padding: 50px 20px;
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title h3 {
    display: inline-block;
    font-size: 2rem;
    border-bottom: 3px solid var(--primary-gold);
    padding-bottom: 15px;
    color: var(--dark-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== ARTICLES GRID ========== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
    width: 100%;
}

.article-card {
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.article-thumb {
    height: 220px;
    overflow: hidden;
    background-color: var(--medium-gray);
    position: relative;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-thumb img {
    transform: scale(1.05);
}

.article-content {
    padding: 20px;
}

.article-category {
    display: inline-block;
    background: var(--primary-gold);
    color: var(--black);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 10px;
}

.article-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-blue);
}

.article-title a {
    color: var(--dark-blue);
}

.article-title a:hover {
    color: var(--primary-gold);
}

.article-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.article-meta {
    font-size: 0.85rem;
    color: #999;
    border-top: 1px solid var(--medium-gray);
    padding-top: 10px;
}

/* ========== SIDEBAR ========== */
.sidebar-widget {
    background: var(--white);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--medium-gray);
    border-top: 4px solid var(--primary-gold);
    border-radius: 5px;
}

.widget-title {
    color: var(--dark-blue);
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 12px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.widget-content p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 3px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
}

.newsletter-form button {
    padding: 12px;
    background: var(--dark-blue);
    color: var(--primary-gold);
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--primary-gold);
    color: var(--black);
}

/* ========== INSTAGRAM SECTION ========== */
.instagram-section {
    background: var(--light-gray);
    padding: 50px 0;
    text-align: center;
    margin: 50px 0;
    border-top: 3px solid var(--primary-gold);
    border-bottom: 3px solid var(--primary-gold);
    width: 100%;
}

.instagram-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.instagram-section h3 {
    margin-bottom: 30px;
    font-size: 2rem;
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.insta-placeholder {
    background: #ddd;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* ========== FOOTER ========== */
footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 50px 20px 20px;
    margin-top: 50px;
    width: 100%;
}

footer .footer-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-widget h4 {
    color: var(--primary-gold);
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.footer-widget ul {
    list-style: none;
}

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

.footer-widget a {
    color: var(--white);
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: var(--primary-gold);
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gold);
    color: var(--black);
    border-radius: 50%;
    font-weight: 700;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-gold);
    transform: scale(1.1);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ========== CONTACT FORM STYLES ========== */
.contact-form-wrapper {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 5px;
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
}

.contact-form button {
    padding: 15px;
    background: var(--dark-blue);
    color: var(--primary-gold);
    border: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: var(--primary-gold);
    color: var(--dark-blue);
}

/* ========== LARGE SCREENS ========== */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
        margin: 0 auto;
    }

    .articles-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .insta-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-section {
        height: 700px;
    }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .header-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

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

    .main-nav a {
        font-size: 0.9rem;
    }

    .hero-section {
        height: 400px;
    }

    .slide-content {
        padding: 25px;
    }

    .slide-content h2 {
        font-size: 1.8rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .section-title h3 {
        font-size: 1.5rem;
    }

    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .logo h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

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

    .hero-section {
        height: 300px;
    }

    .slide-content h2 {
        font-size: 1.4rem;
    }

    .insta-grid {
        grid-template-columns: 1fr;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
/* ==== التعليقات === */
.comments-area {
    margin-top: 20px;
    border: 1px solid #ddd;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 30px;
}

.comment-form-author, .comment-form-email, .comment-form-comment {
    margin-bottom: 15px;
}

.comment-form-author input, .comment-form-email input, .comment-form-comment textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
}

.comment-form-comment textarea {
    min-height: 120px;
}

.comment-form-author input,
.comment-form-email input {
    margin-bottom: 15px;
}

button#submit {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

button#submit:hover {
    background-color: #45a049;
}

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

.comment-list .comment {
    background: #f0f0f0;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.comment-meta {
    font-size: 0.9rem;
    color: #777;
}

.comment-content {
    font-size: 1rem;
    color: #333;
}

/* ==== المتجاوب مع الشاشات الصغيرة === */
@media (max-width: 768px) {
    .comments-area {
        padding: 15px;
    }
    
    .comment-form-author input,
    .comment-form-email input,
    .comment-form-comment textarea {
        padding: 10px;
    }
    
    button#submit {
        width: 100%;
    }
}