/* Tab Module Frontend Styles */

.tab-module-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: var(--background-color, #e0f2fe);
    border-radius: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.tab-module-header {
    text-align: center;
    margin-bottom: 40px;
}

.tab-module-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color, #000);
    margin-bottom: 16px;
    line-height: 1.2;
}

.tab-module-description {
    font-size: 1.125rem;
    color: var(--text-color, #000);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.9;
}

.tab-module-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.feature-box {
    background: white;
    padding: 24px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: #86efac;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    color: #166534;
    font-weight: bold;
}

.feature-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color, #000);
    margin: 0 0 8px 0;
}

.feature-content p {
    font-size: 0.95rem;
    color: var(--text-color, #000);
    margin: 0;
    opacity: 0.8;
    line-height: 1.5;
}

.tab-module-wrapper {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.tab-buttons-wrapper {
    background: var(--primary-color, #1e3a8a);
    padding: 8px;
    border-bottom: 3px solid var(--secondary-color, #f59e0b);
}

.tab-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tab-button {
    flex: 1;
    min-width: 120px;
    padding: 16px 24px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-style-rounded .tab-button {
    border-radius: 8px;
}

.tab-style-square .tab-button {
    border-radius: 0;
}

.tab-style-pills .tab-button {
    border-radius: 50px;
}

.tab-button:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.tab-button.active {
    background: var(--primary-color, #1e3a8a);
    color: white;
    border-color: var(--secondary-color, #f59e0b);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tab-button.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--secondary-color, #f59e0b);
}

.tab-contents {
    position: relative;
    min-height: 300px;
}

.tab-content {
    display: none;
    padding: 40px;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content-inner {
    color: var(--text-color, #000);
    line-height: 1.8;
}

.tab-content-inner h2,
.tab-content-inner h3,
.tab-content-inner h4 {
    color: var(--primary-color, #1e3a8a);
    margin-top: 24px;
    margin-bottom: 16px;
}

.tab-content-inner h2 {
    font-size: 2rem;
}

.tab-content-inner h3 {
    font-size: 1.5rem;
}

.tab-content-inner h4 {
    font-size: 1.25rem;
}

.tab-content-inner p {
    margin-bottom: 16px;
}

.tab-content-inner ul,
.tab-content-inner ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.tab-content-inner li {
    margin-bottom: 8px;
}

.tab-content-inner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.tab-content-inner a {
    color: var(--primary-color, #1e3a8a);
    text-decoration: underline;
}

.tab-content-inner a:hover {
    color: var(--secondary-color, #f59e0b);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tab-module-container {
        padding: 24px 16px;
    }
    
    .tab-module-title {
        font-size: 1.875rem;
    }
    
    .tab-module-description {
        font-size: 1rem;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
        min-width: 100%;
    }
    
    .tab-content {
        padding: 24px;
    }
    
    .tab-module-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tab-module-title {
        font-size: 1.5rem;
    }
    
    .tab-content {
        padding: 16px;
    }
}
