/* ===== SkyBenkel — Light Aviation Theme ===== */
:root {
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-200: #bae6fd;
    --sky-300: #7dd3fc;
    --sky-400: #38bdf8;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --sky-700: #0369a1;
    --sky-800: #075985;
    --sky-900: #0c4a6e;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 12px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--slate-800);
    line-height: 1.6;
    overflow-x: hidden;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== Navbar ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000; padding: 1rem 0; transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 0.6rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--white); transition: color 0.3s;
}
.navbar.scrolled .nav-logo { color: var(--sky-700); }
.nav-plane { width: 36px; height: 36px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.nav-brand { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    text-decoration: none; color: rgba(255,255,255,0.85);
    font-size: 0.9rem; font-weight: 500; transition: color 0.3s; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--sky-400); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.navbar.scrolled .nav-links a { color: var(--slate-600); }
.navbar.scrolled .nav-links a:hover { color: var(--sky-600); }
.nav-logo-img {
    width: 36px; height: 36px; object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); border-radius: 4px;
}
.navbar.scrolled .nav-logo-img { filter: none; }
.hero-logo-img {
    width: 80px; height: 80px; object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)); border-radius: 8px;
    animation: float 3s ease-in-out infinite;
}
.footer-logo-img {
    width: 24px; height: 24px; object-fit: contain; border-radius: 3px;
}
.nav-admin-link { opacity: 0.4; font-size: 0.8rem !important; }

/* ===== Hero ===== */
.hero {
    position: relative; height: 100vh; min-height: 600px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(12,74,110,0.7) 0%, rgba(3,105,161,0.5) 40%, rgba(14,165,233,0.3) 100%);
}
.hero-content { position: relative; text-align: center; color: var(--white); z-index: 2; }
.hero-badge {
    display: inline-block; padding: 0.4rem 1.2rem;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 50px;
    font-size: 0.8rem; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero-title {
    font-family: 'Playfair Display', serif; font-size: 5rem; font-weight: 800;
    letter-spacing: -2px; line-height: 1; margin-bottom: 1rem;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.hero-plane-icon {
    width: 72px; height: 72px; color: var(--sky-300);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-sub { font-size: 1.2rem; font-weight: 300; color: rgba(255,255,255,0.85); margin-bottom: 2.5rem; letter-spacing: 0.5px; }
.hero-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.9rem 2.5rem; background: var(--white); color: var(--sky-700);
    text-decoration: none; border-radius: 50px; font-weight: 600; font-size: 0.95rem;
    transition: all 0.3s; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.25); background: var(--sky-50); }
.hero-scroll {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    color: rgba(255,255,255,0.6); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; z-index: 2;
}
.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ===== Section Headers ===== */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
    display: inline-block; padding: 0.3rem 1rem; background: var(--sky-50);
    color: var(--sky-600); border-radius: 50px; font-size: 0.75rem;
    font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1rem;
}
.section-title {
    font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 800;
    color: var(--slate-900); letter-spacing: -1px; margin-bottom: 0.5rem;
}
.section-desc { color: var(--slate-400); font-size: 1rem; max-width: 500px; margin: 0 auto; }
.title-line { width: 60px; height: 3px; background: linear-gradient(90deg, var(--sky-400), var(--sky-600)); margin: 1.2rem auto 0; border-radius: 2px; }

/* ===== Gallery Grid ===== */
.gallery-section { padding: 5rem 0; background: var(--slate-50); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.gallery-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.gallery-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-card:hover img { transform: scale(1.08); }
.card-hover {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
    color: var(--white);
}
.gallery-card:hover .card-hover { opacity: 1; }
.card-comments-badge {
    position: absolute; bottom: 12px; right: 12px;
    display: flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,0.2); backdrop-filter: blur(8px);
    padding: 4px 10px; border-radius: 50px;
    font-size: 0.75rem; font-weight: 600; color: var(--white);
}
.card-title {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 2rem 0.8rem 0.7rem;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
    color: var(--white); font-size: 0.85rem; font-weight: 600;
    pointer-events: none;
}

/* ===== Photo Modal ===== */
.photo-modal {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.photo-modal.active { opacity: 1; pointer-events: all; }
.photo-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(15,23,42,0.85); backdrop-filter: blur(8px);
}
.photo-modal-content {
    position: relative; z-index: 1;
    width: 92vw; max-width: 1100px;
    height: 85vh; max-height: 700px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex; flex-direction: column;
    overflow: hidden;
    transform: scale(0.95); transition: transform 0.3s;
}
.photo-modal.active .photo-modal-content { transform: scale(1); }

.photo-modal-close {
    position: absolute; top: 12px; right: 12px; z-index: 10;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
    border: 1px solid var(--slate-200); border-radius: 50%;
    color: var(--slate-600); cursor: pointer; transition: all 0.2s;
}
.photo-modal-close:hover { background: var(--white); color: var(--slate-900); transform: scale(1.1); }

/* Nav arrows */
.modal-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
    border: 1px solid var(--slate-200); border-radius: 50%;
    color: var(--slate-600); cursor: pointer; transition: all 0.2s;
}
.modal-nav:hover { background: var(--white); color: var(--slate-900); transform: translateY(-50%) scale(1.1); }
.modal-prev { left: -56px; }
.modal-next { right: -56px; }

.photo-modal-body {
    display: flex; flex: 1; overflow: hidden;
}
.photo-modal-image {
    flex: 1; min-width: 0;
    background: var(--slate-900);
    display: flex; align-items: center; justify-content: center;
}
.photo-modal-image img {
    width: 100%; height: 100%; object-fit: contain;
}

/* Sidebar */
.photo-modal-sidebar {
    width: 360px; flex-shrink: 0;
    display: flex; flex-direction: column;
    border-left: 1px solid var(--slate-100);
    background: var(--white);
}
.modal-sidebar-top {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--slate-100);
}
.modal-photo-title {
    font-size: 1.05rem; font-weight: 700; color: var(--slate-800);
    line-height: 1.3;
}
.modal-sidebar-header {
    display: flex; align-items: center; gap: 8px;
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid var(--slate-100);
    font-weight: 700; font-size: 0.9rem; color: var(--slate-700);
}
.modal-sidebar-header svg { color: var(--sky-500); }
.modal-comment-count { font-weight: 400; color: var(--slate-400); font-size: 0.85rem; }

.modal-alert { margin: 0.8rem 1.2rem; }

.modal-comments-list {
    flex: 1; overflow-y: auto;
    padding: 1rem 1.2rem;
    display: flex; flex-direction: column; gap: 0.8rem;
}
.no-comments { font-size: 0.85rem; color: var(--slate-400); font-style: italic; }

.comment-bubble {
    background: var(--slate-50); border-radius: 12px; padding: 0.8rem 1rem;
}
.comment-author { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.comment-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--sky-500); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700; flex-shrink: 0;
}
.comment-name { font-size: 0.82rem; font-weight: 600; color: var(--slate-700); }
.comment-date { font-size: 0.7rem; color: var(--slate-400); margin-left: 0.5rem; }
.comment-text { font-size: 0.85rem; color: var(--slate-600); line-height: 1.5; }

/* Comment Form in Modal */
.modal-comment-form-wrap {
    padding: 1rem 1.2rem;
    border-top: 1px solid var(--slate-100);
}
.toggle-comment-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0.5rem 1rem; background: var(--sky-50); color: var(--sky-600);
    border: 1px solid var(--sky-200); border-radius: 50px;
    font-size: 0.82rem; font-weight: 500; cursor: pointer; transition: all 0.2s;
    width: 100%; justify-content: center;
}
.toggle-comment-btn:hover { background: var(--sky-100); }
.comment-form {
    margin-top: 0.8rem; background: var(--slate-50);
    border-radius: 12px; padding: 1rem; border: 1px solid var(--slate-100);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.comment-form .form-group { margin-bottom: 0.6rem; }
.comment-form label {
    display: block; font-size: 0.75rem; font-weight: 600;
    color: var(--slate-600); margin-bottom: 0.2rem;
}
.comment-form input,
.comment-form textarea {
    width: 100%; padding: 0.5rem 0.7rem;
    border: 1px solid var(--slate-200); border-radius: 8px;
    font-size: 0.82rem; font-family: inherit;
    transition: border-color 0.2s; background: var(--white); color: var(--slate-800);
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none; border-color: var(--sky-400); box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}
.captcha-input { max-width: 130px !important; }
.btn-comment-submit {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1.2rem; background: var(--sky-500); color: var(--white);
    border: none; border-radius: 8px; font-size: 0.82rem; font-weight: 600;
    cursor: pointer; transition: background 0.2s; width: 100%; justify-content: center;
}
.btn-comment-submit:hover { background: var(--sky-600); }

/* ===== Alerts ===== */
.alert {
    padding: 0.7rem 1rem; border-radius: 8px; margin-bottom: 1.5rem;
    font-size: 0.85rem; text-align: center;
}
.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* ===== Empty State ===== */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-icon { width: 80px; height: 80px; color: var(--slate-200); margin-bottom: 1.5rem; }
.empty-state h3 { font-size: 1.2rem; color: var(--slate-600); margin-bottom: 0.5rem; }
.empty-state p { color: var(--slate-400); }

/* ===== Footer ===== */
.footer { background: var(--slate-900); color: var(--slate-400); padding: 2.5rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-brand {
    display: flex; align-items: center; gap: 8px;
    font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--white);
}
.footer-plane { width: 24px; height: 24px; color: var(--sky-400); }
.footer-copy { font-size: 0.8rem; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; flex-direction: column; gap: 0.5rem; }
    .hero-plane-icon { width: 48px; height: 48px; }
    .hero-logo-img { width: 56px; height: 56px; }
    .hero-sub { font-size: 1rem; }
    .section-title { font-size: 2rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.8rem; }
    .footer-inner { flex-direction: column; gap: 0.8rem; text-align: center; }
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 0.8rem; }

    .photo-modal-content { width: 96vw; height: 92vh; max-height: none; border-radius: 12px; }
    .photo-modal-body { flex-direction: column; }
    .photo-modal-image { height: 40%; }
    .photo-modal-sidebar { width: 100%; flex: 1; border-left: none; border-top: 1px solid var(--slate-100); }
    .modal-prev { left: 8px; }
    .modal-next { right: 8px; }
    .modal-nav { width: 36px; height: 36px; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
}
