/*
|--------------------------------------------------------------------------
| Luttaki
|--------------------------------------------------------------------------
| Main Stylesheet
|--------------------------------------------------------------------------
*/

/* ==========================================================================
   Variables
   ========================================================================== */

:root {

    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;

    --color-background: #f5f7fa;
    --color-surface: #ffffff;

    --color-text: #1f2937;
    --color-text-light: #6b7280;

    --color-border: #d1d5db;

    --color-success: #16a34a;
    --color-error: #dc2626;

    --radius: 8px;

    --shadow: 0 2px 8px rgba(0, 0, 0, .08);

    --container-width: 900px;

}

/* ==========================================================================
   Reset
   ========================================================================== */

*,
*::before,
*::after {

    box-sizing: border-box;

}

html {

    font-size: 16px;

}

body {

    margin: 0;

    background: var(--color-background);

    color: var(--color-text);

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.5;

}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {

    width: min(var(--container-width), calc(100% - 2rem));

    margin: 2rem auto;

}

.card {

    background: var(--color-surface);

    border: 1px solid var(--color-border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    padding: 1.5rem;

    margin-bottom: 1.5rem;

}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3 {

    margin-top: 0;

}

.page-title {

    margin-bottom: .5rem;

}

.page-description {

    margin-bottom: 2rem;

    color: var(--color-text-light);

}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-group {

    display: flex;

    flex-direction: column;

    margin-bottom: 1rem;

}

.form-row {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 1rem;

}

label {

    margin-bottom: .4rem;

    font-weight: 600;

}

input,
textarea,
select {

    width: 100%;

    padding: .75rem;

    border: 1px solid var(--color-border);

    border-radius: var(--radius);

    background: #ffffff;

    color: var(--color-text);

    font: inherit;

}

textarea {

    resize: vertical;

    min-height: 100px;

}

input:focus,
textarea:focus,
select:focus {

    outline: none;

    border-color: var(--color-primary);

}

.form-checkbox {

    display: flex;

    align-items: center;

    gap: .5rem;

    margin-bottom: 1rem;

}

.form-checkbox input {

    width: auto;

    margin: 0;

}

.form-checkbox label {

    margin: 0;

    font-weight: normal;

}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: .85rem 1.5rem;

    border: none;

    border-radius: var(--radius);

    font: inherit;

    text-decoration: none;

    cursor: pointer;

    transition:
        background .2s,
        color .2s;

}

.btn-primary {

    background: var(--color-primary);

    color: #ffffff;

}

.btn-primary:hover {

    background: var(--color-primary-hover);

}

.form-footer {

    display: flex;

    justify-content: flex-end;

    margin-top: 2rem;

}

/* ==========================================================================
   Utilities
   ========================================================================== */

.hidden {

    display: none;

}

.text-center {

    text-align: center;

}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {

    .container {

        width: calc(100% - 1rem);

        margin: 1rem auto;

    }

    .card {

        padding: 1rem;

    }

    .form-footer {

        justify-content: stretch;

    }

    .form-footer .btn {

        width: 100%;

    }

}

.hero {

    text-align: center;

    margin-bottom: 3rem;

}

.hero h2 {

    font-size: 2.5rem;

    margin-bottom: 1rem;

}

.hero p {

    max-width: 600px;

    margin: 0 auto 2rem;

    color: var(--color-text-light);

}

.cards {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 1.5rem;

    margin-bottom: 3rem;

}

.open-event {

    text-align: center;

}

.open-event form {

    display: flex;

    gap: 1rem;

    justify-content: center;

    flex-wrap: wrap;

    margin-top: 1.5rem;

}

@media (max-width: 768px) {

    .hero h2 {

        font-size: 2rem;

    }

    .open-event form {

        flex-direction: column;

        align-items: stretch;

    }

}

.occurrence-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.occurrence-tab {
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    border-radius: 6px;
}

.occurrence-tab.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}