/*
 * ==========================================
 * CSS VARIABLES
 * ==========================================
 */
:root {
  --primary: #1a2332;
  --primary-light: #2c3e50;
  --gold: #c9a84c;
  --gold-light: #d4b95a;
  --gold-glow: rgba(201, 168, 76, 0.3);
  --accent: #5b8a9c;
  --text: #e8e6e3;
  --text-dark: #2c2c2c;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-height: 70px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--primary); line-height: 1.7; font-weight: 300; }

/* ===== ANIMOVANÉ POZADÍ ===== */
#liquid-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.liquid-blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.25;
  animation: blobFloat 20s ease-in-out infinite alternate;
}
.liquid-blob:nth-child(1) { width: 600px; height: 600px; background: radial-gradient(circle, var(--gold), transparent); top: -10%; left: -5%; animation-duration: 25s; }
.liquid-blob:nth-child(2) { width: 500px; height: 500px; background: radial-gradient(circle, var(--accent), transparent); bottom: 10%; right: -8%; animation-duration: 20s; animation-delay: -5s; }
.liquid-blob:nth-child(3) { width: 400px; height: 400px; background: radial-gradient(circle, rgba(201,168,76,0.3), transparent); top: 40%; left: 55%; animation-duration: 22s; animation-delay: -10s; }

@keyframes blobFloat {
  0%   { transform: translate(0,0) scale(1) rotate(0deg); }
  25%  { transform: translate(60px,-40px) scale(1.08) rotate(90deg); }
  50%  { transform: translate(-30px,60px) scale(0.92) rotate(180deg); }
  75%  { transform: translate(40px,30px) scale(1.05) rotate(270deg); }
  100% { transform: translate(-50px,-50px) scale(0.95) rotate(360deg); }
}

/* ===== GLASS ===== */
.glass { background: rgba(255,255,255,0.08); border: 1px solid var(--glass-border); border-radius: 20px; box-shadow: var(--glass-shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.glass-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 2rem; transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; }
.glass-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); border-color: var(--gold-glow); }

/* ===== TYPOGRAFIE ===== */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; }
h2.section-title { font-size: clamp(2rem,5vw,3rem); text-align: center; margin-bottom: 0.75rem; color: var(--gold); }
.section-subtitle { text-align: center; color: rgba(255,255,255,0.5); font-size: clamp(0.9rem,2vw,1.1rem); max-width: 600px; margin: 0 auto 3rem; font-weight: 300; }
.gold { color: var(--gold); }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
section { padding: clamp(4rem,10vh,7rem) 0; position: relative; z-index: 1; }

/* ===== HEADER ===== */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0 1.5rem; height: var(--nav-height); display: flex; align-items: center; justify-content: space-between; background: rgba(26,35,50,0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.06); transition: background 0.4s ease; }
header.scrolled { background: rgba(26,35,50,0.92); }
.logo { font-family: var(--font-heading); font-size: clamp(1.1rem,2.5vw,1.4rem); color: var(--gold); text-decoration: none; letter-spacing: 1px; }
.logo span { color: var(--text); font-weight: 300; }
nav { display: flex; align-items: center; gap: 0.5rem; }
nav a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.85rem; font-weight: 400; padding: 0.5rem 1rem; border-radius: 8px; transition: all 0.3s ease; letter-spacing: 0.3px; }
nav a:hover { color: var(--gold); background: rgba(201,168,76,0.1); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== HERO ===== */
#hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: var(--nav-height); position: relative; overflow: hidden; }
#hero .hero-bg { position: absolute; inset: 0; z-index: -1; }
#hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; opacity: 0.2; filter: grayscale(30%); }
#hero .hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,35,50,0.7) 0%, rgba(26,35,50,0.4) 50%, rgba(26,35,50,0.85) 100%); }
.hero-content { position: relative; z-index: 2; padding: 2rem; }
.hero-content .hero-photo { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; object-position: center 15%; border: 3px solid var(--gold); box-shadow: 0 0 40px var(--gold-glow); margin-bottom: 2rem; }
.hero-content h1 { font-size: clamp(2.5rem,8vw,5rem); color: #fff; margin-bottom: 0.5rem; text-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.hero-content .function { font-size: clamp(1rem,2.5vw,1.3rem); color: var(--gold); font-weight: 400; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1rem; }
.hero-content .motto { font-size: clamp(1.1rem,2.5vw,1.5rem); color: rgba(255,255,255,0.8); font-style: italic; font-family: var(--font-heading); max-width: 700px; margin: 0 auto 1rem; }
.hero-content .podmotto { font-size: 0.9rem; color: rgba(255,255,255,0.5); margin-bottom: 2.5rem; letter-spacing: 1px; }
.btn-primary { display: inline-block; padding: 1rem 2.5rem; background: var(--gold); color: var(--primary); border: none; border-radius: 50px; font-size: 1rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 20px var(--gold-glow); }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 35px var(--gold-glow); background: var(--gold-light); }
.scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.3); font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; animation: scrollPulse 2s ease-in-out infinite; }
.scroll-indicator .mouse { width: 24px; height: 40px; border: 2px solid rgba(255,255,255,0.3); border-radius: 12px; position: relative; }
.scroll-indicator .mouse::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 3px; height: 8px; background: var(--gold); border-radius: 2px; animation: scrollWheel 1.5s ease-in-out infinite; }
@keyframes scrollWheel { 0% { transform: translateX(-50%) translateY(0); opacity: 1; } 100% { transform: translateX(-50%) translateY(16px); opacity: 0; } }
@keyframes scrollPulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ===== O MNĚ ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
.about-photo { width: 100%; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.about-photo img { width: 100%; height: auto; display: block; transition: transform 0.6s ease; }
.about-photo:hover img { transform: scale(1.03); }
.about-bio { font-size: 1rem; line-height: 1.85; color: rgba(255,255,255,0.8); }
.about-bio p { margin-bottom: 1rem; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 2rem; }
.fact-item { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 0.75rem 1rem; }
.fact-item .label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); }
.fact-item .value { font-size: 0.95rem; color: var(--text); font-weight: 400; }

/* ===== PROGRAM ===== */
.program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.program-card { padding: 2rem; position: relative; overflow: hidden; }
.program-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 0; background: var(--gold); transition: height 0.5s ease; }
.program-card:hover::before { height: 100%; }
.program-card .icon { font-size: 2rem; color: var(--gold); margin-bottom: 1rem; display: block; }
.program-card .number { font-family: var(--font-heading); font-size: 0.8rem; color: rgba(255,255,255,0.3); position: absolute; top: 1.5rem; right: 1.5rem; }
.program-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; color: #fff; }
.program-card p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.7; }

/* ===== BLOG ===== */
.blog-list { display: flex; flex-direction: column; gap: 2rem; }
.blog-post { padding: 2rem; transition: all 0.4s ease; }
.blog-post:hover { border-color: var(--gold-glow); }
.blog-post .post-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.blog-post .post-date { font-size: 0.8rem; color: var(--gold); white-space: nowrap; padding-top: 0.2rem; }
.blog-post h3 { font-size: 1.4rem; color: #fff; font-weight: 600; }
h3 a.post-title { color: #fff; text-decoration: none; transition: color 0.3s; }
h3 a.post-title:hover { color: var(--gold); }

/* Blog preview - thumbnail + text vedle sebe */
.blog-preview.with-thumb { display: flex; gap: 1.25rem; align-items: flex-start; }
.blog-preview .blog-thumb { flex-shrink: 0; width: 120px; height: 120px; border-radius: 8px; overflow: hidden; }
.blog-preview .blog-thumb img { width: 120px; height: 120px; object-fit: cover; display: block; }
.blog-preview .blog-text { flex: 1; font-size: 0.95rem; color: rgba(255,255,255,0.7); line-height: 1.7; }

.blog-post .read-more-btn { display: inline-block; margin-top: 1rem; padding: 0.5rem 1.2rem; background: transparent; border: 1px solid var(--gold); color: var(--gold); border-radius: 8px; font-size: 0.85rem; cursor: pointer; transition: all 0.3s ease; font-family: var(--font-body); text-decoration: none; }
.blog-post .read-more-btn:hover { background: var(--gold); color: var(--primary); }

.blog-empty { text-align: center; padding: 3rem; color: rgba(255,255,255,0.4); }
.blog-empty p { font-size: 1.1rem; }
.blog-empty .sub { font-size: 0.85rem; margin-top: 0.5rem; }

.blog-loading { text-align: center; padding: 3rem; color: rgba(255,255,255,0.4); }
.spinner { display: inline-block; width: 40px; height: 40px; border: 3px solid rgba(255,255,255,0.1); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.blog-pagination { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.blog-pagination button { padding: 0.6rem 1.5rem; background: transparent; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.6); border-radius: 8px; font-size: 0.9rem; cursor: pointer; transition: all 0.3s ease; font-family: var(--font-body); }
.blog-pagination button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.blog-pagination button:disabled { opacity: 0.2; cursor: not-allowed; }
.blog-pagination .page-info { color: rgba(255,255,255,0.4); font-size: 0.85rem; }

.blog-modal-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.blog-modal-overlay.active { opacity: 1; pointer-events: all; }
.blog-modal { background: var(--primary); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 2.5rem; max-width: 800px; width: 100%; max-height: 85vh; overflow-y: auto; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.blog-modal .close-modal { position: absolute; top: 1rem; right: 1.5rem; background: none; border: none; color: rgba(255,255,255,0.4); font-size: 1.5rem; cursor: pointer; transition: color 0.3s; }
.blog-modal .close-modal:hover { color: var(--gold); }
.blog-modal .modal-date { color: var(--gold); font-size: 0.85rem; margin-bottom: 0.5rem; }
.blog-modal h2 { font-size: 1.8rem; color: #fff; margin-bottom: 1.5rem; padding-right: 2rem; }
.blog-modal .modal-content { font-size: 1rem; color: rgba(255,255,255,0.75); line-height: 1.8; }
.blog-modal .modal-content p { margin-bottom: 1rem; }
.blog-modal .modal-content img { max-width: 100%; border-radius: 12px; margin: 1rem 0; }
.blog-modal .modal-content blockquote { border-left: 3px solid var(--gold); padding-left: 1rem; margin: 1rem 0; color: rgba(255,255,255,0.5); font-style: italic; }
.blog-modal::-webkit-scrollbar { width: 6px; }
.blog-modal::-webkit-scrollbar-track { background: transparent; }
.blog-modal::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

/* ===== KONTAKT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; transition: all 0.3s ease; }
.contact-item:hover { border-color: var(--gold-glow); background: rgba(201,168,76,0.05); }
.contact-item i { font-size: 1.3rem; color: var(--gold); width: 40px; text-align: center; }
.contact-item a, .contact-item span { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.95rem; }
.contact-item a:hover { color: var(--gold); }
.social-links { display: flex; gap: 1rem; margin-top: 0.5rem; }
.social-link { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); font-size: 1.2rem; text-decoration: none; transition: all 0.3s ease; }
.social-link:hover { background: var(--gold); color: var(--primary); border-color: var(--gold); transform: translateY(-3px); }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 1rem 1.25rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; color: var(--text); font-family: var(--font-body); font-size: 0.95rem; outline: none; transition: border-color 0.3s ease, background 0.3s ease; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); background: rgba(255,255,255,0.06); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.3); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button { align-self: flex-start; }

/* ===== FOOTER ===== */
footer { padding: 2rem 1.5rem; border-top: 1px solid rgba(255,255,255,0.06); text-align: center; position: relative; z-index: 1; }
footer .footer-text { font-size: 0.8rem; color: rgba(255,255,255,0.25); }
footer .admin-link { display: inline-block; margin-top: 0.5rem; font-size: 0.7rem; color: rgba(255,255,255,0.15); text-decoration: none; transition: color 0.3s; }
footer .admin-link:hover { color: rgba(255,255,255,0.4); }

/* ===== FADE-IN ===== */
.fade-in { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== PARALLAX ===== */
.parallax-layer { transition: transform 0.1s ease-out; }

/* ===== MEDIA ===== */
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 400px; margin: 0 auto; } .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  nav { position: fixed; top: var(--nav-height); left: 0; right: 0; flex-direction: column; background: rgba(26,35,50,0.97); backdrop-filter: blur(20px); padding: 1.5rem; gap: 0.5rem; transform: translateY(-100%); opacity: 0; pointer-events: none; transition: all 0.4s ease; border-bottom: 1px solid rgba(255,255,255,0.06); }
  nav.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  nav a { font-size: 1rem; padding: 0.75rem 1rem; width: 100%; text-align: center; }
  .hamburger { display: flex; }
  .program-grid { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr; }
  .hero-content .hero-photo { width: 130px; height: 130px; }
  .blog-preview.with-thumb { flex-direction: column; }
  .blog-preview .blog-thumb { width: 100%; height: auto; }
  .blog-preview .blog-thumb img { width: 100%; height: 200px; }
}
@media (max-width: 480px) { section { padding: 3rem 0; } .glass-card { padding: 1.25rem; } .blog-post .post-header { flex-direction: column; } }