/* Reset و فونت‌ها */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow: 0 20px 40px rgba(0,0,0,0.1);
    --shadow-lg: 0 30px 60px rgba(0,0,0,0.15);
}

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

/* انیمیشن‌های سفارشی */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(37, 99, 235, 0.6);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* اسکرول بار سفارشی */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* هدر حرفه‌ای */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 0.7rem 0;
    background: rgba(255, 255, 255, 0.98);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeInLeft 1s ease;
}

.medical-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
    box-shadow: var(--shadow);
}

.logo {
    color: var(--primary);
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    color: var(--gray);
    font-size: 1rem;
    font-weight: 500;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    transition: right 0.3s ease;
    z-index: -1;
    border-radius: 15px;
}

.nav-link:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.nav-link:hover::before {
    right: 0;
}

/* بخش اصلی */
.main {
    padding-top: 8rem;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* بنر حرفه‌ای */
.medical-banner {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,249,250,0.95));
    border-radius: 30px;
    padding: 4rem;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 1s ease;
    position: relative;
    overflow: hidden;
}

.medical-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(37, 99, 235, 0.1), transparent, rgba(139, 92, 246, 0.1), transparent);
    animation: rotate 10s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.banner-content {
    position: relative;
    z-index: 1;
    animation: fadeInLeft 1s ease 0.3s both;
}

.banner-content h2 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 800;
}

.banner-content p {
    font-size: 1.4rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.medical-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    background: rgba(37, 99, 235, 0.2);
}

.banner-image {
    position: relative;
    z-index: 1;
    animation: fadeInRight 1s ease 0.6s both;
}

.banner-image i {
    font-size: 12rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: float 4s ease-in-out infinite;
}

/* فرم پزشکی حرفه‌ای */
.comment-form-medical {
    background: white;
    border-radius: 25px;
    padding: 3rem;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 1s ease 0.9s both;
    position: relative;
    overflow: hidden;
}

.comment-form-medical::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-1);
}

.form-header-medical {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 1.1s both;
}

.medical-badge {
    width: 100px;
    height: 100px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: var(--shadow);
}

.form-header-medical h3 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.form-header-medical p {
    font-size: 1.2rem;
    color: var(--gray);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease both;
}

.form-group:nth-child(1) { animation-delay: 1.3s; }
.form-group:nth-child(2) { animation-delay: 1.4s; }
.form-group:nth-child(3) { animation-delay: 1.5s; }
.form-group:nth-child(4) { animation-delay: 1.6s; }

.form-label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.form-label i {
    color: var(--primary);
    font-size: 1.2rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* ستاره‌های امتیازدهی پیشرفته */
.rating-stars {
    display: flex;
    gap: 0.5rem;
    direction: ltr;
    justify-content: center;
}

.rating-stars input {
    display: none;
}

.rating-stars label {
    font-size: 2.5rem;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.rating-stars label:hover,
.rating-stars input:checked ~ label {
    color: var(--warning);
    transform: scale(1.2) rotate(10deg);
    text-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
}

.medical-submit-btn {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 1.5rem 4rem;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 3rem auto 0;
    transition: all 0.3s ease;
    animation: glow 2s ease-in-out infinite, fadeInUp 1s ease 1.7s both;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.medical-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: right 0.5s ease;
}

.medical-submit-btn:hover::before {
    right: 100%;
}

.medical-submit-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.4);
}

/* اسلایدر نظرات حرفه‌ای */
.comments-slider-section {
    background: white;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 1s ease 1.9s both;
    position: relative;
    overflow: hidden;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 2.1s both;
}

.slider-header h3 {
    font-size: 2.2rem;
    color: var(--dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-header h3 i {
    color: var(--primary);
    font-size: 2.5rem;
}

.comments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    animation: fadeInUp 1s ease 2.3s both;
}

/* کارت نظر حرفه‌ای */
.comment-card-medical {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border-right: 5px solid var(--primary);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.6s ease both;
}

.comment-card-medical::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(139, 92, 246, 0.03));
    z-index: 0;
}

.comment-card-medical:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-right-color: var(--secondary);
}

.comment-header-medical {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.patient-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.patient-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.comment-card-medical:hover .patient-avatar {
    transform: scale(1.1) rotate(10deg);
    background: var(--gradient-2);
}

.patient-details h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.treatment {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 10px;
}

.comment-meta {
    text-align: left;
}

.rating {
    color: var(--warning);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.comment-date {
    color: var(--gray);
    font-size: 1rem;
    font-weight: 500;
}

.comment-text-medical {
    color: var(--dark);
    line-height: 1.8;
    background: rgba(37, 99, 235, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border-right: 3px solid var(--primary);
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.comment-card-medical:hover .comment-text-medical {
    background: rgba(37, 99, 235, 0.08);
    border-right-color: var(--secondary);
}

/* پنل مدیریت حرفه‌ای */
.admin-panel {
    background: white;
    border-radius: 25px;
    padding: 3rem;
    margin: 2rem auto;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 1s ease;
}

.admin-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.admin-badge {
    width: 100px;
    height: 100px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: var(--shadow);
}

.admin-header h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.admin-header p {
    font-size: 1.2rem;
    color: var(--gray);
}

/* آمار پنل مدیریت */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease both;
}

.stat-card:nth-child(1) { animation-delay: 0.5s; }
.stat-card:nth-child(2) { animation-delay: 0.6s; }
.stat-card:nth-child(3) { animation-delay: 0.7s; }

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.stat-icon.pending { background: var(--warning); }
.stat-icon.approved { background: var(--success); }
.stat-icon.total { background: var(--primary); }

.stat-info h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 800;
}

.stat-info p {
    color: var(--gray);
    font-weight: 500;
}

/* لیست نظرات مدیریت */
.admin-comments-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.admin-comment-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    animation: slideIn 0.6s ease both;
}

.admin-comment-card.pending {
    border-color: var(--warning);
    background: linear-gradient(135deg, white, rgba(245, 158, 11, 0.03));
}

.admin-comment-card.approved {
    border-color: var(--success);
    background: linear-gradient(135deg, white, rgba(16, 185, 129, 0.03));
}

.admin-comment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.comment-status {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: var(--warning);
    color: white;
}

.status-approved {
    background: var(--success);
    color: white;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-approve, .btn-reject {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
}

.btn-approve {
    background: var(--success);
    color: white;
}

.btn-approve:hover {
    background: #0da271;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

.btn-reject {
    background: var(--danger);
    color: white;
}

.btn-reject:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

/* فوتر حرفه‌ای */
.footer-medical {
    background: linear-gradient(135deg, var(--dark), #0f172a);
    color: white;
    padding: 4rem 0 1rem;
    margin-top: 6rem;
    position: relative;
}

.footer-medical::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.footer-section p {
    margin-bottom: 1rem;
    color: #cbd5e1;
    line-height: 1.8;
}

.footer-section i {
    color: var(--primary-light);
    margin-left: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
}

/* دکمه اسکرول به بالا */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

/* ریسپانسیو */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .medical-banner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 3rem;
    }
    
    .banner-content h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .medical-banner {
        padding: 2rem;
    }
    
    .banner-content h2 {
        font-size: 2.2rem;
    }
    
    .medical-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .comments-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .comment-header-medical {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .comment-meta {
        text-align: right;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .medical-banner {
        padding: 1.5rem;
    }
    
    .banner-content h2 {
        font-size: 1.8rem;
    }
    
    .comment-form-medical {
        padding: 2rem;
    }
    
    .comments-slider-section {
        padding: 2rem;
    }
    
    .comment-card-medical {
        padding: 2rem;
    }
}

/* انیمیشن برای المان‌های هنگام اسکرول */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}