/**
 * Szilvaház Custom CSS - Additional Styles
 * Responsive design and special effects
 */

/* ===================================
   NOTIFICATION STYLES
   =================================== */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    max-width: 400px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateX(420px);
    transition: transform 0.3s ease;
    z-index: 10000;
}

.notification.active {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #4CAF50;
}

.notification-error {
    border-left: 4px solid #f44336;
}

.notification-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
    color: #999;
}

/* ===================================
   GALLERY LIGHTBOX
   =================================== */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* ===================================
   STICKY HEADER ANIMATIONS
   =================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-header.sticky-hidden {
    transform: translateY(-100%);
}

.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

#content {
    padding-top: 80px; /* Adjust based on header height */
}

/* ===================================
   ROOM CARD OVERLAY
   =================================== */
.room-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 75, 66, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.room-card:hover .room-card-overlay {
    opacity: 1;
}

.room-link {
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border: 2px solid white;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.room-link:hover {
    background: white;
    color: var(--szilvahaz-primary);
}

/* ===================================
   EVENTS GRID
   =================================== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--szilvahaz-spacing-lg);
    margin-top: var(--szilvahaz-spacing-lg);
}

.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--szilvahaz-shadow);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-image {
    height: 250px;
    overflow: hidden;
}

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

.event-content {
    padding: var(--szilvahaz-spacing-md);
}

.learn-more {
    color: var(--szilvahaz-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.learn-more:hover {
    gap: 15px;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
    position: relative;
    padding: var(--szilvahaz-spacing-xl) 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 75, 66, 0.85);
}

.cta-content {
    position: relative;
    z-index: 1;
    color: white;
}

.cta-content h2 {
    color: white;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--szilvahaz-spacing-md);
}

.cta-buttons {
    display: flex;
    gap: var(--szilvahaz-spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--szilvahaz-spacing-lg);
}

/* ===================================
   ANIMATED ELEMENTS
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.animated {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger animation delays */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }
.fade-in:nth-child(5) { transition-delay: 0.5s; }
.fade-in:nth-child(6) { transition-delay: 0.6s; }

/* ===================================
   WELCOME SECTION
   =================================== */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--szilvahaz-spacing-xl);
    align-items: center;
    margin-top: var(--szilvahaz-spacing-lg);
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--szilvahaz-spacing-md);
    margin-top: var(--szilvahaz-spacing-lg);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--szilvahaz-secondary);
}

.feature-item i {
    color: var(--szilvahaz-primary);
    font-size: 1.25rem;
}

.welcome-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--szilvahaz-shadow-hover);
}

/* ===================================
   SECTION HEADERS
   =================================== */
.section-header {
    max-width: 700px;
    margin: 0 auto var(--szilvahaz-spacing-xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--szilvahaz-spacing-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--szilvahaz-secondary);
    line-height: 1.7;
}

/* ===================================
   MOBILE MENU
   =================================== */
.mobile-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: 300px;
    background: white;
    z-index: 99999;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-navigation.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--szilvahaz-light-gray);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

#mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

#mobile-menu li {
    border-bottom: 1px solid var(--szilvahaz-light-gray);
}

#mobile-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--szilvahaz-dark-gray);
    text-decoration: none;
    transition: background 0.3s ease;
}

#mobile-menu a:hover,
#mobile-menu .current-menu-item > a {
    background: rgba(31, 75, 66, 0.05);
    color: var(--szilvahaz-primary);
}

.mobile-contact {
    padding: 20px;
}

.mobile-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--szilvahaz-primary);
    text-decoration: none;
    margin-bottom: 15px;
}

/* Mobile menu overlay */
.mobile-menu-open {
    overflow: hidden;
}

.mobile-menu-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
}

/* ===================================
   RESPONSIVE BREAKPOINTS
   =================================== */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: var(--szilvahaz-spacing-lg);
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .header-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
    }
    
    .hero-content {
        padding: var(--szilvahaz-spacing-md);
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--szilvahaz-spacing-sm);
    }
    
    .welcome-features {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets-inner {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: var(--szilvahaz-spacing-md);
    }
}

@media (max-width: 480px) {
    .room-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: var(--szilvahaz-spacing-md);
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .szilvahaz-btn {
        width: 100%;
        text-align: center;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .site-header,
    .site-footer,
    .newsletter-section,
    .cta-section,
    .scroll-to-top,
    .cookie-consent {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
    }
}

/* ===================================
   ACCESSIBILITY IMPROVEMENTS
   =================================== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 2.5rem;
    z-index: 999999;
    text-decoration: none;
    background: var(--szilvahaz-primary);
    color: white;
    padding: 15px 20px;
}

.skip-link:focus {
    left: 6px;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid var(--szilvahaz-primary);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}
