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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9fafb;
}

/* Navigation */
.nav {
    background: #111;
    color: white;
    padding: 1em 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-brand a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu a {
    color: white;
    margin-left: 1.5em;
    text-decoration: none;
}

.nav-menu a:hover {
    text-decoration: underline;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    display: block;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav {
        padding: 1em 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: #111;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 80px 0 20px;
        height: 100vh;
        z-index: 999;
        align-items: center;
        justify-content: flex-start;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        margin: 0;
        padding: 1rem 0;
        width: 100%;
        display: block;
        font-size: 1.2em;
    }
}

/* Flash Messages */
.flash-container {
    max-width: 900px;
    margin: 0 auto 1rem;
    padding: 0 1.5rem;
}

.flash {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    font-weight: 500;
    position: relative;
    transition: opacity 0.5s ease-out;
}

.flash.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.flash.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.flash.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #3b82f6;
}

.flash.warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
    background: white;
    min-height: 100vh;
}

/* Typography */
h1 {
    font-size: 2.3em;
    margin: 0.8em 0 0.4em;
    color: #111;
}

h2 {
    font-size: 1.6em;
    margin: 1.4em 0 0.6em;
    color: #222;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.3em;
}

h3 {
    margin-top: 0;
    color: #111;
}

p {
    margin: 0.7em 0;
}

/* Cards */
.card, .video-card {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
}

/* Video */
video {
    width: 100%;
    max-width: 900px;
    height: auto;
    max-height: 70vh;
    border-radius: 8px;
    background: #000;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* Buttons */
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1rem 0;
}

.btn {
    display: inline-block;
    background: #003366;
    color: #fff;
    padding: 12px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.btn:hover {
    background: #002244;
}

.btn.secondary {
    background: #4b5563;
}

.btn.secondary:hover {
    background: #374151;
}

/* Lists */
.list-steps {
    margin-left: 1.5rem;
}

.list-steps li {
    margin: 0.5em 0;
}

/* Badges */
.badge {
    display: inline-block;
    background: #e5e7eb;
    color: #111;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.9em;
    margin-left: 8px;
}
