/* Reusable Pricing Section Styles */

/* Main Pricing Section Container */
.xyz-pricing-section {
    padding: 60px 0;
    background-color: var(--white);
}

.xyz-pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Pricing Header */
.xyz-pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.xyz-pricing-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.xyz-pricing-title span {
    color: var(--primary-color);
}

/* Container width adjustment */
.xyz-theme-container {
    max-width: 1400px; /* Increased from 1200px to accommodate all 4 cards */
    margin: 0 auto;
    padding: 0 66px !important;
    width: 100%;
}

/* Pricing Grid - Force 4 columns */
.xyz-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr)); /* Set minimum width for cards */
    gap: 20px; /* Reduced gap to prevent wrapping */
    margin-top: 40px;
    width: 100%;
}

/* Individual Pricing Card */
.xyz-pricing-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-width: 0; /* Prevents content from forcing card wider */
}

.xyz-pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Featured Card */
.xyz-pricing-card.featured {
    border: 2px solid var(--primary-color);
}

.xyz-pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary-color);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Card Header */
.xyz-pricing-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.xyz-pricing-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Price Display */
.xyz-pricing-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 25px;
}

.xyz-pricing-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.xyz-pricing-period {
    font-size: 1rem;
    color: var(--text-light);
    margin-left: 5px;
}

/* Features List */
.xyz-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.xyz-pricing-feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 0.9rem;
}

.xyz-pricing-feature::before {
    content: '✓';
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: bold;
}

/* CTA Button */
.xyz-pricing-button {
    display: inline-block;
    width: 100%;
    padding: 12px 25px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.xyz-pricing-button:hover {
    background: var(--primary-dark);
    color: white;
}

/* Mobile Breakpoint */
@media (max-width: 767px) {
    .xyz-pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .xyz-theme-container {
        padding: 0 15px;
    }

    .xyz-pricing-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .xyz-pricing-name {
        font-size: 20px;
    }

    .xyz-pricing-price {
        font-size: 30px;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 375px) {
    .xyz-pricing-grid {
        padding: 0 10px;
    }

    .xyz-pricing-card {
        padding: 15px;
    }
}

/* Usage Instructions for WordPress:
1. Add this CSS to your theme's stylesheet or through a custom CSS plugin
2. Use the following HTML structure in your WordPress page/post:

<div class="xyz-pricing-section">
    <div class="xyz-pricing-container">
        <div class="xyz-pricing-header">
            <h2 class="xyz-pricing-title">XYZ <span>Theme</span> Club Memberships</h2>
        </div>
        
        <div class="xyz-pricing-grid">
            <!-- Monthly Plan -->
            <div class="xyz-pricing-card">
                <h3 class="xyz-pricing-name">Monthly</h3>
                <p class="xyz-pricing-description">Get access to all our web development products for one month with full support.</p>
                <div class="xyz-pricing-price">
                    <span class="xyz-pricing-amount">$19</span>
                    <span class="xyz-pricing-period">/month</span>
                </div>
                <ul class="xyz-pricing-features">
                    <li class="xyz-pricing-feature">Access to all products</li>
                    <li class="xyz-pricing-feature">Monthly updates</li>
                    <li class="xyz-pricing-feature">Email support</li>
                </ul>
                <a href="#" class="xyz-pricing-button">Get Started</a>
            </div>

            <!-- Featured Plan -->
            <div class="xyz-pricing-card featured">
                <h3 class="xyz-pricing-name">Lifetime</h3>
                <p class="xyz-pricing-description">Pay once and get lifetime access to all current and future products.</p>
                <div class="xyz-pricing-price">
                    <span class="xyz-pricing-amount">$199</span>
                    <span class="xyz-pricing-period">/one-time</span>
                </div>
                <ul class="xyz-pricing-features">
                    <li class="xyz-pricing-feature">Lifetime access</li>
                    <li class="xyz-pricing-feature">All future updates</li>
                    <li class="xyz-pricing-feature">Priority support</li>
                </ul>
                <a href="#" class="xyz-pricing-button">Get Started</a>
            </div>

            <!-- Add more pricing cards as needed -->
        </div>
    </div>
</div>
*/ 