/* ========================================
   المان‌های طراحی ایرانی
======================================== */

/* الگوهای ایرانی */
.persian-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300A693' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Ccircle cx='50' cy='10' r='2'/%3E%3Ccircle cx='10' cy='50' r='2'/%3E%3Ccircle cx='50' cy='50' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.persian-pattern-dense {
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300A693' fill-opacity='0.08'%3E%3Ccircle cx='20' cy='20' r='3'/%3E%3Ccircle cx='5' cy='5' r='1.5'/%3E%3Ccircle cx='35' cy='5' r='1.5'/%3E%3Ccircle cx='5' cy='35' r='1.5'/%3E%3Ccircle cx='35' cy='35' r='1.5'/%3E%3Ccircle cx='20' cy='5' r='1'/%3E%3Ccircle cx='20' cy='35' r='1'/%3E%3Ccircle cx='5' cy='20' r='1'/%3E%3Ccircle cx='35' cy='20' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* قاب‌های ایرانی */
.persian-frame {
    position: relative;
    border: 3px solid var(--persian-green);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    background: var(--secondary-color);
    box-shadow: var(--box-shadow);
}

.persian-frame::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px solid rgba(0, 166, 147, 0.3);
    border-radius: calc(var(--border-radius-large) + 6px);
    z-index: -1;
}

.persian-frame::after {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border: 1px solid rgba(0, 166, 147, 0.1);
    border-radius: calc(var(--border-radius-large) + 12px);
    z-index: -2;
}

/* تزئینات گوشه */
.persian-corner {
    position: relative;
}

.persian-corner::before,
.persian-corner::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--persian-green);
}

.persian-corner::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: var(--border-radius-small);
}

.persian-corner::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: var(--border-radius-small);
}

/* دکمه‌های ایرانی */
.btn-persian {
    background: var(--persian-green-gradient);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow-light);
}

.btn-persian::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.6s;
}

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

.btn-persian:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-dark);
}

/* کارت‌های ایرانی */
.card-persian {
    background: var(--secondary-color);
    border-radius: var(--border-radius-large);
    box-shadow: var(--box-shadow-light);
    border: 1px solid rgba(0, 166, 147, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card-persian::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--persian-green-gradient);
}

.card-persian:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-dark);
    border-color: var(--persian-green);
}

/* نوار پیشرفت ایرانی */
.progress-persian {
    width: 100%;
    height: 8px;
    background: rgba(0, 166, 147, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-persian::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--persian-green-gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* آیکون‌های ایرانی */
.icon-persian {
    color: var(--persian-green);
    transition: var(--transition);
}

.icon-persian:hover {
    color: var(--persian-green-dark);
    transform: scale(1.1);
}

/* متن‌های تزئینی */
.text-persian-accent {
    color: var(--persian-green);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 166, 147, 0.2);
}

.text-persian-gradient {
    background: var(--persian-green-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* انیمیشن‌های ایرانی */
@keyframes persianFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

@keyframes persianGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 166, 147, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 166, 147, 0.6);
    }
}

/* کلاس‌های انیمیشن */
.animate-float {
    animation: persianFloat 3s ease-in-out infinite;
}

.animate-rotate {
    animation: persianRotate 2s linear infinite;
}

.animate-glow {
    animation: persianGlow 2s ease-in-out infinite;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .persian-frame {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .btn-persian {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .card-persian {
        margin: 0.5rem;
    }
}

/* حالت تاریک */
@media (prefers-color-scheme: dark) {
    .persian-frame {
        background: #1a1a1a;
        border-color: var(--persian-green-light);
    }
    
    .card-persian {
        background: #1a1a1a;
        border-color: rgba(0, 191, 165, 0.2);
    }
}
