/**
 * Component Styles
 * Reusable UI components with premium styling
 */

/* ═══════════════════════════════════════════════════════════════ */
/* MODAL */
/* ═══════════════════════════════════════════════════════════════ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-2xl);
    position: relative;
    animation: slideUp 0.4s var(--transition-smooth);
}

.modal-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.modal-close:hover {
    background: var(--surface);
    color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════ */
/* TABS */
/* ═══════════════════════════════════════════════════════════════ */

.tabs {
    display: flex;
    gap: var(--space-md);
    border-bottom: 2px solid var(--border-color);
    margin-bottom: var(--space-2xl);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-button {
    background: none;
    border: none;
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-base);
    position: relative;
    white-space: nowrap;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transition: width var(--transition-smooth);
}

.tab-button.active {
    color: var(--primary);
}

.tab-button.active::after {
    width: 100%;
}

.tab-button:hover {
    color: var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* ═══════════════════════════════════════════════════════════════ */
/* ACCORDION */
/* ═══════════════════════════════════════════════════════════════ */

.accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.accordion-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.accordion-header {
    background: var(--white);
    padding: var(--space-lg) var(--space-xl);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-base);
    font-weight: 600;
    color: var(--text-primary);
}

.accordion-item.active .accordion-header {
    background: var(--surface);
    color: var(--primary);
}

.accordion-header:hover {
    background: var(--surface);
}

.accordion-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-smooth);
    font-weight: bold;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth);
    background: var(--surface);
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.accordion-body {
    padding: var(--space-xl);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════ */
/* STAT CARDS */
/* ═══════════════════════════════════════════════════════════════ */

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.1) 0%, rgba(255, 143, 0, 0.1) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto var(--space-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════ */
/* ALERT / NOTIFICATION */
/* ═══════════════════════════════════════════════════════════════ */

.alert {
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-md);
    border-left: 4px solid;
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    animation: slideIn 0.3s ease;
}

.alert-info {
    background: rgba(27, 94, 32, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.alert-success {
    background: rgba(56, 142, 60, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-warning {
    background: rgba(245, 124, 0, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

.alert-error {
    background: rgba(211, 47, 47, 0.1);
    border-color: var(--error);
    color: var(--error);
}

/* ═══════════════════════════════════════════════════════════════ */
/* SPINNER / LOADING */
/* ═══════════════════════════════════════════════════════════════ */

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(27, 94, 32, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.skeleton {
    background: linear-gradient(90deg, var(--surface) 0%, var(--white) 50%, var(--surface) 100%);
    background-size: 200% 100%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════════ */
/* PROGRESS BAR */
/* ═══════════════════════════════════════════════════════════════ */

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--surface);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin: var(--space-md) 0;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-pill);
    transition: width var(--transition-smooth);
    box-shadow: 0 0 10px rgba(27, 94, 32, 0.3);
}

/* ═══════════════════════════════════════════════════════════════ */
/* TABLE */
/* ═══════════════════════════════════════════════════════════════ */

.table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-2xl) 0;
}

.table thead {
    background: var(--surface);
    border-bottom: 2px solid var(--border-color);
}

.table th {
    padding: var(--space-lg);
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
}

.table td {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.table tbody tr {
    transition: background var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--surface);
}

/* ═══════════════════════════════════════════════════════════════ */
/* PRICE TABLE */
/* ═══════════════════════════════════════════════════════════════ */

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-2xl) 0;
}

.pricing-table thead {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    color: var(--white);
}

.pricing-table th {
    padding: var(--space-lg);
    text-align: center;
    font-weight: 700;
}

.pricing-table td {
    padding: var(--space-lg);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.pricing-table tbody tr:nth-child(even) {
    background: var(--surface);
}

/* ═══════════════════════════════════════════════════════════════ */
/* STEP INDICATOR */
/* ═══════════════════════════════════════════════════════════════ */

.steps {
    display: flex;
    justify-content: space-between;
    margin: var(--space-2xl) 0;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.step.active .step-circle {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(27, 94, 32, 0.3);
    transform: scale(1.1);
}

.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════ */
/* HERO SECTION VARIANTS */
/* ═══════════════════════════════════════════════════════════════ */

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero-split-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.hero-split-image:hover img {
    transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════════ */
/* PRICING CARDS */
/* ═══════════════════════════════════════════════════════════════ */

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all var(--transition-smooth);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(255, 143, 0, 0.2);
    transform: scale(1.05);
}

.pricing-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.8rem;
}

/* ═══════════════════════════════════════════════════════════════ */
/* SECTION HEADER */
/* ═══════════════════════════════════════════════════════════════ */

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    position: relative;
    padding-bottom: var(--space-lg);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-pill);
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

