/* ============================================
   Namaz Vaxtı - Premium CSS
   Glassmorphism + Neumorphism Hybrid Design
   ============================================ */

/* === VARIABLES === */
:root {
    /* Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #f59e0b;
    --accent: #06b6d4;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    /* Light theme */
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --bg-glass-dark: rgba(255, 255, 255, 0.5);
    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-sunset: linear-gradient(135deg, #ff6b6b 0%, #ffa07a 100%);
    --gradient-ocean: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-hero: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    
    /* Sizes */
    --header-height: 70px;
    --sidebar-width: 260px;
    --container-width: 1200px;
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --border-radius-lg: 24px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-glass: rgba(30, 41, 59, 0.85);
    --bg-glass-dark: rgba(30, 41, 59, 0.7);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Friday theme */
.friday-theme {
    --gradient-hero: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
}

/* === RESET === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: var(--transition);
    overflow-x: hidden;
}

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

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

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

/* === CONTAINER === */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary);
    color: white;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    background: var(--bg-glass-dark);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: rotate(30deg);
    background: var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* === COUNTDOWN BAR === */
.countdown-bar {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
}

.countdown-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.countdown-name {
    font-size: 1.1rem;
}

.countdown-remaining {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-family: monospace;
    font-size: 1.1rem;
}

.azan-settings-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}
.azan-settings-btn:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

/* === FLASH MESSAGE === */
.flash-message {
    padding: 12px 0;
    animation: slideDown 0.3s ease;
}

.flash-success {
    background: #d1fae5;
    color: #065f46;
}

.flash-danger {
    background: #fee2e2;
    color: #991b1b;
}

.flash-close {
    float: right;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0.6;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* === HERO === */
.hero {
    background: var(--gradient-hero);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 30px 30px;
}

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

.hero-compact {
    padding: 50px 0 30px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-date {
    font-size: 1.2rem;
    opacity: 0.85;
    margin-bottom: 24px;
}

/* City Selector */
.city-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.city-dropdown {
    padding: 12px 24px;
    border-radius: var(--border-radius);
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    min-width: 220px;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="white" viewBox="0 0 16 16"><path d="M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: calc(100% - 16px) center;
    padding-right: 40px;
}

.city-dropdown:focus {
    outline: none;
    border-color: white;
    background-color: rgba(255,255,255,0.25);
}

.city-dropdown option {
    color: #333;
    background: white;
}

.btn-fav {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-fav:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

/* === PRAYER SECTION === */
.prayer-section {
    padding: 40px 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 24px;
    text-align: center;
    color: var(--text-primary);
}

/* Next Prayer Widget */
.next-prayer-widget {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.next-prayer-card {
    background: var(--gradient-primary);
    color: white;
    padding: 24px 48px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
    animation: fadeInUp 0.5s ease;
}

.next-prayer-label {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 4px;
}

.next-prayer-name {
    font-size: 1.8rem;
    font-weight: 800;
}

.next-prayer-clock {
    font-size: 3rem;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    margin: 8px 0;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.next-prayer-time {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Prayer Cards */
.prayer-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.prayer-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease backwards;
}

.prayer-card:nth-child(1) { animation-delay: 0.05s; }
.prayer-card:nth-child(2) { animation-delay: 0.1s; }
.prayer-card:nth-child(3) { animation-delay: 0.15s; }
.prayer-card:nth-child(4) { animation-delay: 0.2s; }
.prayer-card:nth-child(5) { animation-delay: 0.25s; }
.prayer-card:nth-child(6) { animation-delay: 0.3s; }

.prayer-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow);
}

.prayer-card.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
    transform: translateY(-8px) scale(1.02);
}

.active-badge {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

.prayer-emoji {
    font-size: 2rem;
    margin-bottom: 8px;
}

.prayer-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    opacity: 0.85;
}

.prayer-time {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Courier New', monospace;
}

/* Pulse effect for active card */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: var(--border-radius);
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.monthly-link {
    text-align: center;
    margin-top: 24px;
}

/* === FRIDAY SECTION === */
.friday-section {
    padding: 30px 0;
}

.friday-card {
    background: linear-gradient(135deg, #134e5e, #71b280);
    color: white;
    padding: 32px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: 0 20px 60px rgba(19, 78, 94, 0.3);
}

.friday-card h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

/* === ALL CITIES GRID === */
.all-cities-section {
    padding: 40px 0;
}

.cities-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.city-quick-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.city-quick-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
    border-color: var(--primary);
    color: var(--primary);
}

.city-quick-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
}

.city-quick-times {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === MONTHLY TABLE === */
.monthly-section {
    padding: 40px 0;
}

.monthly-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.prayer-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    font-size: 0.95rem;
}

.prayer-table th {
    background: var(--gradient-primary);
    color: white;
    padding: 14px 16px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.prayer-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.prayer-table tbody tr:hover {
    background: var(--bg-glass);
}

.prayer-table .today-row {
    background: rgba(99, 102, 241, 0.1);
    font-weight: 700;
}

.prayer-table .today-row td:first-child {
    border-left: 4px solid var(--primary);
}

/* === POSTS === */
.posts-section,
.posts-page {
    padding: 40px 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.post-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow);
}

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-body {
    padding: 20px;
}

.post-category {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.post-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.post-body h3 a {
    color: var(--text-primary);
}

.post-body h3 a:hover {
    color: var(--primary);
}

.post-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.section-more {
    text-align: center;
    margin-top: 32px;
}

/* Categories bar */
.categories-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-glass);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.cat-tag {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.cat-tag:hover,
.cat-tag.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.page-link {
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.page-link:hover,
.page-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* App Install Badge */
.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white !important;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.app-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* === SINGLE POST === */
.single-post {
    padding: 40px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.post-header {
    margin-bottom: 24px;
}

.post-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 12px 0;
}

.post-featured-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 24px;
    max-height: 450px;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.post-content h2 {
    font-size: 1.6rem;
    margin: 28px 0 12px;
}

.post-content h3 {
    font-size: 1.3rem;
    margin: 24px 0 10px;
}

.post-content p {
    margin-bottom: 16px;
}

.post-content ul,
.post-content ol {
    margin: 12px 0 16px 24px;
}

.post-content li {
    margin-bottom: 6px;
}

.post-content img {
    border-radius: var(--border-radius-sm);
}

.post-video {
    position: relative;
    padding-bottom: 56.25%;
    margin: 24px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
}

.tag {
    padding: 4px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px;
    background: var(--bg-glass);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-top: 24px;
}

.share-btn {
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #0088cc; }

.related-posts {
    padding: 40px 0;
    background: var(--bg-glass);
}

/* === FAQ === */
.faq-section {
    padding: 40px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-item summary {
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::before {
    content: '+ ';
    color: var(--primary);
    font-weight: 800;
}

.faq-item[open] summary::before {
    content: '− ';
}

.faq-item p {
    padding: 0 20px 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

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

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

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

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

.btn-danger {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* === FOOTER === */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 48px 0 24px;
    margin-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 16px;
    font-weight: 700;
}

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

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

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.footer-social a {
    font-size: 1.3rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    color: var(--text-muted);
}

/* === ERROR PAGE === */
.error-page {
    text-align: center;
    padding: 80px 0;
}

.error-page h1 {
    font-size: 6rem;
    font-weight: 900;
    color: var(--primary);
}

/* === ADMIN STYLES === */
.admin-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--gradient-hero);
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-card h1 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.8rem;
}

.login-back {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Admin Layout */
.admin-body {
    background: var(--bg-primary);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-logo {
    font-size: 1.5rem;
    font-weight: 800;
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
}

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

.admin-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.admin-menu li a:hover,
.admin-menu li a.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-right: 3px solid var(--primary);
}

.admin-menu .spacer {
    flex: 1;
    min-height: 40vh;
}

.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
}

.admin-topbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-content {
    padding: 24px;
}

/* Admin Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Admin Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.admin-table th {
    background: var(--bg-primary);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.admin-table tbody tr:hover {
    background: var(--bg-glass);
}

.admin-table.compact td {
    padding: 6px 4px;
}

.time-input {
    width: 80px;
    padding: 4px 6px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.85rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Admin Forms */
.admin-form {
    max-width: 900px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-row {
    display: flex;
    gap: 16px;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400 !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.tags-check {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-fieldset {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    margin-bottom: 16px;
}

.admin-fieldset legend {
    font-weight: 700;
    padding: 0 8px;
}

.admin-form-inline {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-form-inline input,
.admin-form-inline select {
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.admin-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    max-width: 700px;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 16px;
    font-weight: 500;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); font-size: 0.8rem; }

.no-posts {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .prayer-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 8px 32px var(--shadow-color);
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .prayer-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cities-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .post-header h1 {
        font-size: 1.6rem;
    }
    
    .admin-sidebar {
        display: none;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .monthly-header {
        flex-direction: column;
        text-align: center;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .prayer-table {
        font-size: 0.8rem;
    }
    
    .prayer-table th,
    .prayer-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .prayer-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .prayer-card {
        padding: 16px 10px;
    }
    
    .prayer-time {
        font-size: 1.2rem;
    }
    
    .next-prayer-card {
        padding: 16px 24px;
    }
    
    .next-prayer-clock {
        font-size: 2rem;
    }
    
    .hero {
        padding: 50px 0 40px;
    }
    
    .city-dropdown {
        min-width: 180px;
        font-size: 1rem;
    }
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* === PRINT === */
@media print {
    .site-header,
    .countdown-bar,
    .site-footer,
    .theme-toggle,
    .mobile-menu-btn,
    .share-buttons {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* === CKEDITOR STYLES === */
.ck-editor__editable {
    min-height: 300px;
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

.ck.ck-editor__main > .ck-editor__editable:not(.ck-focused) {
    border-color: var(--border-color) !important;
}

.ck.ck-editor__main > .ck-editor__editable.ck-focused {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

/* Admin form image preview */
.admin-form img {
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

/* Admin form submit button area */
.admin-form .btn-primary {
    font-size: 1rem;
    padding: 12px 32px;
}

/* Sidebar active link fix */
.admin-menu li a.active,
.admin-menu li a[href*="action=<?= htmlspecialchars($_GET['action'] ?? 'dashboard') ?>"] {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-right: 3px solid var(--primary);
}

/* SEO auto-filled fields */
.seo-field {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(16, 185, 129, 0.05)) !important;
    border-left: 3px solid var(--primary) !important;
    font-style: italic;
}

.seo-field:focus {
    font-style: normal;
    background: var(--bg-secondary) !important;
}

.admin-fieldset small {
    font-size: 0.75rem;
}

/* === REKLAM STİLLƏRİ (Google Ads format) === */
.ad-container {
    margin: 12px auto;
    max-width: 728px;
}

.ad-position-header { text-align: center; margin-bottom: 16px; }
.ad-position-sidebar { max-width: 300px; }
.ad-position-content_top,
.ad-position-content_middle,
.ad-position-content_bottom { text-align: center; margin: 16px auto; }
.ad-position-footer { text-align: center; margin: 16px auto; }

.ad-item {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

/* Google/Ad format - kiçik, kompakt */
.ad-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    transition: var(--transition);
    max-height: 100px;
    overflow: hidden;
}

.ad-link:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

/* Şəkil - kiçik kvadrat */
.ad-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mətn hissəsi */
.ad-info {
    flex: 1;
    padding: 0;
    min-width: 0;
    text-align: left;
}

.ad-title {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 2px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.ad-badge {
    display: inline-block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 600;
}

/* Google/HTML reklam */
.ad-google, .ad-html {
    text-align: center;
    max-height: 120px;
    overflow: hidden;
}

/* === ZİYARƏTÇİ STATİSTİKASI === */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.stat-item.clickable {
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 10px;
    transition: var(--transition);
}

.stat-item.clickable:hover {
    background: rgba(99,102,241,0.1);
}

.stat-icon { font-size: 1rem; }
.stat-label { color: var(--text-muted); }
.stat-value { font-weight: 700; color: var(--primary); }

/* Popup */
.popup-overlay {
    position: fixed; top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.6); z-index: 9998;
    display: flex; align-items: center; justify-content: center;
}

.popup-content {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    width: 90%; max-width: 450px;
    max-height: 70vh;
    display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.popup-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.popup-header h3 { margin:0; font-size:1.1rem; }

.popup-close {
    background:none; border:none; font-size:1.5rem;
    cursor:pointer; color:var(--text-secondary);
}

.popup-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
}

.popup-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.popup-footer button {
    padding: 8px 24px;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

/* Online user item */
.online-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.user-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-flag {
    width: 24px;
    height: 18px;
    border-radius: 3px;
}

.user-browser {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 4px;
}

.user-details { flex:1; }

.visit-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.loading {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
}
