/* ==============================
   صفحه دسته‌بندی - رنگ‌های فیروزه‌ای و سفید
   ============================== */

   :root {
    --primary-turquoise: #00dfdf;
    --light-turquoise: #28bdb5;
    --dark-turquoise: #28bdb5;

  
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --shadow-sm: 0 2px 8px rgba(23, 162, 184, 0.1);
    --shadow-md: 0 4px 16px rgba(23, 162, 184, 0.15);
    --shadow-lg: 0 8px 24px rgba(23, 162, 184, 0.2);
}


@font-face {
    font-family: "Peyda-main";
    src: url("../fonts/peydabold.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  
  
  @font-face {
    font-family: "vazir-main";
    src: url("../fonts/vazir.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
  }

  @font-face {
    font-family: "lalezar-main";
    src: url("../fonts/lalezar.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  
 
  
* {
    font-family:"Peyda-main" ;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, var(--off-white) 0%, #e0f7fa 100%);
    color: var(--text-dark);
    line-height: 1.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==============================
   Header
   ============================== */

.categories-header {
    background: linear-gradient(135deg, var(--primary-turquoise) 0%, var(--dark-turquoise) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    height: fit-content;
    margin-bottom: 50px;

}

.islamic-pattern-overlay-cat{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../img/pattern.png);
    background-repeat: repeat;
    background-size: 200px 200px;
   
    pointer-events: none;
}

.navbar {
    position: relative;
    z-index: 10;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.btn-back {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
}

.header-content {
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 300;
}

/* ==============================
   دسته‌بندی اصلی
   ============================== */
/* ادامه فایل CSS از قسمت Breadcrumb */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-turquoise);
}

.breadcrumb .separator {
    color: var(--medium-gray);
}

.breadcrumb .current {
    color: var(--text-dark);
    font-weight: 600;
}
/* ادامه فایل CSS از قسمت  */
.categories-main {
    margin-top: -30px;
    position: relative;
    z-index: 5;
}

.main-categories {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
}

.categories-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.category-box {
    background: var(--white);
    border: 3px solid var(--light-gray);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--category-color, var(--primary-turquoise))20, var(--category-color, var(--primary-turquoise)));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.category-box:hover::before,
.category-box.active::before {
    opacity: 0.08;
}

.category-box:hover,
.category-box.active {
    border-color: var(--category-color, var(--primary-turquoise));
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.category-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.category-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.category-box.active {
    background: linear-gradient(135deg, var(--category-color, var(--primary-turquoise))10, var(--white));
}

/* ==============================
   زیردسته‌ها
   ============================== */

.sub-categories {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 3px;
    background: var(--primary-turquoise);
    border-radius: 3px;
}

.subcategories-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.subcategory-chip {
    background: var(--light-gray);
    color: var(--text-dark);
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.subcategory-chip:hover {
    background: var(--light-turquoise);
    color: var(--white);
    transform: translateY(-2px);
}

.subcategory-chip.active {
    background: var(--primary-turquoise);
    color: var(--white);
    border-color: var(--dark-turquoise);
}

/* ==============================
   بخش پروژه‌ها
   ============================== */

.projects-section {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.projects-count {
    background: var(--light-turquoise);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* ==============================
   کارت پروژه
   ============================== */

.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 2px solid var(--light-gray);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-turquoise);
}

.project-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-turquoise) 0%, var(--dark-turquoise) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-featured,
.badge-location {
    position: absolute;
    top: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.badge-featured {
    right: 12px;
    background: rgba(255, 193, 7, 0.9);
    color: var(--text-dark);
}

.badge-location {
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
}

.project-content {
    padding: 24px;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* پروگرس بار */
.progress-container {
    margin-bottom: 20px;
}
/* ادامه فایل CSS */

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-turquoise) 0%, var(--light-turquoise) 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.raised {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-turquoise);
}

.percentage {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--light-gray);
    padding: 4px 12px;
    border-radius: 12px;
}

.goal-amount {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* اطلاعات داوطلبی */
.volunteer-info {
    background: var(--off-white);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.info-item .icon {
    font-size: 1.2rem;
}

.info-item:not(:last-child) {
    border-bottom: 1px solid var(--light-gray);
}

/* Footer پروژه */
.project-footer {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-contribute,
.btn-volunteer,
.btn-details {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-contribute,
.btn-volunteer {
    background: linear-gradient(135deg, var(--primary-turquoise) 0%, var(--dark-turquoise) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.btn-contribute:hover,
.btn-volunteer:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(23, 162, 184, 0.4);
}

.btn-details {
    background: var(--white);
    color: var(--primary-turquoise);
    border: 2px solid var(--primary-turquoise);
}

.btn-details:hover {
    background: var(--primary-turquoise);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==============================
   حالت خالی
   ============================== */

.no-projects {
    text-align: center;
    padding: 80px 20px;
    background: var(--off-white);
    border-radius: 16px;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-projects h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.no-projects p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-turquoise);
    color: var(--white);
    padding: 12px 32px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--dark-turquoise);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==============================
   Footer
   ============================== */


/* ==============================
   Responsive Design
   ============================== */

@media (max-width: 768px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 0.95rem;
    }
    
    .categories-wrapper {
        grid-template-columns: 1fr;
    }
    
    .category-box {
        padding: 25px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .subcategories-wrapper {
        justify-content: center;
    }
    
    .main-categories,
    .sub-categories,
    .projects-section {
        padding: 25px;
    }
    
    .nav-content {
        gap: 15px;
    }
    
    .btn-back {
        width: 100%;
        text-align: center;
    }
    
    .project-footer {
        flex-direction: column;
    }
    
    .btn-contribute,
    .btn-volunteer,
    .btn-details {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
    
    .category-box h3 {
        font-size: 1.1rem;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .main-categories,
    .sub-categories,
    .projects-section {
        padding: 20px;
    }
}

/* ==============================
   انیمیشن‌ها
   ============================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeIn 0.5s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

/* ==============================
   حالت دارک مود (اختیاری)
   ============================== */

@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --off-white: #2d2d2d;
        --light-gray: #3a3a3a;
        --text-dark: #f8f9fa;
        --text-muted: #b8bfc6;
    }
    
    body {
        background: linear-gradient(135deg, #1a1a1a 0%, #0d4d56 100%);
    }
    
    .project-card {
        border-color: #3a3a3a;
    }
    
    .category-box {
        border-color: #3a3a3a;
    }
}

/* ==============================
   Accessibility
   ============================== */

.btn-contribute:focus,
.btn-volunteer:focus,
.btn-details:focus,
.btn-primary:focus,
.category-box:focus,
.subcategory-chip:focus {
    outline: 3px solid var(--primary-turquoise);
    outline-offset: 2px;
}

/* ==============================
   Print Styles
   ============================== */

@media print {
    .navbar,
    .btn-back,
    .main-footer {
        display: none;
    }
    
    .categories-header {
        background: none;
        color: black;
    }
    
    .project-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ==============================
   Loading State
   ============================== */

.loading-skeleton {
    background: linear-gradient(90deg, var(--light-gray) 25%, var(--off-white) 50%, var(--light-gray) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==============================
   Scroll to Top Button (اختیاری)
   ============================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--primary-turquoise);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--dark-turquoise);
    transform: translateY(-5px);
}
