﻿
/* ===== هیرو صفحه ===== */
.page-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 150px 20px 0px;
    position: relative;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.page-hero h1 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-hero p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
}

    .breadcrumb a {
        color: var(--green-2);
        transition: color 0.3s;
    }

        .breadcrumb a:hover {
            color: var(--green-3);
        }

/* ===== فیلتر دسته‌بندی ===== */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

    .filter-btn:hover,
    .filter-btn.active {
        background: var(--gradient-main);
        color: white;
        border-color: transparent;
        box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    }

/* ===== گرید بزرگ‌تر ===== */
.portfolio-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ===== مودال جزئیات پروژه ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s;
}

    .modal.active {
        display: flex;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--dark-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
}

    .modal-close:hover {
        background: #ef4444;
        transform: rotate(90deg);
    }

.modal-image {
    height: 300px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px 24px 0 0;
    position: relative;
}

    .modal-image::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--gradient-main);
        opacity: 0.15;
        border-radius: 24px 24px 0 0;
    }

    .modal-image i {
        font-size: 120px;
        background: var(--gradient-main);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        position: relative;
        z-index: 2;
    }

.modal-body {
    padding: 40px;
}

.modal-category {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-main);
    color: white;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.modal-body h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 800;
}

.modal-body p {
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 25px;
    text-align: justify;
}

.modal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 25px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 25px;
}

.modal-stat {
    text-align: center;
}

.modal-stat-value {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.modal-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 36px;
    }

    .modal-body {
        padding: 25px;
    }

        .modal-body h2 {
            font-size: 24px;
        }

    .modal-image {
        height: 200px;
    }

        .modal-image i {
            font-size: 80px;
        }
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(16, 185, 129, 0.2);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner p {
    color: #6b7280;
    font-size: 14px;
}

/* End Message */
.end-message {
    text-align: center;
    padding: 40px 0;
    color: #6b7280;
    font-size: 16px;
}

/* No Projects Message */
.no-projects-message {
    text-align: center;
    padding: 80px 20px;
    color: #9ca3af;
}

    .no-projects-message i {
        font-size: 64px;
        margin-bottom: 20px;
        color: #d1d5db;
    }

    .no-projects-message p {
        font-size: 18px;
    }

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}