/* assets/css/app.css - Enhanced Design */

/* ===== SF PRO FONT FACES ===== */
@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/SF-Pro-Display-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/SF-Pro-Display-RegularItalic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/SF-Pro-Display-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/SF-Pro-Display-MediumItalic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/SF-Pro-Display-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/SF-Pro-Display-SemiboldItalic.otf') format('opentype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/SF-Pro-Display-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/SF-Pro-Display-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/SF-Pro-Display-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/SF-Pro-Display-LightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Text';
    src: url('../fonts/SF-Pro-Text-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Text';
    src: url('../fonts/SF-Pro-Text-RegularItalic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Text';
    src: url('../fonts/SF-Pro-Text-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Text';
    src: url('../fonts/SF-Pro-Text-MediumItalic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Text';
    src: url('../fonts/SF-Pro-Text-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Text';
    src: url('../fonts/SF-Pro-Text-SemiboldItalic.otf') format('opentype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Text';
    src: url('../fonts/SF-Pro-Text-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Text';
    src: url('../fonts/SF-Pro-Text-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Additional weights for completeness */
@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/SF-Pro-Display-Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/SF-Pro-Display-Ultralight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/SF-Pro-Display-Heavy.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/SF-Pro-Display-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ===== DESIGN TOKENS ===== */
/* ===== DESIGN TOKENS ===== */
:root {
    /* Primary Colors */
    --primary: #C8D829;
    --primary-dark: #C8D829;
    --primary-dark-line:#acbb23 ;
    --primary-light: #D8E44F;
    --primary-lightest: #F0F7D4;

    /* Secondary & Accent Colors */
    --secondary: #2C5F5F;
    --accent-gold: #D4AF37;
    --accent-teal: #3A8E8E;

    /* Neutral Colors */
    --dark: #1A202C;
    --gray-900: #2D3748;
    --gray-700: #4A5568;
    --gray-500: #718096;
    --gray-300: #CBD5E0;
    --gray-200: #E2E8F0;
    --gray-100: #F7FAFC;
    --white: #FFFFFF;

    /* Background Colors */
    --bg-cream: #FDFBF7;
    --bg-light: #F8F9FA;

    /* Semantic Colors */
    --success: #48BB78;
    --warning: #ED8936;
    --error: #F56565;
    --info: #4299E1;

    /* Typography */
    --font-primary: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-text: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-arabic: 'Amiri', 'Traditional Arabic', 'Scheherazade', serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition: all 0.2s ease-in-out;
}
/* ===== BASE STYLES ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-text);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--bg-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

}


/* Use SF Pro Text for form elements */
.form-control, .form-select, .btn {
    font-family: var(--font-text);
}

/* Better text rendering */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    color: #344966 !important;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);

}

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: var(--spacing-md);
    color: var(--gray-700);
}

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

a:hover {
    color: var(--accent-teal);
    text-decoration: none;
}

/* ===== HEADER & NAVIGATION ===== */
.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 0px;
    border-bottom-color: #acbb23;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);

}

.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand img {
    margin-right: var(--spacing-sm);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md) !important;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.nav-link:hover {
    color: var(--white) !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: var(--white) !important;
    background-color: rgba(255, 255, 255, 0.15);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--primary-lightest);
    color: var(--primary-dark);
}

/* ===== BUTTONS ===== */
.btn {
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.8rem !important;
    border-color: #acbb23;
    border-style: solid;
    border-width: 1px;
}

.btn-primary {
    --bs-btn-color: #5d630f;
    --bs-btn-bg: #ccdc21;
    --bs-btn-border-color: #a0ac1f;
    --bs-btn-hover-color: #21220d;
    --bs-btn-hover-bg: #c9d829;
    --bs-btn-hover-border-color: #313416;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #606814;
    --bs-btn-active-border-color: #080805;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #0d6e64;
    --bs-btn-disabled-border-color: #0d6e64;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-secondary:hover {
    background-color: var(--accent-teal);
    color: var(--white);
}

.btn-outline-primary {
    color: var(--primary-dark-line);
    border: 1px solid var(--primary-dark-line);
    background: #FFFFFF;
}

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

.btn-outline-primary-simpan {
    color: #ee3368;
    border: 1px solid #ffc6d6;
    background: #ffefee;
}

.btn-outline-primary-jom {
    color: #6aa139;
    border: 1px solid #85bc5470;
    background: #8bc14b1c;
}

.btn-outline-primary-share {

    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.8rem !important;
    border-color: #2296f33d;
    border-style: solid;
    border-width: 1px;
    background-color: aliceblue;
    color: #2296f3;
}


.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

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

.card-header {
    background-color: #F0F4EF ;
    border-bottom: 1px solid var(--gray-200);
    padding: var(--spacing-md) var(--spacing-lg);
    font-weight: 600;
    color: var(--dark);
}

.card-body {
    padding: var(--spacing-lg);
}

.card-footer {
    background-color: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    padding: var(--spacing-md) var(--spacing-lg);
}

/* ===== ALERTS ===== */
.alert {
    border: none;
    border-radius: var(--radius-md);
    padding: var(--spacing-md) var(--spacing-lg);
    border-left: 4px solid;
}

.alert-success {
    background-color: rgba(72, 187, 120, 0.1);
    border-left-color: var(--success);
    color: #2F855A;
}

.alert-warning {
    background-color: rgba(237, 137, 54, 0.1);
    border-left-color: var(--warning);
    color: #C05621;
}

.alert-danger {
    background-color: rgba(245, 101, 101, 0.1);
    border-left-color: var(--error);
    color: #C53030;
}

.alert-info {
    background-color: rgba(66, 153, 225, 0.1);
    border-left-color: var(--info);
    color: #2C5282;
}

/* ===== FORMS ===== */
.form-control, .form-select {
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 0.625rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(200, 216, 41, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

/* ===== BADGES ===== */
.badge {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
}

/* ===== LIST GROUPS ===== */
.list-group-item {
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.list-group-item:hover {
    background-color: var(--gray-100);
}

.list-group-item.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
    font-weight: 600;
}

/* ===== PAGINATION ===== */
.pagination {
    gap: var(--spacing-xs);
}

.page-link {
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.875rem;
    transition: var(--transition);
}

.page-link:hover {
    background-color: var(--primary-lightest);
    border-color: var(--primary);
    color: var(--primary-dark);
}

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

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: transparent;
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-lg);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--gray-500);
    font-size: 1.25rem;
}

.breadcrumb-item a {
    color: var(--gray-700);
}

.breadcrumb-item.active {
    color: var(--primary-dark);
    font-weight: 500;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--dark) 0%, #2D3748 100%);
    color: var(--gray-300);
    margin-top: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
}

footer a {
    color: var(--primary-light);
}

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

/* ===== FORUM SPECIFIC ===== */
.forum-topic-item {
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: var(--white);
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--gray-200);
}

.forum-topic-item:hover {
    background-color: var(--gray-100);
    box-shadow: var(--shadow-md);
}

.forum-topic-item.pinned {
    border-left: 4px solid var(--accent-gold);
    background-color: rgba(212, 175, 55, 0.05);
}

.post-content {
    line-height: 1.2;
    word-wrap: break-word;
    color: var(--gray-700);
}

.reaction-buttons .btn {
    margin-right: var(--spacing-sm);
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.react-btn {
    transition: var(--transition);
}

.react-btn:active {
    transform: scale(0.95);
}


/* Reaction buttons styling */
.reaction-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.react-btn {
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.react-btn:hover {
    transform: translateY(-1px);
}

.react-btn.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.reaction-count {
    margin-left: 4px;
    font-size: 12px;
    font-weight: 500;
}
/* ===== UTILITIES ===== */
.text-primary {
    color: var(--primary) !important;
}

.text-muted {
    color: var(--gray-500) !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

/* ===== ANIMATIONS ===== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

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

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .card-body {
        padding: var(--spacing-md);
    }
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.btn:focus-visible {
    outline: 3px solid var(--primary-dark);
}

/* High contrast for better readability */
::selection {
    background-color: var(--primary);
    color: var(--dark);
}

/* ===== QURAN PAGE SPECIFIC ===== */
.quran-page {
    background: linear-gradient(to bottom, var(--primary-lightest) 0%, var(--bg-cream) 300px);
}

.quran-hero {
    padding: 3rem 0 2rem;
}

.quran-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
}

.arabic-text {
    font-family: var(--font-arabic);
    font-size: 3rem;
    color: #6f7348;
    font-weight: 700;
    display: block;
    line-height: 5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.quran-stats {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.quran {
    font-size: 1.3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quran-controls {
    border: none;
    box-shadow: var(--shadow-sm);
}

.surah-card {
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--white);
}

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

.surah-number-badge {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.surah-number-badge span {
    color: var(--dark);
    font-weight: 700;
    font-size: 1.25rem;
}

.surah-info {
    min-width: 0;
}

.surah-name {
    color: var(--dark);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.surah-arabic {
    font-family: var(--font-arabic);
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    direction: rtl;
}

.surah-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.surah-arrow {
    color: var(--gray-400);
    font-size: 1.25rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.surah-card:hover .surah-arrow {
    color: var(--primary);
    transform: translateX(5px);
}

.last-read-section .card {
    border: 2px solid var(--primary-light);
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar, footer, .btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}

.shw {
    color: white;
    text-shadow: -1px -1px 0 #0000001c, 1px -1px 0 #00000033, -1px 1px 0 #0000001c, 1px 1px 0 #00000024;
}

.hero-section {
    background-image: url('/assets/images/mymasjid-frontpage.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    position: relative;
}

/* Overlay to improve text readability */


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

.btn-custom {
    background-color: #fff;
    color: #0d6efd;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    color: #e7e8dc !important;
    background-color: #ab9366;
    border-color: #4d370f;
}



.btn:hover {
    color: #535612 !important;
    background-color: #ffffff !important;
    border-color: #c7d829;
    box-shadow: var(--shadow-sm);
}

/* Prayer Time Styles */
.prayer-time-card {
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.prayer-time-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.countdown-timer {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #dc3545;
}

.prayer-icon {
    transition: transform 0.3s ease;
}

.prayer-time-card:hover .prayer-icon {
    transform: scale(1.2);
}

/* Flip icons in RTL */
[dir="rtl"] .bi-chevron-right::before {
    content: "\f284"; /* chevron-left */
}
[dir="rtl"] .bi-chevron-left::before {
    content: "\f285"; /* chevron-right */
}

/* Adjust navbar for RTL */
[dir="rtl"] .navbar-nav .nav-link {
    text-align: right;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

/* Dropdown adjustments */
[dir="rtl"] .dropdown-menu {
    right: auto !important;
    left: 0 !important;
    text-align: right;
}