/* استایل‌های پایه با فونت وزیر */
:root {
    --primary-gold: #D4AF37;
    --primary-dark: #B8860B;
    --secondary-purple: #8B5CF6;
    --accent-teal: #0D9488;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --background: #FDF6E3;
    --white: #FFFFFF;
    --gold-light: #FEF3C7;
    --gold-dark: #92400E;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.3);
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #FDE68A 100%);
    --gradient-purple: linear-gradient(135deg, #8B5CF6 0%, #C4B5FD 100%);
    --gradient-teal: linear-gradient(135deg, #0D9488 0%, #5EEAD4 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Vazirmatn, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--background);
    direction: rtl;
    font-weight: 400;
}

/* کانتینر لاکچری */
.luxury-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.luxury-form-wrapper {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--gold-light);
}

/* هدر فرم */
.form-header.luxury-header {
    background: var(--gradient-gold);
    color: var(--gold-dark);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.form-header.luxury-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="rgba(255,255,255,0.1)"><polygon points="50,0 100,50 50,100 0,50"/></svg>');
    background-size: 80px;
}

.header-content {
    position: relative;
    z-index: 2;
}

.header-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gold-dark);
}

.form-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.header-progress {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.3);
    padding: 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--gold-dark);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* بخش‌های فرم */
.luxury-section {
    padding: 2.5rem;
    border-bottom: 1px solid var(--gold-light);
    position: relative;
}

.luxury-section:last-child {
    border-bottom: none;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--primary-gold);
}

.section-header i {
    font-size: 1.5rem;
    background: var(--gradient-gold);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* گرید فرم */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* اینپوت‌های لاکچری */
.luxury-input {
    position: relative;
    margin-bottom: 1.5rem;
}

.luxury-input label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.luxury-input label i {
    color: var(--primary-gold);
    font-size: 1.1rem;
}

.luxury-input input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
    position: relative;
}

.luxury-input input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.input-decoration {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: width 0.3s ease;
}

.luxury-input input:focus + .input-decoration {
    width: 100%;
}

/* تکست‌اریا لاکچری */
.luxury-textarea {
    position: relative;
    margin-bottom: 1.5rem;
}

.luxury-textarea label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.luxury-textarea label i {
    color: var(--primary-gold);
    font-size: 1.1rem;
}

.luxury-textarea textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.luxury-textarea textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.textarea-decoration {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: width 0.3s ease;
}

.luxury-textarea textarea:focus + .textarea-decoration {
    width: 100%;
}

/* آپلود عکس پروفایل */
.luxury-upload {
    text-align: center;
}

.upload-preview {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-gold);
    transition: all 0.3s ease;
}

.upload-preview:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(212, 175, 55, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-preview:hover .upload-overlay {
    opacity: 1;
}

.upload-overlay i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.upload-info {
    color: var(--text-light);
    font-size: 0.9rem;
}

.upload-info p {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* گالری نمونه کارها */
.portfolio-upload {
    margin-top: 1rem;
}

.upload-area {
    border: 2px dashed var(--primary-gold);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(212, 175, 55, 0.05);
}

.upload-area:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--primary-dark);
}

.upload-area i {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.upload-area h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: var(--text-light);
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.portfolio-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.remove-portfolio {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-portfolio:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.1);
}

/* دکمه لاکچری */
.form-submit {
    text-align: center;
    padding: 2rem;
}

.btn-luxury-primary {
    background: var(--gradient-gold);
    color: var(--gold-dark);
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gold);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.btn-luxury-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-luxury-primary:hover::before {
    left: 100%;
}

.btn-luxury-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* پیام‌ها */
.luxury-messages {
    margin: 1rem 2.5rem 2.5rem;
}

#form-messages {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: none;
    font-weight: 600;
}

#form-messages.success {
    background: rgba(16, 185, 129, 0.1);
    color: #065F46;
    border: 1px solid #10B981;
}

#form-messages.error {
    background: rgba(239, 68, 68, 0.1);
    color: #7F1D1D;
    border: 1px solid #EF4444;
}

/* پیام عمومی */
.luxury-message {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gold-light);
    color: var(--text-dark);
}

.luxury-message i {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

/* صفحه پروفایل لاکچری */
.luxury-profile-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #FDF6E3 0%, #FEF3C7 50%, #FDE68A 100%);
}

.profile-hero {
    position: relative;
    background: var(--gradient-gold);
    color: var(--gold-dark);
    padding: 4rem 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.2)"><polygon points="1000,0 1000,100 0,100"/></svg>') bottom center/cover no-repeat;
}

.profile-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.profile-avatar {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--white);
    box-shadow: var(--shadow-lg);
}

.avatar-frame {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-title {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.profile-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.3);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* محتوای پروفایل */
.profile-content {
    max-width: 1200px;
    margin: -50px auto 0;
    padding: 0 2rem 4rem;
    position: relative;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.profile-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    border: 1px solid var(--gold-light);
}

.profile-card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: var(--gradient-gold);
    color: var(--gold-dark);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.card-content {
    padding: 1.5rem;
}

/* مهارت‌ها */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-name {
    flex: 1;
    font-weight: 600;
}

.skill-bar {
    flex: 2;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 4px;
    transition: width 1s ease;
}

/* گالری نمونه کارها در پروفایل */
.portfolio-section {
    margin-top: 2rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.portfolio-item-large {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-item-large:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.portfolio-item-large img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* شبکه‌های اجتماعی لاکچری */
.luxury-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-weight: 600;
}

.social-link:hover {
    transform: translateX(-5px);
    border-color: var(--primary-gold);
}

.social-link.instagram {
    background: linear-gradient(45deg, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
}

.social-link.whatsapp {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
}

.social-link.other {
    background: var(--background);
}

.social-link i {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .luxury-container {
        padding: 1rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .profile-container {
        padding: 0 1rem;
    }
    
    .profile-content {
        padding: 0 1rem 2rem;
    }
    
    .profile-name {
        font-size: 2rem;
    }
    
    .profile-avatar img {
        width: 150px;
        height: 150px;
    }
    
    .luxury-section {
        padding: 1.5rem;
    }
    
    .form-header.luxury-header {
        padding: 2rem 1rem;
    }
    
    .form-header h1 {
        font-size: 2rem;
    }
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-card {
    animation: fadeInUp 0.6s ease;
}

.luxury-section {
    animation: fadeInUp 0.8s ease;
}

/* اسکرول بار سفارشی */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}