/**
 * Modern Pricing Table - Price.html Şablonu
 * Üstte paket kartları, altta özellik karşılaştırma tablosu
 */

/* Reset & Base */
.pricing-modern * {
    box-sizing: border-box;
    font-family: Inter, system-ui, sans-serif;
    font-size: 12px;
    ;
}

.pricing-modern {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* Header */
.pricing-modern .pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-modern .pricing-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #000;
}

.pricing-modern .pricing-header p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* Plans Container - Feature table ile aynı grid yapısı */
.pricing-modern .pricing-plans-wrapper {
    display: grid;
    grid-template-columns: 2fr repeat(var(--plan-count, 3), 1fr);
    gap: 0 16px;
    margin-bottom: -1px;
    background: #fff;
    padding-top: 16px;
    padding-bottom: 8px;
    transition: box-shadow 0.2s ease, padding 0.2s ease;
}

/* Sticky durumunda */
.pricing-modern .pricing-plans-wrapper.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;

}

/* Sticky placeholder - sticky olunca boşluk bırakmak için */
.pricing-modern .pricing-plans-placeholder {
    display: none;
}

.pricing-modern .pricing-plans-placeholder.active {
    display: block;
}

/* Boş sol alan (özellik kolonu genişliğinde) */


/* Plans Grid - Sağ taraftaki kartlar */
.pricing-modern .pricing-plans {
    display: contents;
}

/* 3 plan için wrapper */
.pricing-modern .pricing-plans-wrapper.cols-3 {
    grid-template-columns: 2fr 1fr 1fr 1fr;
}

/* 4 plan için wrapper */
.pricing-modern .pricing-plans-wrapper.cols-4 {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
}

/* Plan Card */
.pricing-modern .plan {
    border: 1px solid #f1f1f1;

    padding: 20px;
    text-align: left;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
}

.pricing-modern .plan:hover {
    border-color: #d1d5db;
}

.pricing-modern .plan.popular {
    border: 1px solid #000;

}

/* Badge */
.pricing-modern .badge {
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #000;
    border-radius: 20px;
    padding: 4px 10px;
    display: inline-block;
    margin-bottom: 4px;
    background: transparent;
    color: #000;
}

/* Plan Name */
.pricing-modern .plan h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 8px 0;
    color: #000;
}

/* Plan Description */
.pricing-modern .plan .plan-desc,
.pricing-modern .plan .plan-description {
    font-size: 13px;
    color: #6b7280;
    margin: 8px 0 0 0;
    line-height: 1.5;
}

/* Price */
.pricing-modern .price {
    font-size: 26px;
    font-weight: 700;
    color: #000;

}

.pricing-modern .price .currency {
    font-size: 18px;
}

.pricing-modern .price .period {
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
}

/* Price Info */
.pricing-modern .price-info {
    margin: 1px 0 10px 0px;
}

.pricing-modern .old-price {
    font-size: 13px;
    text-decoration: line-through;
    color: #9ca3af;
    margin-right: 8px;
}

.pricing-modern .yearly-price {
    font-size: 15px;
    color: #000;
}

/* Free Price */
.pricing-modern .price-free {
    font-size: 26px;
    font-weight: 700;
    color: #000;
    margin: 8px 0;
}

.pricing-modern .price-period {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* Button */
.pricing-modern .btn {
    margin-top: 12px;
    padding: 10px 16px;
    border: 1px solid #000;
    background: #000;
    color: #fff !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

.pricing-modern .btn:hover {
    background: #333;
}

/* ========================================
   FEATURES TABLE - Özellik Karşılaştırma
   ======================================== */

.pricing-modern .features-table {
    margin-top: 0px;
    padding: 0px 0;
}

.pricing-modern .features-table h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
}

/* Feature Row */
.pricing-modern .feature-row {
    display: grid;
    grid-template-columns: 2fr repeat(var(--plan-count, 3), 1fr);
    padding: 24px 0;
    border-top: 1px solid #f1f1f1;
    align-items: center;
    gap: 0 16px;
}

/* 3 plan için */
.pricing-modern .features-table.cols-3 .feature-row {
    grid-template-columns: 2fr 1fr 1fr 1fr;
}

/* 4 plan için */
.pricing-modern .features-table.cols-4 .feature-row {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
}

/* Feature Info (Sol Kolon) */
.pricing-modern .feature-info {
    padding-right: 20px;
}

.pricing-modern .feature-title {
    font-weight: 600;
    font-size: 15px;
    color: #000;
    margin: 0;
}

.pricing-modern .feature-desc {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
    line-height: 1.4;
}

/* Feature Value (Sağ Kolonlar) */
.pricing-modern .feature-value {
    text-align: center;
    font-size: 16px;
    color: #000;
}


.pricing-modern .feature-value .check {
    color: #6635ee;
    font-size: 23px;
}

.pricing-modern .feature-value .cross {
    color: #c0c0c0;
    font-size: 23px;
}

.pricing-modern .feature-value .dash {
    color: #9ca3af;
}

/* ========================================
   MOBILE FEATURES - Mobil Görünüm
   ======================================== */

.pricing-modern .mobile-features {
    display: none;
    margin-top: 16px;
    border-top: 1px solid #000;
    padding-top: 12px;
}

.pricing-modern .mobile-features .mobile-feature {
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
    font-size: 14px;
}

.pricing-modern .mobile-features .mobile-feature strong {
    display: block;
    margin-bottom: 2px;
}

.pricing-modern .plan.active .mobile-features {
    display: block;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 992px) {
    .pricing-modern .pricing-plans-wrapper {
        display: grid;
        grid-template-columns: 1fr;
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        z-index: auto !important;
    }

    .pricing-modern .pricing-plans-wrapper.is-sticky {
        position: static !important;
        box-shadow: none !important;
    }

    .pricing-modern .pricing-plans-placeholder,
    .pricing-modern .pricing-plans-placeholder.active {
        display: none !important;
        height: 0 !important;
    }

    .pricing-modern .pricing-plans-wrapper .empty-col {
        display: none;
    }

    .pricing-modern .pricing-plans-wrapper.cols-3,
    .pricing-modern .pricing-plans-wrapper.cols-4 {
        grid-template-columns: 1fr;
    }

    .pricing-modern .features-table {
        display: none;
    }

    .pricing-modern .plan {
        border: 1px solid #f1f1f1;
        border-bottom: 1px solid #f1f1f1;
    }

    .pricing-modern .plan.popular {
        border: 2px solid #000;
    }

    .pricing-modern .plan.active .mobile-features {
        display: block;
    }
}

@media (max-width: 768px) {
    .pricing-modern {
        padding: 16px 12px;
    }

    .pricing-modern .pricing-header h1 {
        font-size: 24px;
    }

    .pricing-modern .price {
        font-size: 22px;
    }
}