/* domain.css - نسخه مینیمال */

/* ===== هیرو سکشن ===== */
.domain-hero {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.domain-hero__grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.domain-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e2e8f0;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 24px;
}

.domain-hero__title {
    font-size: 42px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.domain-hero__lead {
    font-size: 16px;
    color: #475569;
    margin-bottom: 32px;
    line-height: 1.7;
}

/* جستجو */
.domain-hero__search {
    margin-bottom: 32px;
}

.search-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.search-input {
    flex: 1;
    height: 52px;
    padding: 0 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    background: white;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.search-btn {
    height: 52px;
    padding: 0 28px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.search-btn:hover {
    background: #2563eb;
}

.search-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #64748b;
}

.hint-item {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.hint-item:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

/* بج‌ها */
.badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
    max-width: 120px;
}

.domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1;
}

.domain-badge i, 
.domain-badge svg {
    font-size: 12px;
}

.domain-badge.sale { 
    background: #fee2e2; 
    color: #b91c1c; 
}

.domain-badge.popular { 
    background: #f3e8ff; 
    color: #7e22ce; 
}

.domain-badge.new { 
    background: #dcfce7; 
    color: #166534; 
}

/* حالت لیستی - بج‌ها */
.domains-grid.list-view .badge-group {
    max-width: 100px;
    justify-content: flex-start;
}

.domains-grid.list-view .domain-badge {
    padding: 3px 8px;
    font-size: 10px;
}
/* مدیا سمت راست */
.domain-hero__media {
    position: relative;
}

.domain-hero__card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.domain-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
}

/* ===== بخش اصلی ===== */
.domain-section {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 20px;
}

.domain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.domain-section-title {
    font-size: 28px;
    font-weight: 600;
    color: #0f172a;
}

.domain-update {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    background: #f8fafc;
    padding: 8px 16px;
    border-radius: 40px;
}

/* نوار ابزار */
.domain-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 20px;
    border: none;
    background: transparent;
    border-radius: 40px;
    font-family: inherit;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.filter-tab.active {
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 500;
}

.view-toggle {
    display: flex;
    gap: 8px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 40px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 40px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn.active {
    background: white;
    color: #0f172a;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* ===== گرید دامنه‌ها ===== */
.domains-grid {
    display: grid;
    gap: 20px;
    min-height: 300px;
}

/* حالت کارتی */
.domains-grid.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.domain-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.domain-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.domain-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.domain-extension {
    font-size: 22px;
    font-weight: 600;
    color: #0f172a;
}

.badge-group {
    display: flex;
    gap: 5px;
}

.domain-badge.sale { background: #fee2e2; color: #b91c1c; padding: 4px 10px; border-radius: 30px; font-size: 11px; }
.domain-badge.popular { background: #f3e8ff; color: #7e22ce; padding: 4px 10px; border-radius: 30px; font-size: 11px; }
.domain-badge.new { background: #dcfce7; color: #166534; padding: 4px 10px; border-radius: 30px; font-size: 11px; }

.pricing-details {
    margin: 16px 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 14px;
}

.price-row span:first-child {
    color: #64748b;
}

.price-row span:last-child {
    font-weight: 600;
    color: #0f172a;
}

.order-link {
    display: block;
    text-align: center;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.order-link:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* ===== حالت لیستی فشرده ===== */
.domains-grid.list-view {
    grid-template-columns: 1fr;
    gap: 8px;
}

.domains-grid.list-view .domain-card {
    display: grid;
    grid-template-columns: 120px 1fr 1fr 1fr 100px;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.domains-grid.list-view .domain-card:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.domains-grid.list-view .domain-card-header {
    margin-bottom: 0;
    min-width: auto;
}

.domains-grid.list-view .domain-extension {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.domains-grid.list-view .badge-group {
    margin-right: 5px;
}

.domains-grid.list-view .pricing-details {
    margin: 0;
    display: contents;
}

.domains-grid.list-view .price-row {
    border-bottom: none;
    padding: 0;
    justify-content: flex-start;
    gap: 5px;
}

.domains-grid.list-view .price-row span:first-child {
    font-size: 13px;
    color: #64748b;
}

.domains-grid.list-view .price-row span:last-child {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.domains-grid.list-view .order-link {
    margin-top: 0;
    padding: 6px 12px;
    font-size: 13px;
    width: 100%;
    white-space: nowrap;
}

/* ریسپانسیو برای حالت لیستی */
@media (max-width: 900px) {
    .domains-grid.list-view .domain-card {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }
    
    .domains-grid.list-view .price-row {
        justify-content: space-between;
    }
    
    .domains-grid.list-view .order-link {
        width: 100%;
    }
}

/* سوالات متداول */
.domain-faq {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.faq-item {
    background: #f8fafc;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.faq-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
}

.faq-item p {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
}

/* نتیجه جستجو */
.search-result {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.clear-search {
    background: none;
    border: 1px solid #e2e8f0;
    padding: 6px 16px;
    border-radius: 30px;
    color: #64748b;
    cursor: pointer;
    font-size: 13px;
}

.clear-search:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fee2e2;
}

/* لودینگ */
.loading {
    text-align: center;
    padding: 50px;
    color: #64748b;
    grid-column: 1 / -1;
}

.no-result {
    text-align: center;
    padding: 50px;
    color: #64748b;
    grid-column: 1 / -1;
    font-size: 16px;
}

/* ریسپانسیو کلی */
@media (max-width: 900px) {
    .domain-hero__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .domain-hero__title {
        font-size: 32px;
    }
    
    .search-wrapper {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .domain-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .domains-grid.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}


@media (max-width: 768px) {
    .domains-grid.list-view .domain-card {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    
    /* دکمه‌ها بزرگتر برای کلیک راحت‌تر */
    .order-link {
        padding: 15px !important;
        font-size: 16px !important;
    }
    
    /* فیلترها افقی و اسکرول‌پذیر */
    .filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }
}




/* ===== بخش آفرها ===== */
.offers-wrapper {
    max-width: 1280px;
    margin: 30px auto;
    padding: 0 20px;
}

.offers-container {
    background: #f8fafc;
    border-radius: 20px;
    padding: 20px 20px 25px;
    border: 1px solid #edf2f7;
}

.offers-header {
    text-align: center;
    margin-bottom: 20px;
}

.offers-tag {
    display: inline-block;
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 30px;
    margin-bottom: 8px;
}

.offers-heading {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.offers-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 1000px;
    margin: 0 auto;
}

.offer-block {
    background: white;
    border: 1px solid #e9edf2;
    border-radius: 16px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    transition: all 0.2s;
}

.offer-block:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.offer-block.popular {
    background: #fefce8;
    border-color: #eab308;
}

.offer-block-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.offer-block-icon i {
    font-size: 22px;
    color: #3b82f6;
}

.offer-block.popular .offer-block-icon i {
    color: #eab308;
}

.offer-block-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.offer-block-badge {
    background: #eab308;
    color: white;
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 20px;
}

.offer-block-price {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 4px;
}

.offer-block-price span {
    font-size: 10px;
    font-weight: 400;
    color: #64748b;
    margin-right: 2px;
}

.offer-block-domain {
    font-size: 11px;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}

.offer-block-domain i {
    color: #10b981;
    font-size: 11px;
}

.offer-block-btn {
    width: 100%;
    padding: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #1e293b;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    margin-top: 4px;
}

.offer-block-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.offer-block.popular .offer-block-btn {
    background: #eab308;
    color: white;
    border-color: #eab308;
}

.offer-block.popular .offer-block-btn:hover {
    background: #ca8a04;
}

/* ریسپانسیو */
@media (max-width: 900px) {
    .offers-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 500px) {
    .offers-row {
        grid-template-columns: 1fr;
    }
    
    .offer-block {
        flex-direction: row;
        text-align: right;
        padding: 15px;
    }
    
    .offer-block-icon {
        margin-bottom: 0;
    }
    
    .offer-block-content {
        flex: 1;
        text-align: right;
    }
    
    .offer-block-content h4 {
        justify-content: flex-start;
    }
    
    .offer-block-domain {
        justify-content: flex-start;
    }
    
    .offer-block-btn {
        width: 90px;
    }
}

.domain-extension {
    font-size: 22px;
    font-weight: 600;
    color: #0f172a;
    direction: ltr;           /* چپ‌چین برای دامنه */
    display: inline-block;
    unicode-bidi: embed;      /* حفظ جهت متن */
}


/* ===== استایل تب‌ها ===== */
.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 20px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 40px;
    font-family: inherit;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;           /* حداقل عرض یکسان */
    text-align: center;
}

.filter-tab:hover {
    border-color: #94a3b8;             /* border تیره‌تر در هاور */
    background: #f8fafc;                /* پس‌زمینه ملایم در هاور */
    color: #334155;
}

.filter-tab.active {
    border: 1px solid #3b82f6;          /* border آبی برای تب فعال */
    background: #3b82f6;                 /* پس‌زمینه آبی */
    color: white;
    font-weight: 500;
}

/* حالت فوکوس برای دسترسی بهتر */
.filter-tab:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}


 /* ===== اسکلتون لودینگ (Skeleton Loading) ===== */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.skeleton-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.skeleton-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.skeleton-title {
    width: 80px;
    height: 28px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

.skeleton-badge {
    width: 60px;
    height: 24px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 20px;
}

.skeleton-price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 0;
}

.skeleton-price-label {
    width: 40px;
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-price-value {
    width: 80px;
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-button {
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 10px;
    margin-top: 16px;
}

/* حالت لیستی اسکلتون */
.domains-grid.list-view .skeleton-grid {
    grid-template-columns: 1fr;
}

.domains-grid.list-view .skeleton-card {
    display: grid;
    grid-template-columns: 100px 1fr 1fr 1fr 100px;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
}

.domains-grid.list-view .skeleton-title {
    width: 70px;
    height: 24px;
    margin-bottom: 0;
}

.domains-grid.list-view .skeleton-badge {
    width: 50px;
    height: 20px;
}

.domains-grid.list-view .skeleton-price-row {
    margin-bottom: 0;
    padding: 0;
}

.domains-grid.list-view .skeleton-price-label {
    width: 30px;
}

.domains-grid.list-view .skeleton-price-value {
    width: 60px;
}

.domains-grid.list-view .skeleton-button {
    width: 80px;
    height: 32px;
    margin-top: 0;
}

/* انیمیشن اسکلتون */
@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .domains-grid.list-view .skeleton-card {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .domains-grid.list-view .skeleton-button {
        width: 100%;
    }
}