/* =======================================
   FITNESS CLUB MEMBERSHIP PACKAGES PAGE
   ======================================= */

/* ===== MAIN CONTENT AREA STYLING ===== */
.site-main.content-area.space {
    background: linear-gradient(180deg, #0f0f0f 0%, #202020 50%, #0f0f0f 100%) !important;
    min-height: 100vh;
    padding: 0 !important;
    position: relative;
    overflow-x: hidden;
}

/* إضافة تأثير خلفية ديناميكية */
.site-main.content-area.space::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(93, 214, 44, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(51, 116, 24, 0.07) 0%, transparent 50%);
    animation: membership-atmosphere 20s ease-in-out infinite alternate;
    z-index: 1;
    pointer-events: none;
}

/* ===== CONTAINER ENHANCEMENTS ===== */
.container.default {
    max-width: 1400px !important;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    z-index: 2;
}

/* ===== PAGE LAYOUT ===== */
.page-layout {
    background: rgba(15, 15, 15, 0.8);
    border-radius: 30px;
    padding: 60px 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(93, 214, 44, 0.1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

/* ===== SECTION HEADINGS STYLING ===== */
.wp-block-heading.has-text-align-center {
    color: #5DD62C !important;
    font-size: 36px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 50px !important;
    text-align: center;
    position: relative;
}

/* إضافة خط تحت العناوين */
.wp-block-heading.has-text-align-center::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #337418, #5DD62C, #337418);
    border-radius: 2px;
}

/* ===== MEMBERSHIP CARDS CONTAINER ===== */
.wp-block-columns.alignwide.pms-pt-gap {
    gap: 30px !important;
    margin: 0 0 80px 0 !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== INDIVIDUAL MEMBERSHIP CARDS ===== */
.wp-block-column.pms-pt-border-1.pms-pt-card-1 {
    background: linear-gradient(145deg, rgba(32, 32, 32, 0.9), rgba(15, 15, 15, 0.9)) !important;
    border: 2px solid rgba(93, 214, 44, 0.3) !important;
    border-radius: 25px !important;
    padding: 40px 30px !important;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

/* تأثير الإضاءة عند الـ hover */
.wp-block-column.pms-pt-border-1.pms-pt-card-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(93, 214, 44, 0.05), rgba(51, 116, 24, 0.03));
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 23px;
    z-index: 1;
}

.wp-block-column.pms-pt-border-1.pms-pt-card-1:hover::before {
    opacity: 1;
}

/* تأثير الـ hover على الكروت */
.wp-block-column.pms-pt-border-1.pms-pt-card-1:hover {
    transform: translateY(-10px);
    border-color: #5DD62C !important;
    box-shadow: 0 25px 60px rgba(93, 214, 44, 0.2), 0 0 30px rgba(93, 214, 44, 0.1);
}

/* إضافة أيقونات للحزم */
.wp-block-column.pms-pt-border-1.pms-pt-card-1::after {
    content: '💪';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    background: linear-gradient(135deg, #5DD62C, #337418);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.wp-block-column.pms-pt-border-1.pms-pt-card-1:hover::after {
    opacity: 1;
    transform: scale(1.1);
}

/* ===== PACKAGE TITLES STYLING ===== */
.pms-pt-text-title.has-text-color {
    color: #f8f8f8 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

/* ===== PRICE STYLING ===== */
.pms-pt-text-price.has-text-color {
    color: #5DD62C !important;
    font-size: 32px !important;
    font-weight: 900 !important;
    margin: 20px 0 !important;
    position: relative;
    z-index: 2;
}

.pms-pt-text-duration {
    color: #f8f8f8 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    opacity: 0.8;
}

/* ===== DESCRIPTION TEXT ===== */
.pms-pt-text-description {
    color: #f8f8f8 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* ===== SEPARATOR STYLING ===== */
.pms-pt-separator.is-style-dots {
    border-color: rgba(93, 214, 44, 0.3) !important;
    margin: 30px 0 !important;
    position: relative;
    z-index: 2;
}

/* ===== FEATURES LIST STYLING ===== */
.pms-pt-list {
    position: relative;
    z-index: 2;
    margin: 20px 0 30px 0 !important;
}

.pms-pt-list li {
    color: #f8f8f8 !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
}

/* إضافة أيقونات مخصصة للـ list items */
.pms-pt-list li::before {
    content: '✓';
    position: absolute;
    left:-25px;
    top: 6px;
    color: #5DD62C;
    font-weight: bold;
    font-size: 16px;
}

/* ===== BUTTON STYLING ===== */
.wp-block-button.has-custom-width {
    position: relative;
    z-index: 2;
    margin-top: 30px !important;
}

.wp-block-button__link.wp-element-button {
    background: linear-gradient(135deg, #5DD62C, #337418) !important;
    color: #0f0f0f !important;
    border: none !important;
    border-radius: 15px !important;
    padding: 15px 30px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    box-shadow: 0 8px 25px rgba(93, 214, 44, 0.3);
}

.wp-block-button__link.wp-element-button:hover {
    background: linear-gradient(135deg, #337418, #5DD62C) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(93, 214, 44, 0.5);
}

.wp-block-button__link.wp-element-button:active {
    transform: translateY(0);
}

/* ===== PREMIUM PACKAGE HIGHLIGHTING ===== */
.wp-block-column.pms-pt-border-1.pms-pt-card-1:nth-child(2) {
    border-color: rgba(255, 215, 0, 0.5) !important;
    transform: scale(1.05);
}

.wp-block-column.pms-pt-border-1.pms-pt-card-1:nth-child(2)::after {
    content: '⭐';
}

.wp-block-column.pms-pt-border-1.pms-pt-card-1:nth-child(2):hover {
    border-color: #FFD700 !important;
    box-shadow: 0 25px 60px rgba(255, 215, 0, 0.3), 0 0 30px rgba(255, 215, 0, 0.2);
}

/* ===== PACKAGE TYPE ICONS ===== */
/* Essential Package */
.wp-block-columns:nth-of-type(1) .wp-block-column:nth-child(1)::after { content: '👥'; }
.wp-block-columns:nth-of-type(1) .wp-block-column:nth-child(2)::after { content: '👥'; }
.wp-block-columns:nth-of-type(1) .wp-block-column:nth-child(3)::after { content: '👥'; }

/* Friends Package */
.wp-block-columns:nth-of-type(2) .wp-block-column:nth-child(1)::after { content: '👭'; }
.wp-block-columns:nth-of-type(2) .wp-block-column:nth-child(2)::after { content: '👭'; }
.wp-block-columns:nth-of-type(2) .wp-block-column:nth-child(3)::after { content: '👭'; }

/* Single Package */
.wp-block-columns:nth-of-type(3) .wp-block-column:nth-child(1)::after { content: '🏋️'; }
.wp-block-columns:nth-of-type(3) .wp-block-column:nth-child(2)::after { content: '🏋️'; }
.wp-block-columns:nth-of-type(3) .wp-block-column:nth-child(3)::after { content: '🏋️'; }

/* ===== SPACER ENHANCEMENTS ===== */
.wp-block-spacer {
    background: linear-gradient(90deg, transparent, rgba(93, 214, 44, 0.1), transparent);
    margin: 60px 0 !important;
}

/* ===== LOADING ANIMATIONS ===== */
.wp-block-column.pms-pt-border-1.pms-pt-card-1 {
    opacity: 0;
    transform: translateY(50px);
    animation: package-card-load 0.8s ease-out forwards;
}

/* تأخير مختلف لكل كارت */
.wp-block-columns:nth-of-type(1) .wp-block-column:nth-child(1) { animation-delay: 0.1s; }
.wp-block-columns:nth-of-type(1) .wp-block-column:nth-child(2) { animation-delay: 0.2s; }
.wp-block-columns:nth-of-type(1) .wp-block-column:nth-child(3) { animation-delay: 0.3s; }

.wp-block-columns:nth-of-type(2) .wp-block-column:nth-child(1) { animation-delay: 0.4s; }
.wp-block-columns:nth-of-type(2) .wp-block-column:nth-child(2) { animation-delay: 0.5s; }
.wp-block-columns:nth-of-type(2) .wp-block-column:nth-child(3) { animation-delay: 0.6s; }

.wp-block-columns:nth-of-type(3) .wp-block-column:nth-child(1) { animation-delay: 0.7s; }
.wp-block-columns:nth-of-type(3) .wp-block-column:nth-child(2) { animation-delay: 0.8s; }
.wp-block-columns:nth-of-type(3) .wp-block-column:nth-child(3) { animation-delay: 0.9s; }

/* ===== ANIMATIONS ===== */
@keyframes membership-atmosphere {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    100% { transform: translateX(30px) translateY(-20px) rotate(2deg); }
}

@keyframes package-card-load {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .container.default {
        padding: 40px 15px;
    }
    
    .page-layout {
        padding: 40px 30px;
        border-radius: 20px;
    }
    
    .wp-block-columns.alignwide.pms-pt-gap {
        gap: 25px !important;
    }
    
    .wp-block-column.pms-pt-border-1.pms-pt-card-1 {
        min-width: 280px;
        padding: 35px 25px !important;
    }
}

@media (max-width: 768px) {
    .wp-block-heading.has-text-align-center {
        font-size: 28px !important;
        letter-spacing: 2px;
    }
    
    .wp-block-columns.alignwide.pms-pt-gap {
        flex-direction: column;
        align-items: center;
        gap: 20px !important;
    }
    
    .wp-block-column.pms-pt-border-1.pms-pt-card-1 {
        width: 100%;
        max-width: 350px;
        margin-bottom: 20px;
        transform: none !important;
    }
    
    .wp-block-column.pms-pt-border-1.pms-pt-card-1:nth-child(2) {
        transform: none !important;
    }
    
    .page-layout {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .pms-pt-text-title.has-text-color {
        font-size: 20px !important;
    }
    
    .pms-pt-text-price.has-text-color {
        font-size: 28px !important;
    }
}

@media (max-width: 480px) {
    .container.default {
        padding: 20px 10px;
    }
    
    .wp-block-heading.has-text-align-center {
        font-size: 24px !important;
        letter-spacing: 1px;
    }
    
    .wp-block-column.pms-pt-border-1.pms-pt-card-1 {
        padding: 30px 20px !important;
        border-radius: 20px !important;
        max-width: 100%;
    }
    
    .wp-block-column.pms-pt-border-1.pms-pt-card-1::after {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.wp-block-column.pms-pt-border-1.pms-pt-card-1,
.wp-block-button__link.wp-element-button {
    will-change: transform;
}

/* Accessibility - Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .wp-block-column.pms-pt-border-1.pms-pt-card-1,
    .wp-block-button__link.wp-element-button,
    .site-main.content-area.space::before {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== ADDITIONAL ENHANCEMENTS ===== */


/* إضافة تأثير "Most Popular" للحزمة الوسطى */
/* .wp-block-columns .wp-block-column:nth-child(2) {
    position: relative;
}

.wp-block-columns .wp-block-column:nth-child(2)::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: #0f0f0f;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 3;
} */

/* =============================================== */
/* عام لكل الباقات */
.wp-block-columns .wp-block-column {
    position: relative;
    overflow: hidden; /* يمنع الخلفية من الخروج بره العنصر */
    transition: transform 0.3s ease;
}

.wp-block-columns .wp-block-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0; /* أهم حاجة: الخلفية ورا الكلام */
}

/* عند الـ hover */
.wp-block-columns .wp-block-column:hover::before {
    opacity: 1;
}

/* نخلي النصوص دايمًا فوق الخلفية */
.wp-block-columns .wp-block-column * {
    position: relative;
    z-index: 1;
}

/* تأثير خفيف عند hover */
.wp-block-columns .wp-block-column:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* الوسم "Most Popular" للبنل الوسطى */
.wp-block-columns .wp-block-column:nth-child(2)::after {
    content: 'MOST POPULAR';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
background: linear-gradient(135deg, rgba(93, 214, 44, 0.3), rgba(51, 116, 24, 0.3));
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 2; /* فوق الخلفية */
}


/* تحسين الخطوط والقراءة */
.fitmas-page-content * {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* إضافة تأثير نبض للأسعار */
.pms-pt-text-price.has-text-color {
    animation: price-pulse 3s ease-in-out infinite;
}

@keyframes price-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}