:root {
    --color-primary: #667eea;
    --color-secondary: #764ba2;
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-text-secondary: #4a5568;
    --color-text-muted: #718096;
    --color-border: #e2e8f0;
    --color-border-light: #f7fafc;
    --color-danger: #dc3545;
    --color-danger-bg: #fff5f5;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --color-shadow-light: rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #1a202c;
        --color-text: #f7fafc;
        --color-text-secondary: #cbd5e0;
        --color-text-muted: #a0aec0;
        --color-border: #2d3748;
        --color-border-light: #1a202c;
        --color-danger-bg: #3d1f21;
        --color-shadow: rgba(0, 0, 0, 0.3);
        --color-shadow-light: rgba(0, 0, 0, 0.2);
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    min-height: 100vh;
    padding: 0;
    padding-bottom: 70px; /* Space for bottom tabs on mobile */
}

.container {
    max-width: 100%;
    margin: 0 auto;
    background: var(--color-bg);
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px var(--color-shadow);
}

.header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 700;
}

.header p {
    font-size: 0.9rem;
    color: #ffffff;
    opacity: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

.icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Hide radio inputs */
.tab-input {
    display: none;
}

/* Tabs - Bottom on mobile */
.tabs {
    display: flex;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 -2px 10px var(--color-shadow-light);
}

.tab {
    flex: 1;
    padding: 0.75rem 0.5rem;
    text-align: center;
    background: var(--color-bg);
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    border-top: 3px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.tab:active {
    transform: scale(0.98);
}

.tab-icon {
    font-size: 1.5rem;
}

.tab-label {
    font-size: 0.75rem;
}

/* Hide all content by default */
.content {
    display: none;
    padding: 1.5rem;
    padding-bottom: 2rem;
    max-width: 100%;
}

/* Show content based on checked radio using sibling selectors */
#tab-albini:checked ~ .container #albini,
#tab-tessa:checked ~ .container #tessa,
#tab-maison:checked ~ .container #maison {
    display: block;
}

/* Active tab styling using radio checked state and sibling selectors */
#tab-albini:checked ~ .container .tabs label[for="tab-albini"],
#tab-tessa:checked ~ .container .tabs label[for="tab-tessa"],
#tab-maison:checked ~ .container .tabs label[for="tab-maison"] {
    color: var(--color-primary);
    background: var(--color-bg);
    border-top-color: var(--color-primary);
}

/* Typography Hierarchy */
h2 {
    color: var(--color-text);
    font-size: 1.75rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3 {
    color: var(--color-text);
    font-size: 1.25rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border);
}

h4 {
    color: var(--color-text);
    font-size: 1.05rem;
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
}

p {
    margin: 0.75rem 0;
    color: var(--color-text-secondary);
}

p em {
    color: var(--color-text-muted);
    font-size: 0.95em;
}

ul, ol {
    margin: 0.75rem 0 0.75rem 1.5rem;
    color: var(--color-text-secondary);
}

li {
    margin: 0.5rem 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

strong {
    color: var(--color-text);
    font-weight: 600;
}

/* Content Sections - Minimal styling */
.intro {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

/* Schedule - Clean timeline style */
.schedule {
    margin: 1.5rem 0;
}

.schedule-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-left: 2px solid var(--color-border);
    padding-left: 1rem;
    margin-left: 0.5rem;
}

.schedule-item:first-child {
    border-top-left-radius: 4px;
}

.schedule-item:last-child {
    border-bottom-left-radius: 4px;
}

.schedule-time {
    font-weight: 700;
    color: var(--color-primary);
    min-width: 90px;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.schedule-item div:last-child {
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Important Info Box - Use sparingly */
.important {
    background: var(--color-border-light);
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.important h4 {
    margin-top: 0;
    color: var(--color-primary);
}

/* Warning - Only for critical info */
.warning {
    background: var(--color-danger-bg);
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--color-danger);
}

.warning h4 {
    margin-top: 0;
    color: var(--color-danger);
}

/* Commands List - Simple and clean */
.commands-list {
    list-style: none;
    margin: 1rem 0 1.5rem 0;
    display: grid;
    gap: 0.5rem;
}

.commands-list li {
    padding: 0.75rem 1rem;
    background: var(--color-border-light);
    border-radius: 6px;
    border-left: 3px solid var(--color-border);
    margin: 0;
}

.commands-intro {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-style: italic;
    color: var(--color-text-muted);
}

/* Info Blocks - Subtle */
.info-block {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 6px;
    background: var(--color-border-light);
}

.info-block p:first-child {
    margin-top: 0;
}

.info-block p:last-child {
    margin-bottom: 0;
}

/* Simple Lists */
.simple-list {
    list-style: none;
    margin-left: 0;
}

.simple-list li {
    padding-left: 1.5rem;
    position: relative;
}

.simple-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Rules list */
.rules-list {
    list-style: none;
    margin-left: 0;
}

.rules-list li {
    padding: 0.5rem 0;
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }

    .container {
        max-width: 900px;
        margin: 2rem auto;
        border-radius: 12px;
        box-shadow: 0 10px 40px var(--color-shadow);
    }

    .header {
        border-radius: 12px 12px 0 0;
        padding: 2.5rem 2rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header p {
        font-size: 1rem;
    }

    /* Tabs at top on desktop */
    .tabs {
        position: sticky;
        top: 0;
        bottom: auto;
        border-top: none;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 2px 4px var(--color-shadow-light);
        z-index: 10;
        background: var(--color-bg);
    }

    .tab {
        padding: 1rem 1.5rem;
        flex-direction: row;
        gap: 0.5rem;
        border-top: none;
        border-bottom: 3px solid transparent;
        font-size: 1rem;
    }

    #tab-albini:checked ~ .container .tabs label[for="tab-albini"],
    #tab-tessa:checked ~ .container .tabs label[for="tab-tessa"],
    #tab-maison:checked ~ .container .tabs label[for="tab-maison"] {
        border-top-color: transparent;
        border-bottom-color: var(--color-primary);
    }

    .tab-icon {
        font-size: 1.3rem;
    }

    .tab-label {
        font-size: 1rem;
    }

    .content {
        padding: 2.5rem 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .schedule-item {
        padding: 1.25rem 0 1.25rem 1.5rem;
    }

    .schedule-time {
        min-width: 100px;
        font-size: 1rem;
    }

    .commands-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Dark mode specific adjustments */
@media (prefers-color-scheme: dark) {
    .header p {
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }

    .important {
        background: rgba(102, 126, 234, 0.1);
    }

    .info-block {
        background: rgba(255, 255, 255, 0.03);
    }

    .commands-list li {
        background: rgba(255, 255, 255, 0.03);
        border-left-color: var(--color-border);
    }
}
