/*
Theme Name: Chata pod Hrbom
Theme URI: https://chatapodhrbom.turzo.site
Author: Turzo
Author URI: https://turzo.site
Description: Vlastná téma pre Chata pod Hrbom - tradičná horská chata v slovenských horách
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chatapodhrbom
*/

/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #334155;
}

/* Colors */
:root {
    --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;
    --yellow-400: #facc15;
    --yellow-500: #eab308;
    --yellow-600: #ca8a04;
    --white: #ffffff;
}

/* Hero Video Background */
#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

/* Mobile video optimization */
@media (max-width: 768px) {
    #hero-video {
        /* Na mobile použijeme object-fit pre správne zobrazenie */
        width: 100%;
        height: 100%;
        min-width: unset;
        min-height: unset;
        top: 0;
        left: 0;
        transform: none;
        object-fit: cover;
        object-position: center;
    }
}

/* Fallback pre zariadenia kde video nefunguje */
.hero-video-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-fallback-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* Bounce animation for scroll indicator */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Gallery animations */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.lazy-image {
    transition: opacity 0.5s ease;
}

/* Gallery filter buttons */
.gallery-filter {
    transition: all 0.3s ease;
}

.gallery-filter:hover {
    transform: translateY(-2px);
}

/* Lightbox styles */
#lightbox {
    backdrop-filter: blur(10px);
}

#lightbox-content img,
#lightbox-content video {
    animation: fadeIn 0.3s ease;
}

/* Top Bar - Responsive */
.top-bar-link {
    transition: color 0.2s ease, transform 0.2s ease;
}

.top-bar-link:hover {
    color: var(--yellow-500);
    transform: scale(1.02);
}

/* Show more button transition */
#gallery-show-more-wrapper {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hidden gallery items */
.gallery-item.hidden-item {
    display: none;
}

/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

/* Top Bar */
.top-bar {
    background-color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-item svg {
    width: 1rem;
    height: 1rem;
    color: var(--yellow-400);
}

.top-bar-item span {
    font-weight: bold;
}

/* Navigation */
.main-nav {
    background-color: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--slate-700);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

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

.nav-brand img {
    width: 60px;
    height: auto;
}

.nav-brand span {
    margin-left: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--white);
}

.nav-menu {
    display: none;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-menu a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--yellow-400);
}

.btn-primary {
    background-color: var(--yellow-500);
    color: var(--slate-900);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--yellow-600);
}

.btn-secondary {
    background-color: var(--slate-800);
    color: var(--white);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

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

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--slate-900);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.5);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 56rem;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 4.5rem;
    }
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #f1f5f9;
}

@media (min-width: 768px) {
    .hero p {
        font-size: 1.5rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-buttons .btn-primary {
    padding: 0.75rem 2rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-light {
    background-color: var(--slate-50);
}

.section-white {
    background-color: var(--white);
}

.section-gray {
    background-color: var(--slate-100);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--slate-800);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--slate-600);
}

/* About Section */
.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-content h2 {
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--slate-800);
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.125rem;
    color: var(--slate-700);
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--yellow-600);
}

.stat-label {
    color: var(--slate-600);
}

.about-image img {
    width: 100%;
    height: 24rem;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Room Cards */
.rooms-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .rooms-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.room-card {
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid var(--slate-200);
    transition: box-shadow 0.3s;
}

.room-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.room-card-image {
    position: relative;
    height: 12rem;
}

.room-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--yellow-500);
    color: var(--slate-900);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.room-card-content {
    padding: 1.5rem;
}

.room-card-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--slate-800);
    margin-bottom: 0.5rem;
}

.room-card-content p {
    color: var(--slate-600);
    margin-bottom: 1rem;
}

.room-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.room-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--yellow-600);
}

/* Activities */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .activities-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.activity-item {
    text-align: center;
}

.activity-icon {
    background-color: var(--white);
    border-radius: 50%;
    width: 5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--yellow-400);
    transition: box-shadow 0.3s;
}

.activity-item:hover .activity-icon {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.activity-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--slate-800);
}

.activity-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 0.5rem;
}

.activity-item p {
    color: var(--slate-600);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background-color: transparent;
    transition: background-color 0.3s;
}

.gallery-item:hover .gallery-overlay {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-card {
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border: 1px solid var(--slate-200);
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--slate-800);
    margin-bottom: 1.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--yellow-600);
    flex-shrink: 0;
}

/* Amenities */
.amenities-title {
    font-weight: 600;
    color: var(--slate-800);
    margin: 1.5rem 0 0.75rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.amenity-item svg {
    width: 1rem;
    height: 1rem;
    color: var(--yellow-600);
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--slate-300);
    border-radius: 0.375rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--yellow-500);
    box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.2);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.site-footer {
    background-color: var(--slate-900);
    color: var(--white);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-brand img {
    width: 120px;
}

.footer-brand span {
    margin-left: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
}

.footer-col p {
    color: var(--slate-300);
}

.footer-col h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--slate-300);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--yellow-400);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-outline-yellow {
    border: 1px solid var(--yellow-400);
    color: var(--yellow-400);
    background: transparent;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-outline-yellow:hover {
    background-color: var(--yellow-400);
    color: var(--slate-900);
}

.footer-bottom {
    border-top: 1px solid var(--slate-800);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    color: var(--slate-400);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--slate-800);
    padding: 1rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    color: #e2e8f0;
    text-decoration: none;
    border-bottom: 1px solid var(--slate-700);
}

.mobile-menu a:hover {
    color: var(--yellow-400);
}

/* Hidden utilities */
.hidden-mobile {
    display: none;
}

@media (min-width: 640px) {
    .hidden-mobile {
        display: flex;
    }
}

.hidden-desktop {
    display: flex;
}

@media (min-width: 640px) {
    .hidden-desktop {
        display: none;
    }
}
