/* ========================================
   صفحه سرور کال آف دیوتی - استایل کامل
   ======================================== */

:root {
    --cod-primary: #e63946;
    --cod-primary-dark: #c1121f;
    --cod-dark: #0a0a0a;
    --cod-gray: #6c757d;
    --cod-bg-light: #f8f9fa;
    --cod-white: #ffffff;
    --shadow-sm: 0 5px 20px rgba(0,0,0,0.08);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.cod-server-page {
    direction: rtl;
    font-family: inherit;
}

/* کانتینرها */
.cod-hero__container,
.cod-plans__container,
.cod-features__container,
.cod-seo__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== بخش هیرو ========== */
.cod-hero {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    padding: 100px 0;
    overflow: hidden;
}

.cod-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(230, 57, 70, 0.1) 0%, transparent 50%);
}

.cod-hero__content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.cod-hero__text {
    flex: 1;
}

.cod-hero__text h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
}

.cod-hero__text h1 span {
    color: var(--cod-primary);
}

.cod-hero__text p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.7;
}

.cod-hero__buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cod-btn {
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    display: inline-block;
}

.cod-btn--primary {
    background: var(--cod-primary);
    color: white;
}

.cod-btn--primary:hover {
    background: var(--cod-primary-dark);
    transform: translateY(-3px);
}

.cod-btn--outline {
    border: 2px solid var(--cod-primary);
    color: var(--cod-primary);
    background: transparent;
}

.cod-btn--outline:hover {
    background: var(--cod-primary);
    color: white;
    transform: translateY(-3px);
}

.cod-hero__image {
    flex: 1;
    text-align: center;
}

.cod-hero__image img {
    max-width: 100%;
    animation: float 3s ease infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ========== بخش پلن‌ها ========== */
.cod-plans {
    padding: 80px 0;
    background: var(--cod-bg-light);
}

.cod-plans__header {
    text-align: center;
    margin-bottom: 50px;
}

.cod-plans__header h2 {
    font-size: 2rem;
    color: var(--cod-dark);
}

.cod-plans__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.cod-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.cod-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.cod-card--popular {
    border: 2px solid var(--cod-primary);
    transform: scale(1.02);
}

.cod-card__badge {
    position: absolute;
    top: -12px;
    right: 20px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
}

.cod-card__badge--starter { background: #6c757d; }
.cod-card__badge--popular { background: var(--cod-primary); }
.cod-card__badge--tournament { background: #ffc107; color: #333; }
.cod-card__badge--pro { background: #0d6efd; }

.cod-card__icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.cod-card__title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--cod-dark);
}

.cod-card__specs {
    list-style: none;
    text-align: right;
    margin: 20px 0;
}

.cod-card__specs li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #555;
    font-size: 0.9rem;
}

.cod-card__price {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 2px dashed #eee;
    border-bottom: 2px dashed #eee;
}

.cod-card__price-amount {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--cod-primary);
    direction: ltr;
    display: inline-block;
}

.cod-card__price-period {
    display: block;
    font-size: 0.8rem;
    color: var(--cod-gray);
}

.cod-card__btn {
    display: block;
    background: var(--cod-primary);
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 30px;
    font-weight: bold;
    transition: var(--transition);
}

.cod-card__btn:hover {
    background: var(--cod-primary-dark);
}

/* ========== نسخه‌ها ========== */
.cod-versions-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.cod-versions-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cod-versions-header {
    text-align: center;
    margin-bottom: 40px;
}

.cod-versions-header h3 {
    font-size: 1.8rem;
    color: var(--cod-dark);
}

.cod-versions-tabs {
    display: flex;
    flex-wrap: wrap;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.cod-versions-tabs input[type="radio"] {
    display: none;
}

.cod-tabs-labels {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    background: #f1f5f9;
}

.cod-tab-label {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.cod-tab-label:hover {
    background: #e2e8f0;
    color: var(--cod-primary);
}

#codver-mw:checked ~ .cod-tabs-labels label[for="codver-mw"],
#codver-bo:checked ~ .cod-tabs-labels label[for="codver-bo"],
#codver-mw2:checked ~ .cod-tabs-labels label[for="codver-mw2"],
#codver-warzone:checked ~ .cod-tabs-labels label[for="codver-warzone"],
#codver-other:checked ~ .cod-tabs-labels label[for="codver-other"] {
    background: white;
    color: var(--cod-primary);
    border-bottom-color: var(--cod-primary);
}

.cod-tab-content {
    display: none;
    padding: 40px;
    width: 100%;
}

#codver-mw:checked ~ .cod-tab-content[data-tab="mw"],
#codver-bo:checked ~ .cod-tab-content[data-tab="bo"],
#codver-mw2:checked ~ .cod-tab-content[data-tab="mw2"],
#codver-warzone:checked ~ .cod-tab-content[data-tab="warzone"],
#codver-other:checked ~ .cod-tab-content[data-tab="other"] {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cod-tab-inner {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.cod-tab-text {
    flex: 1;
}

.cod-tab-text h4 {
    font-size: 1.5rem;
    color: var(--cod-primary);
    margin-bottom: 15px;
}

.cod-tab-text p {
    color: #334155;
    line-height: 1.8;
}

.cod-tab-tags {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cod-tab-tags span {
    background: #e2e8f0;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.cod-tab-image {
    flex: 0.8;
    text-align: center;
}

.cod-tab-image img {
    max-width: 100%;
    border-radius: 16px;
}

.cod-version-list {
    list-style: none;
    text-align: right;
    margin: 20px 0;
}

.cod-version-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.cod-request-btn {
    display: inline-block;
    background: var(--cod-primary);
    color: white;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 30px;
    transition: var(--transition);
}

.cod-request-btn:hover {
    background: var(--cod-primary-dark);
}

/* ========== ویژگی‌ها ========== */
.cod-features {
    padding: 80px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}

.cod-features__header {
    text-align: center;
    margin-bottom: 50px;
}

.cod-features__header h2 {
    color: white;
    font-size: 2rem;
}

.cod-features__header p {
    color: #ccc;
}

.cod-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.cod-feature {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.cod-feature:hover {
    background: rgba(230,57,70,0.15);
    transform: translateY(-5px);
}

.cod-feature__icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.cod-feature h3 {
    color: white;
    margin-bottom: 10px;
}

.cod-feature p {
    color: #aaa;
    font-size: 0.9rem;
}

/* ========== سئو ========== */
.cod-seo {
    padding: 60px 0;
    background: white;
}

.cod-seo__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.cod-seo__block {
    background: var(--cod-bg-light);
    padding: 25px;
    border-radius: var(--radius);
    border-right: 4px solid var(--cod-primary);
}

.cod-seo__block h3 {
    margin-bottom: 12px;
    color: var(--cod-dark);
}

.cod-seo__block p {
    color: #555;
    line-height: 1.7;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .cod-hero__content {
        flex-direction: column;
        text-align: center;
    }
    
    .cod-hero__text h1 {
        font-size: 2rem;
    }
    
    .cod-plans__grid {
        grid-template-columns: 1fr;
    }
    
    .cod-tab-label {
        font-size: 0.8rem;
        padding: 10px;
    }
    
    .cod-tab-content {
        padding: 20px;
    }
    
    .cod-tab-inner {
        flex-direction: column;
    }
}

/* ========================================
   استایل اسکلت لودینگ (Skeleton Loading)
   ======================================== */

.skeleton-card {
    background: white;
    border-radius: 24px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.skeleton-badge {
    width: 80px;
    height: 25px;
    background: #e2e8f0;
    border-radius: 20px;
    margin: 0 auto 15px auto;
}

.skeleton-icon {
    width: 50px;
    height: 50px;
    background: #e2e8f0;
    border-radius: 50%;
    margin: 0 auto 15px auto;
}

.skeleton-title {
    width: 120px;
    height: 28px;
    background: #e2e8f0;
    border-radius: 8px;
    margin: 0 auto 20px auto;
}

.skeleton-specs {
    margin: 20px 0;
}

.skeleton-line {
    height: 20px;
    background: #e2e8f0;
    border-radius: 8px;
    margin: 8px auto;
}

.skeleton-line:nth-child(1) { width: 90%; }
.skeleton-line:nth-child(2) { width: 85%; }
.skeleton-line:nth-child(3) { width: 80%; }
.skeleton-line:nth-child(4) { width: 88%; }
.skeleton-line:nth-child(5) { width: 82%; }
.skeleton-line:nth-child(6) { width: 75%; }

.skeleton-price {
    width: 100px;
    height: 35px;
    background: #e2e8f0;
    border-radius: 8px;
    margin: 20px auto;
}

.skeleton-btn {
    width: 100%;
    height: 45px;
    background: #e2e8f0;
    border-radius: 30px;
}