/* ===================================
   COMPACT HOSTING TABS FOR HOME PAGE
   ===================================
   Minimal space tabbed interface for hosting plans
*/

.compact-hosting-section {
    padding: 60px 0;
    background: #fff;
    position: relative;
    z-index: 1;
}

.compact-hosting-section .section-title {
    margin-bottom: 40px;
    text-align: center;
}

.compact-hosting-section .section-title h2 {
    color: #1c1c1c;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.compact-hosting-section .section-title p {
    color: #585858;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Compact Tab Bar */
.compact-hosting-tabs {
    display: flex;
    justify-content: center;
    background: #f8fafc;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.compact-tab {
    flex: 1;
    padding: 16px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
    position: relative;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 14px;
}

.compact-tab:hover {
    background: rgba(235, 43, 99, 0.05);
    color: #eb2b63;
    transform: translateY(-2px);
}

.compact-tab.active {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #eb2b63;
    transform: translateY(-2px);
}

.compact-tab .tab-icon {
    font-size: 18px;
    margin-bottom: 4px;
    display: block;
}

.compact-tab .tab-title {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 14px;
}

.compact-tab .tab-price {
    font-size: 11px;
    opacity: 0.8;
    font-weight: 400;
}

.compact-tab.active .tab-price {
    opacity: 1;
    font-weight: 500;
}

/* Loading State */
.compact-tab.loading {
    pointer-events: none;
    opacity: 0.7;
}

.compact-tab.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #eb2b63;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Plan Content Area */
.compact-plans-content {
    position: relative;
    min-height: 400px;
}

.compact-plan-section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    position: absolute;
    width: 100%;
    top: 0;
    pointer-events: none;
}

.compact-plan-section.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .compact-hosting-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 12px;
    }
    
    .compact-tab {
        padding: 14px 12px;
        font-size: 13px;
    }
    
    .compact-tab .tab-icon {
        font-size: 16px;
    }
    
    .compact-tab .tab-title {
        font-size: 13px;
    }
    
    .compact-tab .tab-price {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .compact-hosting-tabs {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .compact-tab {
        padding: 12px 16px;
    }
    
    .compact-hosting-section .section-title h2 {
        font-size: 1.8rem;
    }
}

/* Integration with existing plan cards */
.compact-hosting-section .section-body {
    margin-top: 0;
}

.compact-hosting-section .row {
    justify-content: center;
}

/* Smooth transitions for plan switching */
.plan-switch-transition {
    transition: all 0.3s ease;
}

.plan-switch-transition.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.plan-switch-transition.fade-in {
    opacity: 1;
    transform: translateY(0);
}