/**
 * Combined Theme CSS for Puzzi Rent
 * Combines: footer.css, sidebar-menu.css, mobile-fixes.css, contrast-fixes.css
 * Created: 23.01.2025
 * 
 * TO REVERT: Delete this file and uncomment individual CSS files in functions.php
 */

/* ========================================
   FOOTER STYLES (from footer.css)
   ======================================== */
/* Footer Styles */
.site-footer {
    background: #1D1D1D;
    color: #fff;
    margin-top: 0;
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #FCE414;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
    display: block;
}

.footer-description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #CCC;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #FCE414;
    color: #1D1D1D;
    transform: translateY(-3px);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #CCC;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FCE414;
}

.footer-contact p {
    margin-bottom: 12px;
    color: #CCC;
}

.footer-contact a {
    color: #FCE414;
    transition: opacity 0.3s ease;
}

.footer-contact a:hover {
    opacity: 0.8;
}

.footer-bottom {
    background: #0D0D0D;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.copyright {
    margin: 0;
    color: #999;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #999;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #FCE414;
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #FCE414;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu__content {
    text-align: center;
    width: 100%;
    padding: 40px;
}

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

.mobile-nav-menu a {
    display: block;
    padding: 15px 0;
    font-size: 24px;
    font-weight: 600;
    color: #1D1D1D;
    transition: opacity 0.3s ease;
}

.mobile-nav-menu a:hover {
    opacity: 0.7;
}

.mobile-menu__footer {
    margin-top: 40px;
}

.btn--full {
    width: 100%;
}

.mobile-menu__social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.mobile-menu__social a {
    color: #1D1D1D;
    font-size: 14px;
}

body.menu-open {
    overflow: hidden;
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ========================================
   SIDEBAR MENU STYLES (from sidebar-menu.css)
   ======================================== */
/* Sidebar Menu Styles */

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1998;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar */
.sidebar-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1999;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-menu.active {
    right: 0 !important;
}

/* Sidebar Content */
.sidebar-menu__content {
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Close Button */
.sidebar-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.sidebar-menu__close:hover {
    transform: rotate(90deg);
}

.sidebar-menu__close svg {
    width: 24px;
    height: 24px;
}

/* Logo Section */
.sidebar-menu__logo {
    margin-bottom: 40px;
}

.sidebar-menu__logo img {
    height: 60px;
    width: auto;
}

/* Contact Info */
.sidebar-menu__contact {
    margin-bottom: 40px;
}

.sidebar-menu__contact h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1D1D1D;
}

.sidebar-menu__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-menu__contact-item:hover {
    color: #FCE414;
}

.sidebar-menu__contact-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.sidebar-menu__contact-item span {
    font-size: 15px;
    line-height: 1.5;
}

/* Social Icons */
.sidebar-menu__social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.sidebar-menu__social a {
    width: 40px;
    height: 40px;
    background: #FCE414;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1D1D1D;
    transition: all 0.3s ease;
}

.sidebar-menu__social a:hover {
    background: #1D1D1D;
    color: #FCE414;
    transform: translateY(-3px);
}

.sidebar-menu__social svg {
    width: 18px;
    height: 18px;
}

/* Map Section */
.sidebar-menu__map {
    margin-top: auto;
    margin-bottom: 20px;
}

.sidebar-menu__map h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1D1D1D;
}

.sidebar-menu__map-wrapper {
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sidebar-menu__map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile Menu for smaller screens */
.sidebar-menu__nav {
    display: none;
    margin-bottom: 30px;
}

.sidebar-menu__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu__nav li {
    margin-bottom: 12px;
}

.sidebar-menu__nav a {
    display: block;
    padding: 10px 0;
    color: #1D1D1D;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

.sidebar-menu__nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #FCE414;
    transition: width 0.3s ease;
}

.sidebar-menu__nav a:hover::after,
.sidebar-menu__nav .current-menu-item > a::after {
    width: 100%;
}

/* CTA Button in Sidebar */
.sidebar-menu__cta {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #E0E0E0;
}

.sidebar-menu__cta .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    background: #FCE414;
    color: #1D1D1D;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sidebar-menu__cta .btn:hover {
    background: #1D1D1D;
    color: #FCE414;
    transform: translateY(-2px);
}

/* Body class when sidebar is open */
body.sidebar-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar-menu {
        width: 100%;
        right: -100%;
    }
    
    .sidebar-menu__content {
        padding: 30px 20px;
    }
    
    .sidebar-menu__nav {
        display: block;
    }
    
    .sidebar-menu__map-wrapper {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .sidebar-menu__logo img {
        height: 50px;
    }
    
    .sidebar-menu__contact h3,
    .sidebar-menu__map h3 {
        font-size: 16px;
    }
}

/* ========================================
   MOBILE FIXES (from mobile-fixes.css)
   ======================================== */
/* Mobile-specific fixes for animation issues */

@media (max-width: 768px) {
    /* Create stacking context for fixed elements */
    .site-header,
    .mobile-menu-toggle,
    .cookie-notice,
    .whatsapp-float,
    .back-to-top {
        /* Force GPU acceleration */
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        will-change: transform;
        
        /* Ensure proper stacking */
        isolation: isolate;
    }
    
    /* Stabilize header */
    .site-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
    }
    
    /* Keep body scrollable but stable during animation */
    body.vacuum-animating {
        /* Don't use position: fixed as it breaks scroll */
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Ensure animation containers don't affect layout */
    .carpet-brush-container,
    .vacuum-particles {
        pointer-events: none !important;
        contain: layout style paint;
    }
    
    /* Fix hamburger menu positioning */
    .mobile-menu-toggle {
        position: relative !important;
        z-index: 10000 !important;
        margin-right: 0 !important;
        margin-left: 10px !important;
    }
    
    /* Fix header CTA on mobile */
    .header-cta {
        margin-right: 15px !important;
    }
    
    /* Ensure hamburger doesn't overflow */
    .hamburger {
        margin-right: 0 !important;
    }
    
    /* Add spacing to first menu item */
    .mobile-nav-menu a:first-child,
    .mobile-nav-menu li:first-child a {
        margin-top: 60px !important;
    }
    
    /* Adjust mobile menu content padding */
    .mobile-menu__content {
        padding-top: 80px !important;
    }
    
    /* Stabilize cookie notice */
    .cookie-notice {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9998 !important;
    }
    
    /* Fix WhatsApp button */
    .whatsapp-float {
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        z-index: 9997 !important;
    }
    
    /* Prevent horizontal scroll */
    html {
        overflow-x: hidden !important;
        width: 100vw !important;
    }
    
    body {
        overflow-x: hidden !important;
        position: relative !important;
        width: 100% !important;
    }
    
    /* Fix for viewport issues */
    main,
    .site-main,
    .hero {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
}

/* Additional fixes for very small screens */
@media (max-width: 480px) {
    /* Keep animation but ensure it doesn't break layout */
    .carpet-brush-container,
    .vacuum-particles {
        pointer-events: none !important;
        contain: strict;
        z-index: 500 !important;
    }
}

/* ========================================
   CONTRAST FIXES (from contrast-fixes.css)
   ======================================== */
/**
 * Contrast Fixes for Puzzi Rent
 * Fixes color contrast issues for better accessibility
 */

/* Fix 1: Package prices - better contrast on yellow */
.package-card .amount,
.package-detailed .amount,
.hero__price .amount,
.package-slider .amount {
    /* Original: #FCE414 (1.85:1 contrast) */
    /* New: Darker yellow for 4.6:1 contrast */
    color: #D4B800 !important;
}

/* Alternative: Add dark background behind yellow text */
.price-highlight {
    background: #1D1D1D;
    color: #FCE414 !important;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Fix 2: Cookie banner contrast improvements */
.cc-link {
    color: #1D1D1D !important; /* Instead of #666 */
    font-weight: 500;
}

.cc-link:hover {
    color: #D4B800 !important;
    text-decoration: underline;
}

/* Cookie banner button contrast */
#c-p-bn,
.c-bn {
    background: #1D1D1D !important;
    color: #FCE414 !important;
    font-weight: 600;
}

#c-p-bn:hover,
.c-bn:hover {
    background: #FCE414 !important;
    color: #1D1D1D !important;
}

/* Fix 3: Ensure all yellow text on white has proper contrast */
.text-yellow,
.highlight-yellow {
    color: #D4B800 !important; /* Darker yellow */
}

/* Fix 4: Footer text on yellow background */
.footer__top {
    background: #FCE414;
}

.footer__top .footer__text,
.footer__top p,
.footer__top span {
    color: #1D1D1D !important;
    font-weight: 500; /* Slightly bolder for better readability */
}

/* Fix 5: Form labels and placeholders */
input::placeholder,
textarea::placeholder {
    color: #666 !important; /* Minimum contrast */
    opacity: 1;
}

label {
    color: #1D1D1D !important;
    font-weight: 500;
}

/* Fix 6: Link contrast in content */
a {
    color: #0066CC; /* Standard blue with good contrast */
}

a:hover {
    color: #0052A3;
    text-decoration: underline;
}

/* Fix 7: Ensure price text is always readable */
.package-card .package-card__price,
.pricing-table .price {
    font-weight: 700; /* Bold for better readability */
    font-size: 1.1em; /* Slightly larger */
}

/* For very important price displays, use this class */
.price-important {
    background: #1D1D1D;
    color: #FCE414 !important;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}