/*
* Pricing Table Base Styles
* Version: 1.0.0
*/

/* ==========================================================================
   1. Base Container Styles
   ========================================================================== */
.pricing-table-container {
    display: grid;
    grid-template-columns: repeat(var(--grid-columns, 3), 1fr);
    gap: var(--grid-gap, 30px);
    width: 100%;
}

/* ==========================================================================
   2. Individual Table Base Styles
   ========================================================================== */
.pricing-table {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
    overflow: hidden;
    text-align: center;
    margin: 0 auto;
    height: 100%;
}

/* ==========================================================================
   3. Table Header & Pricing Styles
   ========================================================================== */
.pricing-table .price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 20px 0;
}

.pricing-table h3 {
    margin: 0 0 20px;
}

.pricing-table .current-price {
    font-size: 2em;
    font-weight: bold;
}

.pricing-table .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.8em;
}

.pricing-table .billing-period {
    color: #666;
    font-size: 0.9em;
}



/* ==========================================================================
   4. Feature List Styles
   ========================================================================== */

.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin: 10px 0;
    padding: 5px 0;
}

.feature-indicator {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Feature availability states */
.feature-yes .feature-indicator {
    color: #4CAF50;
}

.feature-no .feature-indicator {
    color: #F44336;
}

.feature-partial .feature-indicator {
    color: #FFC107;
}

/* Feature Groups Collapsible */
.feature-group {
    margin: 15px 0;
}

.feature-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px;
    background: rgba(0,0,0,0.03);
    border-radius: 6px;
}

.feature-group-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.feature-group.expanded .feature-group-content {
    max-height: 1000px;
}

.feature-group-toggle {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.feature-group.expanded .feature-group-toggle {
    transform: rotate(90deg);
}

/* Feature Badges */
.feature-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-left: 8px;
}

.feature-badge-new {
    background: #2ecc71;
    color: white;
}

.feature-badge-improved {
    background: #3498db;
    color: white;
}

.feature-badge-limited {
    background: #f1c40f;
    color: #2c3e50;
}

/* Feature Search and Filter */
.feature-search-container {
    margin: 15px 0;
}

.feature-search {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.feature-filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.feature-filter-tag {
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.feature-filter-tag.active {
    background: #3498db;
    color: white;
}

/* Interactive Feature Details */
.feature-detail-trigger {
    cursor: pointer;
    position: relative;
    padding-right: 20px;
}

.feature-detail-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    padding: 15px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 100;
    display: none;
}

.feature-detail-trigger:hover .feature-detail-content {
    display: block;
}

.feature-comparison-preview {
    font-size: 0.9em;
    color: #666;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-top: 5px;
}



/* ==========================================================================
   5. Feature Categories & Groups
   ========================================================================== */
.feature-category {
    margin: 20px 0;
}

.feature-category h4 {
    margin: 20px 0 10px;
    font-size: 1.1em;
    color: #666;
}

/* ==========================================================================
   6. Tooltips & Interactive Elements
   ========================================================================== */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip:hover:after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    white-space: nowrap;
    z-index: 1000;
}

/* ==========================================================================
   7. Color Schemes
   ========================================================================== */
.color-scheme-light {
    --primary-color: #ffffff;
    --secondary-color: #f5f5f5;
    --text-color: #333333;
}

.color-scheme-dark {
    --primary-color: #333333;
    --secondary-color: #444444;
    --text-color: #ffffff;
}

/* ==========================================================================
   8. Animation & Transitions
   ========================================================================== */
.pricing-table {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.elementor-animation-grow:hover {
    transform: scale(1.05);
}

.elementor-animation-float:hover {
    transform: translateY(-8px);
}

/* ==========================================================================
   9. Utilities & Helper Classes
   ========================================================================== */
.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

/* ==========================================================================
   10. Responsive Design
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .pricing-table-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 767px) {
    .pricing-table-container {
        grid-template-columns: 1fr;
    }
    
    .pricing-table {
        padding: 15px;
    }

    .pricing-table .current-price {
        font-size: 1.75em;
    }
}