@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* Custom styling for Saeti Plans Comparison Table */

:root {
    --saeti-primary: #272727;
    --saeti-primary-hover: #1f1f1f;
    --saeti-accent: #0d6efd; /* Accent blue for buttons and highlighting */
    --saeti-success: #10b981; /* Premium Emerald green for checks */
    --saeti-muted: #6b7280;
    --saeti-border: #e5e7eb;
    --saeti-bg-light: #f9fafb;
    --saeti-text: #272727;
    --saeti-white: #ffffff;
    --saeti-radius: 12px;
}

.saeti-comparison-wrapper {
    font-family: 'Poppins', sans-serif;
    margin: 60px auto;
    max-width: 1200px;
    padding: 0 15px;
    color: var(--saeti-text);
}

.saeti-comparison-table-container {
    background: var(--saeti-white);
    border-radius: var(--saeti-radius);
    border: 1px solid var(--saeti-border);
    overflow: hidden; /* Round corners container */
    position: relative;
}

.saeti-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

/* Modern Header with dark #272727 styling */
.saeti-table-header-row th {
    background: #272727;
    padding: 30px 20px;
    vertical-align: bottom;
    border-bottom: 3px solid #1a1a1a;
    color: #ffffff;
}

.saeti-table-header-row th:first-child {
    width: 35%;
    background: #1f1f1f; /* Slightly darker corner */
}

.saeti-table-header-row th:not(:first-child) {
    width: 21.66%;
    text-align: center;
}

.saeti-plan-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.saeti-plan-price {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.saeti-plan-period {
    font-size: 11px;
    color: #a3a3a3;
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.saeti-plan-cta-btn {
    display: inline-block;
    width: 100%;
    max-width: 150px;
    padding: 10px 20px;
    background-color: var(--saeti-accent);
    color: var(--saeti-white);
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.saeti-plan-cta-btn:hover {
    background-color: #0b5ed7;
    color: var(--saeti-white) !important;
    transform: scale(1.03);
}

/* Sticky Header on scroll */
.saeti-sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(39, 39, 39, 0.98);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: none;
    border-bottom: 2px solid #1a1a1a;
}

.saeti-sticky-header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 14px 20px;
}

.saeti-sticky-title {
    flex: 1;
    font-weight: 800;
    font-size: 18px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.saeti-sticky-plans {
    display: flex;
    width: 65%;
}

.saeti-sticky-plan-col {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.saeti-sticky-plan-info {
    text-align: left;
}

.saeti-sticky-plan-name {
    font-weight: 800;
    font-size: 15px;
    margin: 0;
    color: #ffffff;
}

.saeti-sticky-plan-price {
    font-size: 13px;
    color: #a3a3a3;
    font-weight: 600;
}

.admin-bar .saeti-sticky-header {
    top: 32px; /* Adjust for WP Admin Bar */
}

/* Modern Category Row with left accent border */
.saeti-category-row td {
    background: var(--saeti-bg-light);
    font-weight: 800;
    font-size: 14px;
    padding: 18px 20px;
    color: var(--saeti-primary);
    border-bottom: 1px solid var(--saeti-border);
    cursor: pointer;
    user-select: none;
    position: relative;
    border-left: 4px solid var(--saeti-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.saeti-category-toggle-icon {
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.2s ease;
    font-size: 10px;
    color: var(--saeti-muted);
}

.saeti-category-row.collapsed .saeti-category-toggle-icon {
    transform: rotate(-90deg);
}

/* Feature Row */
.saeti-feature-row td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--saeti-border);
    font-size: 14px;
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

.saeti-feature-row:hover td {
    background-color: rgba(39, 39, 39, 0.02);
}

.saeti-feature-name-cell {
    font-weight: 600;
    color: #1f2937;
}

.saeti-feature-desc {
    display: block;
    font-size: 12px;
    color: var(--saeti-muted);
    margin-top: 4px;
    font-weight: 400;
    line-height: 1.4;
}

.saeti-value-cell {
    text-align: center;
    font-weight: 700;
    color: var(--saeti-primary);
}

.saeti-check-icon {
    color: var(--saeti-success);
    font-size: 20px;
    font-weight: bold;
}

.saeti-cross-icon {
    color: var(--saeti-muted);
    opacity: 0.3;
    font-size: 16px;
}

.saeti-mobile-plan-tabs {
    display: none;
}

/* Responsive Table */
@media (max-width: 768px) {
    /* Show mobile plan switcher tabs */
    .saeti-mobile-plan-tabs {
        display: flex;
        justify-content: space-between;
        background: #272727;
        padding: 5px;
        border-radius: 8px;
        margin-bottom: 20px;
        border: 1px solid #1a1a1a;
    }
    
    .saeti-tab-btn {
        flex: 1;
        background: transparent;
        border: none;
        color: #a3a3a3;
        padding: 10px 5px;
        font-weight: 700;
        font-size: 13px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
        font-family: 'Poppins', sans-serif;
    }
    
    .saeti-tab-btn.active {
        background: #ffffff;
        color: #272727;
    }

    .saeti-comparison-table-container {
        border-radius: 12px;
        overflow: hidden;
    }
    
    .saeti-table {
        min-width: 100% !important;
        table-layout: fixed;
    }
    
    /* Layout column widths on mobile */
    .saeti-table-header-row th:first-child,
    .saeti-feature-name-cell {
        width: 60% !important;
        font-size: 13px;
        padding: 12px 14px;
    }
    
    .saeti-table-header-row th:not(:first-child),
    .saeti-value-cell {
        width: 40% !important;
        font-size: 13px;
        padding: 12px 14px;
    }

    /* Hide plan columns by default on mobile */
    .saeti-table th:nth-child(2), .saeti-table td:nth-child(2),
    .saeti-table th:nth-child(3), .saeti-table td:nth-child(3),
    .saeti-table th:nth-child(4), .saeti-table td:nth-child(4) {
        display: none !important;
    }
    
    /* Show only the active plan column */
    .saeti-comparison-table-container.active-iniciar th:nth-child(2),
    .saeti-comparison-table-container.active-iniciar td:nth-child(2) {
        display: table-cell !important;
    }
    
    .saeti-comparison-table-container.active-crescer th:nth-child(3),
    .saeti-comparison-table-container.active-crescer td:nth-child(3) {
        display: table-cell !important;
    }
    
    .saeti-comparison-table-container.active-dominar th:nth-child(4),
    .saeti-comparison-table-container.active-dominar td:nth-child(4) {
        display: table-cell !important;
    }
    
    /* Responsive header layout adjustments */
    .saeti-table-header-row th {
        padding: 20px 10px;
    }
    
    .saeti-plan-title {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .saeti-plan-price {
        font-size: 18px;
    }
    
    .saeti-plan-period {
        font-size: 9px;
        margin-bottom: 10px;
    }
    
    .saeti-plan-cta-btn {
        max-width: 100%;
        padding: 6px 10px;
        font-size: 11px;
    }

    /* Category header span adjustment on mobile */
    .saeti-category-row td {
        padding: 14px 15px;
        font-size: 12px;
    }
    
    .saeti-feature-desc {
        font-size: 11px;
    }
    
    .saeti-sticky-header {
        display: none !important;
    }
}
