/* ============================================
   ئۇيغۇرچە Bootstrap 5.3.3 - ئالاھىدە CSS
   ============================================ */

/* ئاساسىي تەڭشەش */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Naskh Arabic', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
    background-color: #f8f9fa;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

/* ===== ئۇيغۇرچە ماۋزۇ ===== */
.uyghur-title {
    color: #2c3e50;
    border-bottom: 3px solid #27ae60;
    padding-bottom: 12px;
    margin-bottom: 30px;
    position: relative;
    font-weight: 700;
    display: inline-block;
}

.uyghur-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #27ae60, #2ecc71, transparent);
}

.text-center .uyghur-title::after {
    right: 50%;
    transform: translateX(50%);
}

/* ===== باش بەت قىسمى (Hero Section) ===== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    border-radius: 0 0 70px 70px;
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* ===== كارتىلار ===== */
.feature-card {
    border-radius: 20px !important;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.feature-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    color: #764ba2;
}

/* ===== باھا جەدۋىلى (Pricing Cards) ===== */
.pricing-card {
    border-radius: 25px !important;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.pricing-card.popular {
    transform: scale(1.05);
    border: 2px solid #667eea;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3) !important;
    z-index: 2;
}

.pricing-card.popular:hover {
    transform: scale(1.07);
}

.pricing-card .card-header {
    border-bottom: none;
    font-weight: 600;
}

.pricing-card .card-body {
    padding: 2rem;
}

.pricing-card .list-unstyled li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 0 !important;
}

.pricing-card .list-unstyled li:last-child {
    border-bottom: none;
}

/* ===== توپچىلار ===== */
.btn {
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
}

/* ===== تىزىملىك ئېلېمېنتلىرى ===== */
.list-group-item {
    border-radius: 15px !important;
    margin-bottom: 8px;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.list-group-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

[dir="rtl"] .list-group-item:hover {
    transform: translateX(5px);
}

.news-item {
    border-right: 4px solid transparent;
    transition: all 0.3s ease;
}

.news-item:hover {
    border-right-color: #667eea;
}

[dir="rtl"] .news-item {
    border-right: none;
    border-left: 4px solid transparent;
}

[dir="rtl"] .news-item:hover {
    border-left-color: #667eea;
}

/* ===== كاروسېل (Carousel) ===== */
.carousel-item img {
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    right: 20px;
    left: auto;
}

.carousel-control-next {
    left: 20px;
    right: auto;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: #667eea;
}

/* ===== فورم ئېلېمېنتلىرى ===== */
.form-control, .form-select {
    border-radius: 50px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

/* ===== ئاگاھلاندۇرۇش (Alert) ===== */
.alert {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ===== بەلگىلەر (Badges) ===== */
.badge {
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 500;
}

/* ===== ئارلىق (Spacing) ===== */
.mt-6 {
    margin-top: 5rem !important;
}

.mb-6 {
    margin-bottom: 5rem !important;
}

/* ===== جاۋاب بېرىش (Responsive) ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 60px 0;
        border-radius: 0 0 50px 50px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .pricing-card.popular {
        transform: scale(1.02);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
        border-radius: 0 0 30px 30px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .uyghur-title {
        font-size: 1.5rem;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        opacity: 1;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 30px 0;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
}

/* ===== يۇقىرىغا چىقىش توپچىسى ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.6);
}

[dir="rtl"] .scroll-to-top {
    left: 30px;
    right: auto;
}

/* ===== Toast ئۇچۇرلىرى ===== */
.toast-container {
    z-index: 1100;
}

.toast {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===== يۈكلىنىش ئەنیماتسىيەسى (Loading Spinner) ===== */
.spinner-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner-container.fade-out {
    opacity: 0;
    pointer-events: none;
}

.custom-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== ئەنیماتسىيەلەر ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

/* ===== RTL ئالاھىدە تۈزىتىشلەر ===== */
[dir="rtl"] .navbar-nav {
    padding-right: 0;
}

[dir="rtl"] .dropdown-menu {
    text-align: right;
}

[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

[dir="rtl"] .me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

[dir="rtl"] .ms-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .text-start {
    text-align: right !important;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}

[dir="rtl"] .float-start {
    float: right !important;
}

[dir="rtl"] .float-end {
    float: left !important;
}

[dir="rtl"] .ps-0 {
    padding-right: 0 !important;
    padding-left: 1rem !important;
}

/* ===== يېڭى ئىقتىدارلار ===== */
.border-gradient {
    border: 4px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(to left, #667eea, #764ba2);
}

.text-gradient {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== قاراڭغۇ تېما (Dark Theme) ===== */
@media (prefers-color-scheme: dark) {
    body.dark-theme {
        background-color: #1a1a2e;
        color: #fff;
    }
    
    body.dark-theme .card {
        background-color: #16213e;
        color: #fff;
    }
    
    body.dark-theme .list-group-item {
        background-color: #16213e;
        color: #fff;
        border-color: #0f3460;
    }
}

/* ===== باسقۇچلار (Steps) ===== */
.step {
    position: relative;
    padding: 20px;
    margin-bottom: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 15px;
}