/* ============================================================
   🎨 STYLE.CSS - استایل کلی سایت
   ============================================================ */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f4f8;
    color: #1a202c;
    line-height: 1.7;
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 32px;
    border-radius: 50px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Vazir', sans-serif;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    color: #fff;
    padding: 12px 32px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Vazir', sans-serif;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* ===== HEADER / NAVBAR ===== */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: #4a3f5c;
}

.logo i {
    font-size: 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    font-size: 15px;
    font-weight: 500;
}

.nav-links a {
    color: #4a3f5c;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #667eea;
}

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

.nav-actions .lang-toggle {
    background: #e9edf2;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #4a3f5c;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    font-family: 'Vazir', sans-serif;
}

.nav-actions .lang-toggle:hover {
    background: #d5dce6;
}

.btn-login {
    background: #667eea;
    color: #fff;
    padding: 8px 24px;
    border-radius: 30px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Vazir', sans-serif;
}

.btn-login:hover {
    background: #5a6fd6;
    transform: scale(1.05);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #fff;
    padding: 80px 0 100px;
    text-align: center;
    border-radius: 0 0 40px 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 60%);
    animation: heroGlow 12s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10%, 5%); }
}

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

.hero-badge {
    display: inline-block;
    background: rgba(102, 126, 234, 0.25);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #a8b5ff;
    border: 1px solid rgba(102, 126, 234, 0.3);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero h1 span {
    background: linear-gradient(135deg, #a8b5ff, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat .number {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stats .stat .label {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 4px;
}

/* ===== AI ASSISTANT ===== */
.ai-assistant {
    padding: 60px 0;
    background: #fff;
    margin-top: -40px;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 3;
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1a202c;
}

.section-header h2 i {
    color: #667eea;
    margin-left: 12px;
}

.section-header p {
    color: #718096;
    font-size: 16px;
    margin-top: 8px;
}

.ai-search-box {
    display: flex;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto 20px;
    background: #f7fafc;
    border-radius: 60px;
    padding: 6px 6px 6px 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.ai-search-box:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.ai-search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 0;
    font-size: 16px;
    font-family: 'Vazir', sans-serif;
    outline: none;
    color: #1a202c;
}

.ai-search-box input::placeholder {
    color: #a0aec0;
}

.ai-search-box .search-actions {
    display: flex;
    gap: 8px;
}

.ai-search-box .search-actions button {
    padding: 12px 28px;
    border-radius: 40px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Vazir', sans-serif;
}

.ai-search-box .btn-search {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.ai-search-box .btn-search:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

.ai-search-box .btn-upload {
    background: #edf2f7;
    color: #4a3f5c;
    padding: 12px 16px;
}

.ai-search-box .btn-upload:hover {
    background: #e2e8f0;
}

.ai-quick-questions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.ai-quick-questions .q-badge {
    background: #f7fafc;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    color: #4a3f5c;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.ai-quick-questions .q-badge:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
    transform: translateY(-2px);
}

.ai-quick-questions .q-badge i {
    margin-left: 8px;
    font-size: 12px;
}

/* ===== AI RESPONSE ===== */
.ai-response {
    max-width: 800px;
    margin: 24px auto 0;
    background: #f7fafc;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.response-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.response-header i {
    margin-left: 8px;
}

.response-badge {
    font-size: 13px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 16px;
    border-radius: 20px;
}

.response-body {
    padding: 24px;
}

.response-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #718096;
}

.btn-like {
    background: #edf2f7;
    border: none;
    padding: 6px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #4a3f5c;
    transition: all 0.3s;
    font-family: 'Vazir', sans-serif;
}

.btn-like:hover {
    background: #e2e8f0;
}

/* ===== KNOWLEDGE BASE ===== */
.knowledge-base {
    padding: 60px 0;
    background: #f7fafc;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.category-card {
    background: #fff;
    padding: 28px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
    border: 1px solid #edf2f7;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: #667eea;
}

.category-card .icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
}

.category-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.category-card .count {
    font-size: 13px;
    color: #a0aec0;
    font-weight: 500;
}

.category-card .count span {
    color: #667eea;
    font-weight: 700;
}

.kb-footer {
    text-align: center;
    margin-top: 32px;
}

.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 10px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Vazir', sans-serif;
}

.btn-outline:hover {
    background: #667eea;
    color: #fff;
}

/* ===== CONTRIBUTION ===== */
.contribution {
    padding: 60px 0;
    background: #fff;
}

.contribution-feed {
    max-width: 800px;
    margin: 0 auto;
}

.contribution-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f7fafc;
    border-radius: 16px;
    margin-bottom: 12px;
    border-right: 4px solid #667eea;
    transition: all 0.3s;
}

.contribution-item:hover {
    background: #edf2f7;
    transform: translateX(-6px);
}

.contribution-item .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.contribution-item .info {
    flex: 1;
}

.contribution-item .info .name {
    font-weight: 700;
    font-size: 15px;
}

.contribution-item .info .desc {
    font-size: 14px;
    color: #718096;
}

.contribution-item .info .date {
    font-size: 12px;
    color: #a0aec0;
}

/* ===== CANCER CENTERS ===== */
.cancer-centers {
    padding: 60px 0;
    background: #f7fafc;
}

.centers-search {
    max-width: 600px;
    margin: 0 auto 32px;
    display: flex;
    gap: 12px;
}

.centers-search input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 50px;
    border: 2px solid #e2e8f0;
    font-size: 15px;
    font-family: 'Vazir', sans-serif;
    outline: none;
    transition: all 0.3s;
    background: #fff;
}

.centers-search input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.centers-search button {
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Vazir', sans-serif;
}

.centers-search button:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.centers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.center-card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    transition: all 0.3s;
}

.center-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.center-card .name {
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.center-card .country {
    font-size: 13px;
    color: #718096;
    margin: 4px 0 8px;
}

.center-card .tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.center-card .tags span {
    background: #edf2f7;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #4a3f5c;
}

/* ===== DASHBOARD ===== */
.dashboard {
    padding: 60px 0;
    background: #fff;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.dashboard-stat {
    background: #f7fafc;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #edf2f7;
}

.dashboard-stat .number {
    font-size: 36px;
    font-weight: 800;
    color: #667eea;
}

.dashboard-stat .label {
    font-size: 14px;
    color: #718096;
    margin-top: 4px;
}

.dashboard-stat .status {
    font-size: 13px;
    color: #48bb78;
    margin-top: 4px;
}

.dashboard-stat .status i {
    margin-left: 4px;
}

/* ===== RESEARCH TOOLS ===== */
.research-tools {
    padding: 60px 0;
    background: #f7fafc;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.tool-card {
    background: #fff;
    padding: 28px 16px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #edf2f7;
    transition: all 0.3s;
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: #667eea;
}

.tool-card .icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.tool-card h4 {
    font-size: 15px;
    font-weight: 700;
}

.tool-card p {
    font-size: 13px;
    color: #a0aec0;
    margin-top: 4px;
}

/* ===== NEWS ===== */
.news {
    padding: 60px 0;
    background: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.news-card {
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.news-card .badge {
    display: inline-block;
    background: #667eea;
    color: #fff;
    padding: 2px 14px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 8px;
}

.news-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.news-card p {
    font-size: 14px;
    color: #718096;
}

/* ===== FOOTER ===== */
.footer {
    background: #1a202c;
    color: #a0aec0;
    padding: 40px 0 24px;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand h3 {
    color: #fff;
    font-size: 20px;
}

.footer-brand h3 i {
    color: #667eea;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #a0aec0;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copy {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 24px;
    font-size: 14px;
    width: 100%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stats .stat .number {
        font-size: 24px;
    }

    .nav-links {
        display: none;
    }

    .ai-search-box {
        flex-direction: column;
        border-radius: 20px;
        padding: 16px;
    }

    .ai-search-box input {
        padding: 12px 0;
    }

    .ai-search-box .search-actions {
        justify-content: center;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .centers-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        gap: 16px;
    }

    .hero-stats .stat .number {
        font-size: 20px;
    }

    .category-card {
        padding: 16px;
    }

    .category-card .icon {
        font-size: 24px;
    }

    .contribution-item {
        flex-direction: column;
        text-align: center;
    }
}