﻿/* فاصله برای محتوای صفحه */
.content {
    padding-top: 80px; /* ارتفاع هدر */
}

/* ---------------- PLANS (COMMON) ---------------- */
.plans-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
}

.plan-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    flex: 1 1 280px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

    .plan-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    }

.plan-header {
    padding: 2rem 1rem 1rem;
    text-align: center;
    border-radius: 16px;
    background-size: 300% 300%;
    position: relative;
    overflow: hidden;
}

    .plan-header::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 120deg, transparent 0%, rgba(255,255,255,0.06) 32%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0.06) 68%, transparent 100% );
        transform: translateX(-130%) skewX(-18deg);
        animation: sparkle 8s ease-in-out infinite;
        pointer-events: none;
    }

.plan-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

/* ریبون */
.plan-ribbon {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #ff9800, #ffc107);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255,255,255,0.15);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    margin: 1rem 0;
}

/* ---------------- FEATURES ---------------- */
.plan-features {
    padding: 1rem 2rem 2rem;
    flex-grow: 1;
}

    .plan-features ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .plan-features li {
        margin: 0.5rem 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 0.95rem;
    }

.feature-icon {
    margin-left: 0.5rem;
    font-size: 1.2rem;
}

/* ---------------- GIFTS ---------------- */
.plan-gifts {
    padding: 0 2rem 1.5rem;
}

.gifts-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .gifts-title i {
        font-size: 1.3rem;
        color: #e91e63;
    }

.plan-gifts ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.plan-gifts li {
    display: flex;
    align-items: center;
    margin: 0.4rem 0;
    font-size: 0.95rem;
    gap: 0.5rem;
}

/* ---------------- BUTTONS ---------------- */
.plan-button,
.plan-link {
    font-family: IRANYekanXNoEn;
    margin: 1rem 2rem 2rem;
    padding: 0.75rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, filter 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .plan-button:hover,
    .plan-link:hover {
        transform: scale(1.05);
        filter: brightness(1.15);
    }

/* ========================================================= */
/* ======================= THEMES ========================== */
/* ========================================================= */

/* ---------------- FREE (CLEAN & MINIMAL) ---------------- */
.free .plan-header {
    background-image: linear-gradient( 135deg, #6b8f71 0%, #a7c4b0 45%, #dfeee4 100% );
    color: #1f3d2b;
    background-size: 300% 300%;
    animation: shineFree 10s ease infinite;
}

.free .plan-price {
    background: rgba(107,143,113,0.18);
    color: #1f3d2b;
}

.free .plan-button,
.free .plan-link {
    background: linear-gradient(135deg, #dfeee4, #a7c4b0);
    color: #1f3d2b;
    box-shadow: 0 4px 10px rgba(107,143,113,0.25);
}

/* ---------------- BRONZE ---------------- */
.bronze .plan-header {
    background-image: linear-gradient(135deg, #8d5524, #cd7f32, #ffb066);
    color: #fff;
    animation: shineBronze 10s ease infinite;
}

.bronze .plan-button,
.bronze .plan-link {
    background: linear-gradient(135deg, #ffb066, #cd7f32);
    color: #fff;
}

/* ---------------- SILVER ---------------- */
.silver .plan-header {
    background-image: linear-gradient(135deg, #9e9e9e, #c0c0c0, #f5f5f5);
    color: #000;
    animation: shineSilver 10s ease infinite;
}

.silver .plan-button,
.silver .plan-link {
    background: linear-gradient(135deg, #e0e0e0, #c0c0c0);
    color: #000;
}

/* ---------------- GOLD ---------------- */
.gold .plan-header {
    background-image: linear-gradient(135deg, #ffcc00, #ffd700, #fff176);
    color: #000;
    animation: shineGold 10s ease infinite;
}

.gold .plan-button,
.gold .plan-link {
    background: linear-gradient(135deg, #fff176, #ffd700);
    color: #000;
}

/* ---------------- DIAMOND ---------------- */
.diamond .plan-header {
    background-image: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    animation: shineDiamond 10s ease infinite;
}

.diamond .plan-button,
.diamond .plan-link {
    background: linear-gradient(135deg, #56ccf2, #2f80ed);
    color: #fff;
}

/* ---------------- ANIMATIONS ---------------- */
@keyframes shineFree {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes shineBronze {
    0%,100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes shineSilver {
    0%,100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes shineGold {
    0%,100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes shineDiamond {
    0%,100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes sparkle {
    0%, 18% {
        transform: translateX(-130%) skewX(-18deg);
    }

    62%, 100% {
        transform: translateX(130%) skewX(-18deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .plan-header,
    .plan-header::after {
        animation: none;
    }
}
