/* assets/css/style.css */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f6871f;
    --text-color: #333;
    --light-bg: #f8f9fa;
}
      @font-face {
          font-family: Vazir;
          src: url('../fonts/vazir.ttf');
      }
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}


/* Flag Icons - استفاده از SVG backgrounds */
.flag-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.flag-icon-ir {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 480'%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill-opacity='.7' d='M0 0h640v480H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg fill-rule='evenodd' stroke-width='1pt' clip-path='url(%23a)'%3E%3Cpath fill='%23fff' d='M0 0h640v480H0z'/%3E%3Cpath fill='%23239140' d='M0 0h640v160H0z'/%3E%3Cpath fill='%23da0000' d='M0 320h640v160H0z'/%3E%3C/g%3E%3C/svg%3E");
}

.flag-icon-gb {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 480'%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill-opacity='.7' d='M-85 0h682v512H-85z'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg clip-path='url(%23a)' transform='translate(80)scale(.94)'%3E%3Cg stroke-width='1pt'%3E%3Cpath fill='%23006047' d='M-256 0H768v512H-256z'/%3E%3Cpath fill='%23fff' d='M-256 0v57.2L653 512h115v-57.2L-141 0h-115zM768 0v57.2L-141 512h-115v-57.2L653 0h115z'/%3E%3Cpath fill='%23fff' d='M171 0v512h170V0H171zM-256 171v170H768V171H-256z'/%3E%3Cpath fill='%23c8102e' d='M-256 205v102H768V205H-256zM205 0v512h102V0H205zM-256 512L85 341h77l-341 171h-77zM-256 0l341 171h-77L-256 35V0zm512 171L597 0h77L512 171h-77zm-171 341l341-171h77L341 512h-77z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.flag-icon-sa {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 480'%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath d='M0 0h640v480H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg fill-rule='evenodd' stroke-width='1pt' clip-path='url(%23a)'%3E%3Cpath fill='%23007043' d='M0 0h640v480H0z'/%3E%3Cpath fill='%23fff' d='M240 0h160v480H240z'/%3E%3C/g%3E%3C/svg%3E");
}

.flag-icon-krd {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 480'%3E%3Crect width='640' height='480' fill='%23ED2024'/%3E%3Crect width='640' height='320' fill='%23fff'/%3E%3Crect width='640' height='160' fill='%23278E3B'/%3E%3Ccircle cx='320' cy='240' r='60' fill='%23FFCC00'/%3E%3C/svg%3E");
}

/* برای حالت dark theme */
[data-bs-theme="dark"] .flag-icon {
    box-shadow: 0 1px 3px rgba(255,255,255,0.2);
}

/* تنظیمات dropdown برای پرچم‌ها */
.language-switcher .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-switcher .flag-icon {
    width: 20px;
    height: 15px;
    flex-shrink: 0;
}


/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* assets/css/style.css - ادامه */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* کلاس‌های انیمیشن */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* استایل‌های سفارشی */
.btn-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-outline-gradient {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-gradient:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

.section-title {
    position: relative;
    margin-bottom: 50px;
    text-align: center;
}

.section-title h2 {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 15px;
}

.section-title .title-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    font-weight: bold;
    color: rgba(102, 126, 234, 0.05);
    white-space: nowrap;
    z-index: -1;
}

.card-hover {
    transition: all 0.3s;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

/* استایل اسکرول بار */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* استایل لودینگ */
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* استایل نوتیفیکیشن */
.notification {
    position: fixed;
    top: 20px;
    left: 20px;
    background: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    animation: slideInRight 0.3s ease-out;
    border-right: 4px solid var(--primary-color);
}

.notification.success {
    border-right-color: #28a745;
}

.notification.error {
    border-right-color: #dc3545;
}

.notification.warning {
    border-right-color: #ffc107;
}

.notification i {
    font-size: 20px;
}

.notification.success i {
    color: #28a745;
}

.notification.error i {
    color: #dc3545;
}

.notification.warning i {
    color: #ffc107;
}

.notification .close-btn {
    margin-right: 10px;
    cursor: pointer;
    color: #999;
}

.notification .close-btn:hover {
    color: #333;
}

/* استایل تگ‌ها */
.badge-custom {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-android {
    background: #3DDC84;
    color: white;
}

.badge-ios {
    background: #000;
    color: white;
}

.badge-new {
    background: var(--primary-color);
    color: white;
}

.badge-update {
    background: var(--accent-color);
    color: white;
}

/* استایل فوتر */
.footer {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    color: white;
    padding: 60px 0 30px;
}

.footer h5 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-right: 5px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    margin-left: 5px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-3px);
}

/* استایل ریسپانسیو */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 28px;
    }
    
    .section-title .title-bg {
        font-size: 50px;
    }
    
    .btn-gradient, .btn-outline-gradient {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 24px;
    }
    
    .section-title .title-bg {
        font-size: 40px;
    }
}