/* ملف الستايلات المتقدمة للبطاقات */

/* البطاقات الأساسية */
.vcard-container {
    max-width: 400px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    background: #fff;
    position: relative;
}

/* خلفيات متدرجة */
.bg-gradient-luxury {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-gold {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

.bg-gradient-ocean {
    background: linear-gradient(135deg, #2196F3 0%, #21CBF3 100%);
}

.bg-gradient-sunset {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.bg-gradient-forest {
    background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
}

.bg-gradient-royal {
    background: linear-gradient(135deg, #141e30 0%, #243b55 100%);
}

.bg-gradient-rose {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* تخطيطات البطاقات */
.vcard-layout-modern {
    padding: 30px;
    text-align: center;
    color: white;
}

.vcard-layout-professional {
    background: white;
    color: #333;
    overflow: hidden;
}

.vcard-layout-creative {
    position: relative;
    min-height: 600px;
}

/* أقسام البطاقة */
.vcard-header {
    position: relative;
    padding: 40px 30px;
    text-align: center;
}

.vcard-body {
    padding: 20px 30px;
    background: rgba(255,255,255,0.95);
    color: #333;
}

.vcard-footer {
    padding: 20px 30px;
    text-align: center;
    background: rgba(0,0,0,0.1);
}

/* صورة الملف الشخصي */
.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    margin: 0 auto 20px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.profile-image-square {
    border-radius: 15px;
}

.profile-image-hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border-radius: 0;
}

/* النصوص */
.vcard-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.vcard-title {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
    font-weight: 400;
}

.vcard-company {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 20px;
    padding: 5px 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    display: inline-block;
}

/* معلومات الاتصال */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    font-size: 16px;
}

.contact-text {
    flex: 1;
    text-align: right;
}

.contact-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 14px;
    font-weight: 500;
    direction: ltr;
    text-align: left;
}

/* شبكات التواصل */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
    color: white;
}

/* خلفيات مخصصة بالصور */
.vcard-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.vcard-content {
    position: relative;
    z-index: 2;
}

.vcard-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* تأثيرات خاصة */
.glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.neumorphism {
    background: #e0e0e0;
    box-shadow: 8px 8px 16px #bebebe, -8px -8px 16px #ffffff;
}

/* الاستجابة للأجهزة المحمولة */
@media (max-width: 768px) {
    .vcard-container {
        max-width: 350px;
        margin: 10px;
    }
    
    .vcard-name {
        font-size: 24px;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .contact-item {
        padding: 10px;
    }
}

/* طباعة البطاقة */
@media print {
    .vcard-container {
        box-shadow: none;
        max-width: 100%;
        page-break-inside: avoid;
    }
    
    .bg-gradient-luxury,
    .bg-gradient-gold,
    .bg-gradient-ocean,
    .bg-gradient-sunset,
    .bg-gradient-forest,
    .bg-gradient-royal,
    .bg-gradient-rose {
        background: #333 !important;
        color: white !important;
    }
}

/* تحسينات إضافية */
.vcard-qr-section {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    margin-top: 20px;
    border-radius: 15px;
}

.vcard-qr-code {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    padding: 10px;
    background: white;
    border-radius: 10px;
}

.vcard-decoration {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 60px;
    opacity: 0.1;
    color: white;
}

/* التصميم الجديد المطابق للمرفق */
.vcard-style-new {
    background: white;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.vcard-header-colored {
    position: relative;
    border-radius: 20px 20px 0 0;
    padding: 30px 20px 80px 20px;
    text-align: center;
    color: white;
    margin-bottom: 0;
    min-height: 180px;
}

.vcard-body-white {
    background: white;
    padding: 60px 20px 20px 20px;
    margin-top: -50px;
    border-radius: 15px 15px 20px 20px;
    position: relative;
    z-index: 2;
    color: #333;
}

.profile-image-new {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.9);
    margin: 0 auto 15px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: relative;
    z-index: 3;
}

.vcard-name-new {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.vcard-position-new {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 3px;
    color: white;
}

.vcard-company-new {
    font-size: 13px;
    opacity: 0.8;
    color: white;
}

.vcard-description-new {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
    text-align: center;
}

.contact-buttons-new {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.contact-btn {
    width: 50px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: white;
}

.btn-phone { background: #4CAF50; }
.btn-email { background: #2196F3; }
.btn-website { background: #FF9800; }

.contact-list-new {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item-new {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item-new:last-child {
    border-bottom: none;
}

.contact-icon-new {
    width: 20px;
    height: 20px;
    margin-left: 12px;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-text-new {
    flex: 1;
    font-size: 14px;
    color: #333;
    direction: ltr;
    text-align: left;
}

.contact-label-new {
    font-size: 12px;
    color: #999;
    margin-bottom: 2px;
}

.save-contact-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    margin: 20px auto 0;
    transition: all 0.3s ease;
}

.save-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}
