/*
Theme Name: Jadwal Sholat Theme
Description: WordPress theme for Cities with Province
Version: 1.0
Author: Xaibi
Author URI: https://jadwalsholat.info
*/

:root {
    --primary-color: #222831;
    --secondary-color: #393E46;
    --tertiary-color: #EEEEEE;
    --green-color: #136138e6;
    --light-color: #A2AF9B;
    --white: #ffffff;
    --dark: #333333;
}

/* fonts.css */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/PlusJakartaSans-VariableFont_wght.woff') format('woff2-variations');
  font-weight: 200 800; /* ye range support karta hai */
  font-style: normal;
  font-display: swap;
}

/* Agar Italic bhi chahiye */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/PlusJakartaSans-Italic-VariableFont_wght.woff') format('woff2-variations');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Amiri Quran';
  src: url('https://jadwalsholathariini.id/wp-content/themes/jadwalsholat/fonts/AmiriQuran-Regular.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Amiri';
  src: url('fonts/Amiri-Regular.woff') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

.amiri {
    font-family: 'Amiri Quran', serif;
}
.arabic {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #06630a;
    font-family: 'Amiri', serif;
    direction: rtl;
    text-shadow: 0px 1px 0px #ffffff;
}

/* Global Styles */
body {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
}

/* Text */
.text-primary {
    color: var(--primary-color) !important;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 2px 10px rgba(62, 95, 68, 0.1);
}

/* Navigation Links */
.navbar-brand {color: var(--white);font-weight: bold;font-size: 1.5rem;padding: 0px;}
.navbar-nav .nav-item {margin: 0 0.5rem;}
.navbar-nav .nav-link {color: var(--white);padding: 5px 15px !important;border-radius: 5px;transition: all 0.3s ease;position: relative;overflow: hidden;font-weight: 600;}

/* Hover Effect */
.navbar-nav .nav-link::before {content: '';position: absolute;top: 0;left: -100%;width: 100%;height: 100%;background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);transition: left 0.5s;}
.navbar-nav .nav-link:hover::before {left: 100%;}
.navbar-nav .nav-link:hover {background-color: rgba(255, 255, 255, 0.1);box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);color: #fcc43f;}


/* Hero Section */
.hero-section {
    background: var(--green-color);
    color: var(--white);
    padding: 40px 0;
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Cards */
.city-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(62, 95, 68, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    margin-bottom: 2rem;
}

.city-card:hover {
    box-shadow: 0 8px 25px rgba(62, 95, 68, 0.15);
}

.city-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1.5rem;
}

.city-card-body {
    padding: 1.5rem;
}

.city-title {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.province-badge {
    background-color: var(--tertiary-color);
    color: var(--primary-color);
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Province Filter */
.province-filter {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.filter-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.province-link {
    background-color: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 25px;
    display: inline-block;
    margin: 0.3rem;
    border: 2px solid var(--tertiary-color);
    transition: all 0.3s ease;
    font-weight: 500;
}

.province-link:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
}

/* Single City Page */
.city-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.city-meta {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.meta-item {
    margin-bottom: 1rem;
}

.meta-label {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.meta-value {
    color: var(--dark);
    font-size: 1.1rem;
}

/* Search */
.search-form {
    background-color: var(--white);
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(62, 95, 68, 0.1);
    overflow: hidden;
}

.search-input {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}

.search-input:focus {
    outline: none;
    box-shadow: none;
}

/* ============================================
   STYLE 1: Professional Default Table
   ============================================ */

.content table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

.content table thead {
    background: var(--primary-color);
    color: var(--white);
}

.content table thead th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content table tbody tr {
    border-bottom: 1px solid var(--tertiary-color);
    transition: background 0.3s ease;
}

.content table tbody tr:hover {
    background: var(--light-color);
    transition: all 0.3s ease;
    color: var(--white) !important;
    cursor: context-menu;
}

.content table tbody td {
    padding: 12px 15px;
    color: var(--dark);
    font-size: 15px;
}

.content table tbody tr:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .content table {
        font-size: 12px;
    }
    
    .content table thead th {
        padding: 10px;
        font-size: 12px;
    }
    
    .content table tbody td {
        padding: 10px;
        font-size: 12px;
    }
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 3rem 0 2rem;
    margin-top: 2rem;
}

.footer-links a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .city-card {
        margin-bottom: 1.5rem;
    }
    
    .province-filter {
        padding: 1.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--light-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--tertiary-color);
}

.pagination .page-link:hover {
    color: var(--white);
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}