/* ===== AFFILIATES PAGE ===== */

/* Hero */
.affiliates-hero-section {
    background: linear-gradient(135deg, #050508 0%, #0e0e16 50%, #050508 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    padding: 160px 0 100px;
    position: relative;
    text-align: center;
}

.affiliates-hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 60%,
        rgba(65, 105, 225, 0.12) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.affiliates-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.affiliates-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #5b7fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding: 6px 16px;
    background: rgba(91, 127, 255, 0.1);
    border: 1px solid rgba(91, 127, 255, 0.25);
    border-radius: 50px;
}

.affiliates-hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 18px;
    line-height: 1.15;
}

.affiliates-hero-content p {
    font-size: 17px;
    color: var(--text);
    line-height: 1.8;
    margin: 0;
}

/* ===== LIST SECTION ===== */
.affiliates-list-section {
    background: var(--bg);
    padding: 80px 0 100px;
    position: relative;
}

.affiliates-list-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 30%,
        rgba(65, 105, 225, 0.07) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.affiliates-list-section .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ===== AFFILIATE CARD ===== */
.affiliate-card {
    background: linear-gradient(
        135deg,
        rgba(12, 12, 20, 0.98) 0%,
        rgba(16, 16, 28, 0.9) 100%
    );
    border: 1px solid rgba(91, 127, 255, 0.15);
    border-radius: 20px;
    padding: 40px 45px;
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 40px;
    align-items: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Subtle shimmer line on top on hover */
.affiliate-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #5b7fff, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.affiliate-card:hover {
    border-color: rgba(91, 127, 255, 0.4);
    box-shadow: 0 15px 50px rgba(65, 105, 225, 0.15);
    transform: translateY(-4px);
}

.affiliate-card:hover::before {
    opacity: 1;
}

/* Logo */
.affiliate-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(91, 127, 255, 0.12);
    border-radius: 14px;
    padding: 20px;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.affiliate-card:hover .affiliate-logo {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(91, 127, 255, 0.25);
}

.affiliate-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.affiliate-card:hover .affiliate-logo img {
    opacity: 1;
}

.affiliate-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.affiliate-logo-placeholder i {
    font-size: 36px;
    color: rgba(91, 127, 255, 0.4);
}

/* Content */
.affiliate-content {
    flex: 1;
    min-width: 0;
}

.affiliate-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.affiliate-card:hover .affiliate-content h2 {
    color: #7b9fff;
}

.affiliate-description {
    font-size: 14px;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 18px;
}

.affiliate-description p {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.75;
}

/* Meta row */
.affiliate-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.affiliate-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: rgba(160, 176, 255, 0.7);
}

.affiliate-meta-item i {
    font-size: 12px;
    color: #5b7fff;
    flex-shrink: 0;
}

.affiliate-meta-item a {
    color: rgba(160, 176, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.affiliate-meta-item a:hover {
    color: #5b7fff;
}

/* Action */
.affiliate-action {
    flex-shrink: 0;
}

.affiliate-visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid rgba(91, 127, 255, 0.35);
    border-radius: 50px;
    color: rgba(160, 176, 255, 0.8);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.affiliate-visit-btn i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.affiliate-visit-btn:hover {
    background: linear-gradient(135deg, #4169e1 0%, #5b7fff 100%);
    border-color: #5b7fff;
    color: white;
    box-shadow: 0 8px 25px rgba(65, 105, 225, 0.4);
}

.affiliate-visit-btn:hover i {
    transform: translateX(3px) translateY(-3px);
}

/* Empty state */
.affiliates-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text);
}

.affiliates-empty i {
    font-size: 48px;
    color: rgba(91, 127, 255, 0.3);
    margin-bottom: 16px;
    display: block;
}

.affiliates-empty p {
    font-size: 16px;
    color: var(--text);
    margin: 0;
}

/* ===== ARABIC ===== */
[lang="ar"] .affiliates-hero-content h1 {
    font-size: 48px;
}

[lang="ar"] .affiliates-hero-content p {
    font-size: 15px;
}

[lang="ar"] .affiliate-content h2 {
    font-size: 20px;
}

[lang="ar"] .affiliate-description,
[lang="ar"] .affiliate-description p {
    font-size: 13px;
    line-height: 1.9;
}

[lang="ar"] .affiliate-visit-btn {
    font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .affiliate-card {
        grid-template-columns: 160px 1fr;
        grid-template-rows: auto auto;
        gap: 25px;
    }

    .affiliate-action {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .affiliates-hero-content h1 {
        font-size: 44px;
    }
}

@media (max-width: 768px) {
    .affiliates-hero-section {
        padding: 130px 0 70px;
    }

    .affiliates-hero-content h1 {
        font-size: 36px;
    }

    .affiliates-hero-content p {
        font-size: 15px;
    }

    .affiliates-list-section {
        padding: 60px 0 80px;
    }

    .affiliate-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        padding: 30px 25px;
        gap: 20px;
    }

    .affiliate-logo {
        width: 160px;
        height: 80px;
    }

    .affiliate-action {
        grid-column: 1;
    }

    .affiliate-visit-btn {
        width: 100%;
        justify-content: center;
    }

    .affiliate-meta {
        gap: 12px;
    }

    [lang="ar"] .affiliates-hero-content h1 {
        font-size: 32px;
    }
}
