/*
Theme Name: IslamicTheme
Theme URI: https://example.com/islamic-theme
Author: IslamicTheme Dev
Author URI: https://example.com
Description: Tema WordPress Islami yang responsif, SEO-friendly, dan cepat. Cocok untuk masjid, pesantren, kajian Islam, dan blog Islami. Dilengkapi dengan dukungan shalat times, kutipan Al-Qur'an, dan desain modern bernuansa Islam.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: islamic-theme
Tags: islamic, religious, responsive, seo-friendly, fast, blog, one-column, two-columns, right-sidebar, custom-logo, custom-header, custom-menu, featured-images, theme-options, translation-ready, rtl-language-support, footer-widgets

IslamicTheme WordPress Theme, (C) 2024 IslamicTheme Dev
IslamicTheme is distributed under the terms of the GNU GPL v2 or later.
*/

/* Normalize & Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2d3748;
  background-color: #f8f9fa;
  overflow-x: hidden;
}

a {
  color: #1a6b3c;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #0f4d2a;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: #1a202c;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1.25rem;
}

ul, ol {
  margin: 0 0 1.25rem 1.5rem;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, #0d4a2b 0%, #1a6b3c 50%, #0d4a2b 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  position: relative;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo img {
  max-height: 50px;
  width: auto;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.site-title a {
  color: #ffffff;
  text-decoration: none;
}

.site-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}

.main-navigation ul li {
  position: relative;
}

.main-navigation ul li a {
  display: block;
  padding: 0.625rem 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Submenu */
.main-navigation ul li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 220px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 999;
}

.main-navigation ul li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-navigation ul li ul li {
  border-bottom: 1px solid #edf2f7;
}

.main-navigation ul li ul li:last-child {
  border-bottom: none;
}

.main-navigation ul li ul li a {
  color: #2d3748;
  padding: 0.75rem 1.25rem;
  white-space: nowrap;
}

.main-navigation ul li ul li a:hover {
  background: #f0fff4;
  color: #1a6b3c;
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #ffffff;
  border-radius: 3px;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0d4a2b 0%, #1a6b3c 100%);
  padding: 4rem 0;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('assets/images/pattern.png') repeat;
  opacity: 0.05;
}

.hero-section h1 {
  font-size: 2.75rem;
  color: #ffffff;
  margin-bottom: 1rem;
  position: relative;
}

.hero-section p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

/* Main Content Area */
.site-content {
  padding: 2.5rem 0;
}

.content-area {
  display: flex;
  gap: 2.5rem;
}

.has-sidebar .primary {
  flex: 1;
  min-width: 0;
}

.has-sidebar .secondary {
  width: 320px;
  flex-shrink: 0;
}

.no-sidebar .primary {
  max-width: 800px;
  margin: 0 auto;
}

/* Posts */
.post {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-bottom: 2rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.post:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
  position: relative;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post:hover .post-thumbnail img {
  transform: scale(1.03);
}

.post-body {
  padding: 1.75rem;
}

.post-meta {
  font-size: 0.875rem;
  color: #718096;
  margin-bottom: 0.75rem;
}

.post-meta span {
  margin-right: 1rem;
}

.post-meta a {
  color: #718096;
}

.post-meta a:hover {
  color: #1a6b3c;
}

.post-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.post-title a {
  color: #1a202c;
}

.post-title a:hover {
  color: #1a6b3c;
}

.post-excerpt {
  color: #4a5568;
  line-height: 1.7;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  background: #1a6b3c;
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.25s ease;
}

.read-more:hover {
  background: #0f4d2a;
  color: #ffffff;
}

/* Single Post */
.single-post .post-thumbnail img {
  height: 400px;
}

.single-post .post-body {
  padding: 2.5rem;
}

.post-content {
  line-height: 1.8;
  color: #2d3748;
}

.post-content h2,
.post-content h3 {
  margin-top: 2rem;
}

.post-tags {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.post-tags a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #f0fff4;
  color: #1a6b3c;
  border-radius: 4px;
  font-size: 0.8125rem;
  margin: 0.25rem;
}

.post-tags a:hover {
  background: #1a6b3c;
  color: #ffffff;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

/* Page */
.page .post-body {
  padding: 2.5rem;
}

/* Sidebar */
.sidebar-widget {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget .widget-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #1a6b3c;
  position: relative;
}

.sidebar-widget ul {
  list-style: none;
  margin: 0;
}

.sidebar-widget ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f7fafc;
}

.sidebar-widget ul li:last-child {
  border-bottom: none;
}

.sidebar-widget ul li a {
  color: #4a5568;
  font-size: 0.9375rem;
}

.sidebar-widget ul li a:hover {
  color: #1a6b3c;
  padding-left: 4px;
}

/* Prayer Times Widget */
.prayer-times-widget {
  background: linear-gradient(135deg, #0d4a2b, #1a6b3c);
  color: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.prayer-times-widget .widget-title {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.prayer-times-widget .prayer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prayer-times-widget .prayer-item:last-child {
  border-bottom: none;
}

.prayer-times-widget .prayer-name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.prayer-times-widget .prayer-time {
  font-size: 0.9375rem;
  opacity: 0.9;
  font-family: 'Courier New', monospace;
  font-weight: 600;
}

/* Quran Verse Widget */
.quran-verse-widget {
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  text-align: center;
}

.quran-verse-widget .arabic-text {
  font-size: 1.5rem;
  line-height: 2;
  margin-bottom: 0.75rem;
  direction: rtl;
  font-family: 'Traditional Arabic', 'Amiri', serif;
}

.quran-verse-widget .translation {
  font-size: 0.9375rem;
  color: #4a5568;
  font-style: italic;
}

/* Footer */
.site-footer {
  background: #0d4a2b;
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-widget {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.footer-widget .widget-title {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.2);
  font-size: 1.125rem;
}

.footer-widget ul li a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-widget ul li a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* Comments */
.comments-area {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 2rem;
  margin-top: 2rem;
}

.comments-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.comment-list {
  list-style: none;
  margin: 0;
}

.comment {
  padding: 1.25rem 0;
  border-bottom: 1px solid #edf2f7;
}

.comment:last-child {
  border-bottom: none;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.5rem;
}

.comment-author img {
  border-radius: 50%;
}

.comment-metadata {
  font-size: 0.8125rem;
  color: #718096;
}

.comment-content {
  color: #4a5568;
  margin-top: 0.5rem;
}

.reply a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a6b3c;
}

.comment-respond {
  margin-top: 2rem;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: #1a6b3c;
  box-shadow: 0 0 0 3px rgba(26, 107, 60, 0.1);
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.comment-form .submit {
  background: #1a6b3c;
  color: #ffffff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease;
  width: auto;
}

.comment-form .submit:hover {
  background: #0f4d2a;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 2rem 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9375rem;
  color: #4a5568;
  transition: all 0.2s ease;
}

.pagination a:hover {
  background: #1a6b3c;
  border-color: #1a6b3c;
  color: #ffffff;
}

.pagination .current {
  background: #1a6b3c;
  border-color: #1a6b3c;
  color: #ffffff;
}

/* Search Form */
.search-form {
  display: flex;
  gap: 8px;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
}

.search-form input[type="search"]:focus {
  outline: none;
  border-color: #1a6b3c;
}

.search-form button {
  padding: 0.75rem 1.5rem;
  background: #1a6b3c;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.25s ease;
}

.search-form button:hover {
  background: #0f4d2a;
}

/* 404 Page */
.error-404 {
  text-align: center;
  padding: 4rem 0;
}

.error-404 h1 {
  font-size: 6rem;
  color: #1a6b3c;
  margin-bottom: 0.5rem;
}

.error-404 p {
  font-size: 1.125rem;
  color: #718096;
  margin-bottom: 2rem;
}

/* Scroll to Top */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: #1a6b3c;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(26, 107, 60, 0.3);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: #0f4d2a;
  transform: translateY(-3px);
}

/* Bismillah */
.bismillah {
  text-align: center;
  font-size: 2rem;
  padding: 1rem 0;
  color: #1a6b3c;
  direction: rtl;
  font-family: 'Traditional Arabic', 'Amiri', serif;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.875rem;
  color: #718096;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.breadcrumbs a {
  color: #1a6b3c;
}

.breadcrumbs .separator {
  margin: 0 0.5rem;
  color: #cbd5e0;
}

/* Archive Header */
.archive-header {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.archive-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.archive-description {
  color: #718096;
  font-size: 0.9375rem;
}

/* Search Results */
.search-results-count {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.25rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  font-size: 1rem;
  color: #4a5568;
}

/* Screen Reader Text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Alignment */
.alignleft {
  float: left;
  margin: 0 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

.aligncenter {
  display: block;
  margin: 1.5rem auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: #718096;
  text-align: center;
  margin-top: 0.5rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
}

th, td {
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  text-align: left;
}

th {
  background: #f7fafc;
  font-weight: 700;
}

/* Blockquotes */
blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid #1a6b3c;
  background: #f0fff4;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #4a5568;
}

/* Responsive */
@media (max-width: 1024px) {
  .has-sidebar .secondary {
    width: 280px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

  .main-navigation.active {
    right: 0;
  }

  .main-navigation ul {
    flex-direction: column;
    width: 100%;
  }

  .main-navigation ul li a {
    color: #2d3748;
    padding: 0.75rem 1rem;
    border-radius: 8px;
  }

  .main-navigation ul li a:hover {
    background: #f0fff4;
    color: #1a6b3c;
  }

  .main-navigation ul li ul {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #f8f9fa;
    margin: 4px 0 4px 12px;
    border-radius: 6px;
  }

  .main-navigation ul li ul li a {
    font-size: 0.875rem;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .content-area {
    flex-direction: column;
  }

  .has-sidebar .secondary {
    width: 100%;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section {
    padding: 2.5rem 0;
  }

  .single-post .post-thumbnail img {
    height: 250px;
  }

  .footer-widgets {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .post-navigation {
    flex-direction: column;
    gap: 1rem;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .post-body {
    padding: 1.25rem;
  }

  .site-title {
    font-size: 1.25rem;
  }

  .hero-section h1 {
    font-size: 1.5rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .search-form {
    flex-direction: column;
  }

  .error-404 h1 {
    font-size: 4rem;
  }
}

/* Print */
@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .scroll-top,
  .post-navigation {
    display: none;
  }

  .post {
    box-shadow: none;
    border: 1px solid #e2e8f0;
  }
}
