/* ===================================
   MODERN PLAN SWITCHER STYLES
   ===================================
   Professional and responsive plan switcher design
*/

.modern-plan-switcher-section {
    padding: 60px 0;
    background: #12063a;
    position: relative;
}

.modern-plan-switcher-section::before {
    display: none;
}

.modern-plan-switcher-section .container {
    position: relative;
    z-index: 2;
}

.modern-plan-switcher-section .section-title {
    margin-bottom: 35px;
}

.modern-plan-switcher-section .section-title h2 {
    color: #1e293b;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.modern-plan-switcher-section .section-title p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Modern Plan Switcher Grid */
.modern-plan-switcher {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.plan-tab {
    background: white;
    border-radius: 12px;
    padding: 20px 18px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #eb2b63, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.plan-tab:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(235, 43, 99, 0.2);
}

.plan-tab:hover::before {
    transform: scaleX(1);
}

.plan-tab.selected-plan {
    border-color: #eb2b63;
    background: linear-gradient(135deg, rgba(235, 43, 99, 0.02), rgba(139, 92, 246, 0.02));
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(235, 43, 99, 0.15);
}

.plan-tab.selected-plan::before {
    transform: scaleX(1);
}

/* Plan Icon */
.plan-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #eb2b63, #8b5cf6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.plan-icon i {
    font-size: 20px;
    color: white;
}

.plan-tab:hover .plan-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Plan Info */
.plan-info h4 {
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.plan-info p {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.plan-price {
    color: #eb2b63;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-block;
    padding: 6px 12px;
    background: rgba(235, 43, 99, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(235, 43, 99, 0.2);
}

/* Feature Badges */
.plan-features {
    position: absolute;
    top: 20px;
    right: 20px;
}

.feature-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.feature-badge.optimized {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.feature-badge.premium {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.feature-badge.business {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

/* Plan Details Section */
.plan-details-section {
    margin-top: 30px;
}

.plan-detail-card {
    background: white;
    border-radius: 10px;
    padding: 20px 18px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.plan-detail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(235, 43, 99, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.detail-icon i {
    font-size: 20px;
    color: #eb2b63;
}

.plan-detail-card:hover .detail-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(235, 43, 99, 0.15), rgba(139, 92, 246, 0.15));
}

.plan-detail-card h5 {
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.plan-detail-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .modern-plan-switcher {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .modern-plan-switcher-section {
        padding: 60px 0;
    }
    
    .modern-plan-switcher-section .section-title h2 {
        font-size: 2rem;
    }
    
    .modern-plan-switcher {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 40px;
    }
    
    .plan-tab {
        padding: 25px 20px;
    }
    
    .plan-icon {
        width: 50px;
        height: 50px;
    }
    
    .plan-icon i {
        font-size: 20px;
    }
    
    .plan-info h4 {
        font-size: 1.2rem;
    }
    
    .plan-detail-card {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .modern-plan-switcher-section .section-title h2 {
        font-size: 1.8rem;
    }
    
    .plan-tab {
        padding: 20px 15px;
    }
    
    .plan-info h4 {
        font-size: 1.1rem;
    }
    
    .plan-info p {
        font-size: 0.9rem;
    }
    
    .plan-price {
        font-size: 1rem;
    }
    
    .feature-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* Animation for plan switching */
@keyframes planSwitch {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.plan-switcher-plans > div {
    animation: none;
}

.plan-switcher-plans > div.plan-switch-enter {
    animation: planSwitch 0.28s ease-out;
}

/* Enhanced hover effects */
.plan-tab:hover .plan-price {
    background: rgba(235, 43, 99, 0.15);
    border-color: rgba(235, 43, 99, 0.3);
    transform: scale(1.05);
}

.plan-tab:hover .feature-badge {
    transform: scale(1.1);
}

/* Focus states for accessibility */
.plan-tab:focus {
    outline: 2px solid #eb2b63;
    outline-offset: 2px;
}

/* Loading state */
.plan-tab.loading {
    pointer-events: none;
    opacity: 0.7;
}

.plan-tab.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #eb2b63;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   Hostinger-like simplified selector
   =================================== */
.hostinger-like-selector {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.hostinger-like-selector .plan-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    box-shadow: none;
    transform: none;
}

.hostinger-like-selector .plan-tab:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: none;
}

.hostinger-like-selector .plan-tab.selected-plan {
    background: #ffffff;
    color: #111827;
    border-color: #ffffff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.16);
}

.hostinger-like-selector .plan-tab::before,
.hostinger-like-selector .plan-tab .plan-features,
.hostinger-like-selector .plan-tab .plan-info,
.hostinger-like-selector .plan-tab .plan-icon {
    display: none !important;
}

.hostinger-like-selector .plan-tab i {
    font-size: 13px;
}

.plan-selection-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 16px;
}

.selection-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.plan-page-hero {
    padding-top: calc(var(--hostcry-header-height, 72px) + 42px);
    padding-bottom: 48px;
}

/* Hero only: dark banner behind tabs — keep white headlines scoped (avoid affecting other sections) */
.modern-plan-switcher-section.plan-page-hero .section-title h2 {
    color: #ffffff;
}

.modern-plan-switcher-section.plan-page-hero .section-title p {
    color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 768px) {
    .plan-page-hero {
        padding-top: calc(var(--hostcry-header-height, 72px) + 28px);
        padding-bottom: 40px;
    }

    .hostinger-like-selector {
        justify-content: flex-start;
    }

    .hostinger-like-selector .plan-tab {
        font-size: 13px;
        padding: 9px 14px;
    }

    .plan-selection-meta {
        justify-content: flex-start;
    }

    .selection-hint {
        font-size: 13px;
    }
}

/* ---------- Plan page: intro copy (light band; explicit colors beat inherited .text-white etc.) ---------- */
section.plan-page-intro#plan-page-intro,
#plan-page-intro {
    background-color: #e8edf5 !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    color: #0f172a !important;
}

#plan-page-intro .plan-page-intro__title {
    font-size: clamp(1.45rem, 3.5vw, 2rem);
    font-weight: 700;
    color: #0f172a !important;
    margin-bottom: 1rem;
    line-height: 1.25;
}

#plan-page-intro .plan-page-intro__lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #334155 !important;
    margin-bottom: 0.75rem;
}

#plan-page-intro .plan-page-intro__lead--muted {
    color: #475569 !important;
    font-size: 0.98rem;
}

#plan-page-intro .plan-page-intro__grid {
    margin-top: 0.5rem;
}

#plan-page-intro .plan-page-intro__card {
    background: #fff !important;
    border-radius: 14px;
    padding: 1.35rem 1.25rem;
    height: 100%;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    color: #0f172a !important;
}

#plan-page-intro .plan-page-intro__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #eb2b63, #8b5cf6);
    color: #fff !important;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

#plan-page-intro .plan-page-intro__card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a !important;
    margin-bottom: 0.45rem;
}

#plan-page-intro .plan-page-intro__card-text {
    font-size: 0.9rem;
    color: #64748b !important;
    line-height: 1.55;
    margin: 0;
}

.plan-detail-table-section {
    background: #f8fafc;
}

.plan-detail-table-section .section-title h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
    font-weight: 700;
    color: #0f172a;
    margin-top: 0.35rem;
}

.plan-detail-table-section .section-title p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.plan-service-comparison-table thead th.bg-primary {
    vertical-align: middle;
    font-size: 0.95rem;
    font-weight: 600;
}

.plan-service-comparison-table tbody th {
    font-size: 0.9rem;
}

.plan-service-comparison-table tbody td {
    font-size: 0.9rem;
}

@media (max-width: 767px) {
    .plan-service-comparison-table thead th,
    .plan-service-comparison-table tbody td,
    .plan-service-comparison-table tbody th {
        font-size: 0.82rem;
        padding: 0.5rem !important;
    }
}
