/* =============================================
   MODERN DARK THEME - Bentické sinice
   ============================================= */

:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #1c2333;
    --bg-input: #0d1117;
    --bg-hover: #21262d;
    --border-color: #30363d;
    --border-focus: #58a6ff;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --accent: #3fb950;
    --accent-hover: #2ea043;
    --accent-dim: rgba(63, 185, 80, 0.15);
    --danger: #f85149;
    --warning-bg: rgba(248, 81, 73, 0.1);
    --warning-border: rgba(248, 81, 73, 0.3);
    --hero-gradient: linear-gradient(135deg, #0d1117 0%, #1a3a2a 50%, #0d1117 100%);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 860px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    padding-top: 60px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(48, 54, 61, 0.6);
}

.navbar-inner {
    max-width: calc(var(--max-width) + 4rem);
    margin: 0 auto;
    padding: 0 2rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
}

.navbar-brand:hover {
    color: var(--accent);
    text-decoration: none;
}

.navbar-cta {
    padding: 0.5rem 1.25rem;
    background: var(--accent);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.navbar-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(63, 185, 80, 0.3);
    text-decoration: none;
    color: #fff;
}

@media (max-width: 600px) {
    body {
        padding-top: 56px;
    }

    .navbar-inner {
        height: 56px;
        padding: 0 1rem;
    }

    .navbar {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .navbar-brand {
        font-size: 0.85rem;
    }

    .navbar-cta {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 4rem 1.5rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('img/header.jpg') center / cover no-repeat;
    opacity: 1;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.92) 0%, rgba(26, 58, 42, 0.85) 50%, rgba(13, 17, 23, 0.92) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #e6edf3 0%, #3fb950 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: var(--accent);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(63, 185, 80, 0.3);
    text-decoration: none;
    color: #fff;
}

/* ===== SECTIONS ===== */
.section {
    padding: 4rem 1.5rem;
}

.section-alt {
    background: var(--bg-secondary);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.75rem;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.text-block p {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

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

/* ===== INTEREST LIST ===== */
.interest-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.interest-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.7rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.interest-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.gallery-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    cursor: pointer;
}

.gallery-item figcaption {
    padding: 1.2rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.gallery-item figcaption em {
    color: var(--text-primary);
    font-style: italic;
}

/* ===== FORM ===== */
.form-intro {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin: 0;
}

#report-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

fieldset {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    padding-top: 15px;
    background: var(--bg-card);
    transition: border-color 0.2s;
}

fieldset:focus-within {
    border-color: var(--border-focus);
}

legend {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0 0.5rem;
    float: none;
    width: auto;
}

.required {
    color: var(--danger);
    font-weight: 700;
}

.field-help {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.field-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

/* ===== INPUTS ===== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: var(--danger);
}

input[readonly] {
    cursor: default;
    opacity: 0.8;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===== COORDINATES ===== */
.coord-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.75rem;
}

.coord-field label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

/* ===== MAP ===== */
.map-container {
    margin-bottom: 0.75rem;
}

.map-placeholder {
    background: var(--bg-input);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
}

.map-placeholder p {
    margin-bottom: 1rem;
}

.map-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    padding: 0.6rem 1.5rem;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--border-color);
}

/* ===== FILE UPLOAD ===== */
.file-upload-area {
    position: relative;
}

.file-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.file-label:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

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

.file-text {
    font-weight: 500;
    color: var(--text-primary);
}

.file-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.file-preview .thumb {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
}

.file-preview .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview .thumb .remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== CHECKBOXES & RADIOS ===== */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-group label,
.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    padding: 0.4rem 0;
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-input);
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.radio-group input[type="radio"] {
    border-radius: 50%;
}

.checkbox-group input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.radio-group input[type="radio"]:checked {
    border-color: var(--accent);
}

.radio-group input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.checkbox-with-text {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.checkbox-with-text input[type="text"] {
    width: auto;
    flex: 1;
    min-width: 200px;
    padding: 0.4rem 0.75rem;
    font-size: 0.95rem;
}

/* ===== CONSENT ===== */
.consent-label {
    align-items: flex-start !important;
}

.consent-label span {
    line-height: 1.5;
}

/* ===== CHAR COUNT ===== */
.char-count {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* ===== WARNING BOX ===== */
.warning-box {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    color: var(--danger);
    font-size: 0.95rem;
    line-height: 1.6;
}

.warning-box strong {
    color: var(--danger);
}

.gallery-warning {
    margin-bottom: 1.5rem;
}

/* ===== SUBMIT BUTTON ===== */
.btn-submit {
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-start;
}

.btn-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(63, 185, 80, 0.3);
}

/* ===== SUCCESS / ERROR MESSAGES ===== */
.success-message {
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.success-message .success-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.success-message h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.success-message p {
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.success-message code {
    background: var(--bg-input);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.error-message {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
}

.error-message h3 {
    color: var(--danger);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.error-message ul {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.error-message li {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

/* ===== SECTION DESCRIPTION ===== */
.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* ===== SMALL GALLERY GRID ===== */
.gallery-grid-sm {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.gallery-subheading {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.gallery-item-sm {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 4 / 3;
}

.gallery-item-sm:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.gallery-item-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* ===== NOTICE BLOCK ===== */
.notice-block {
    padding: 1.5rem;
    border-left: 3px solid var(--accent);
    background: var(--bg-card);
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    padding: 3rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer a {
    color: var(--accent);
}

.footer .affiliation {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== MT utility ===== */
.mt-1 {
    margin-top: 0.75rem;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-item:first-child {
        grid-column: 1 / -1;
    }

    .section {
        padding: 5rem 2rem;
    }

    .hero {
        min-height: 40vh;
    }
}

@media (max-width: 600px) {
    .coord-row {
        grid-template-columns: 1fr;
    }

    .contact-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    fieldset {
        padding: 1rem;
    }

    .hero {
        min-height: 35vh;
        padding: 3rem 1rem;
    }

    .section {
        padding: 3rem 1rem;
    }
}
