/* Global Styles */
:root {
    --primary-color: #0066cc;
    --secondary-color: #004080;
    --accent-color: #ff6b00;
    --text-color: #333;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --border-color: #ddd;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.header-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Tab Navigation */
.tab-navigation {
    background: var(--white);
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow);
}

.tab-button {
    background: none;
    border: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    padding: 0.75rem 2rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-button .mobile-text {
    display: none;
}

.tab-button .full-text {
    display: inline;
}

.tab-button:hover {
    color: var(--primary-color);
    background: #f5f5f5;
    border-radius: 6px 6px 0 0;
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.tab-button[data-tab="statutory-violation"] {
    color: #d32f2f;
    font-weight: 600;
}

.tab-button[data-tab="statutory-violation"]:hover {
    background: #ffebee;
}

.tab-button[data-tab="statutory-violation"].active {
    color: #c62828;
    border-bottom-color: #c62828;
}

/* Tab Content */
.tab-content {
    display: none;
}

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

/* About Page Styles */
.about-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section.intro-section {
    background: linear-gradient(135deg, #fff9e6, #ffe6e6);
    border-left: 5px solid var(--accent-color);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.about-section.intro-section h2 {
    color: var(--accent-color);
}

.about-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.about-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.about-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.about-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.about-section li {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.about-section strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.about-section em {
    font-style: italic;
    color: var(--primary-color);
}

.critical-point {
    color: #cc0000;
    font-weight: 700;
    font-size: 1.1rem;
}

.statute-quote {
    background: #f0f4f8;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-family: 'Georgia', serif;
    font-style: italic;
    line-height: 1.8;
    border-radius: 4px;
}

.statute-quote strong {
    font-weight: 700;
    color: var(--accent-color);
    font-style: normal;
}

/* Timeline Comparison Styles */
.timeline-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.timeline-column {
    padding: 1.5rem;
    border-radius: 8px;
}

.timeline-column.correct-process {
    background: #e8f5e9;
    border: 3px solid #4caf50;
}

.timeline-column.incorrect-process {
    background: #ffebee;
    border: 3px solid #f44336;
}

.timeline-column h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.timeline-column.correct-process h3 {
    color: #2e7d32;
}

.timeline-column.incorrect-process h3 {
    color: #c62828;
}

.timeline-step {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.timeline-step:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.timeline-step.wrong {
    border-left: 4px solid #f44336;
}

.timeline-column.correct-process .timeline-step {
    border-left: 4px solid #4caf50;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.timeline-step.wrong .step-number {
    background: #f44336;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0.25rem 0;
    color: var(--text-color);
}

.step-content em {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.violation-label {
    display: inline-block;
    background: #ff5722;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.timeline-arrow {
    text-align: center;
    font-size: 2rem;
    color: #666;
    margin: 0.5rem 0;
    font-weight: 700;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem 0.75rem;
    }

    .header-content h1 {
        font-size: 1.5rem;
        line-height: 1.2;
        margin-bottom: 0.35rem;
    }

    .subtitle {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .main-content {
        padding: 0.75rem;
        padding-bottom: 5rem;
    }

    .tab-navigation {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0;
        padding: 0.5rem;
        border-top: 2px solid var(--border-color);
        border-bottom: none;
        z-index: 1000;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .tab-navigation::-webkit-scrollbar {
        display: none;
    }

    .tab-button {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
        border-bottom: none;
        border-top: 3px solid transparent;
    }

    .tab-button .full-text {
        display: none;
    }

    .tab-button .mobile-text {
        display: inline;
    }

    .tab-button.active {
        border-bottom: none;
        border-top-color: var(--primary-color);
    }

    .tab-button[data-tab="statutory-violation"].active {
        border-top-color: #c62828;
    }

    .tab-button:hover {
        border-radius: 0 0 6px 6px;
    }

    .about-container {
        padding: 1rem;
    }

    .about-section h2 {
        font-size: 1.5rem;
    }

    .about-section h3 {
        font-size: 1.15rem;
    }

    .about-section p,
    .about-section li {
        font-size: 1rem;
    }

    .timeline-comparison {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .timeline-column {
        padding: 1rem;
    }

    .timeline-column h3 {
        font-size: 1.1rem;
    }

    .step-content h4 {
        font-size: 1rem;
    }

    .step-content p {
        font-size: 0.9rem;
    }
}
