/**
 * Ticketshop Homepage Styles
 * Custom styles for the ticketshop homepage template
 */

:root {
    --ticketshop-primary: #5b9a8b;
    --ticketshop-primary-dark: #4a8275;
    --ticketshop-primary-light: #7ab0a3;
    --ticketshop-bg: #5b9a8b;
    --ticketshop-text: #ffffff;
    --ticketshop-card-bg: #ffffff;
    --ticketshop-card-shadow: rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
body.page-template-page-ticketshop {
    margin: 0;
    padding: 0;
    background: var(--ticketshop-bg);
    background: linear-gradient(135deg, #5b9a8b 0%, #7ab0a3 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Hide default theme header and footer on this template */
body.page-template-page-ticketshop .wp-site-blocks > header,
body.page-template-page-ticketshop .wp-site-blocks > footer,
body.page-template-page-ticketshop #wpadminbar {
    display: none !important;
}

/* Main Container */
.ticketshop-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--ticketshop-bg);
    background: linear-gradient(135deg, #5b9a8b 0%, #7ab0a3 100%);
    position: relative;
    padding-bottom: 60px; /* Space for footer */
}

/* Header Styles */
.ticketshop-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 95%;
    padding: 20px 40px;
    z-index: 100;
 /*   background: linear-gradient(180deg, rgba(91, 154, 139, 0.95) 0%, rgba(91, 154, 139, 0) 100%);*/
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.logo-container {
    max-width: 200px;
}

/* Pina Colada Logo Styles */
.pina-colada-logo {
    position: relative;
    max-width: 150px;
    animation: fadeInDown 1s ease-out;
}

.pina-colada-logo img {
    width: 100%;
    height: auto;
    max-height: 200px;
    display: block;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container img,
.logo-container .custom-logo {
    max-width: 100%;
    height: auto;
 /*   max-height: 60px; */
    display: block;
}

.site-logo-text {
    color: var(--ticketshop-text);
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

/* Main Content Area */
.ticketshop-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    width: 100%;
    box-sizing: border-box;
}

.ticketshop-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: var(--ticketshop-card-bg);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 40px;
    box-sizing: border-box;
    animation: fadeInUp 0.8s ease-out;
}

/* Ticketshop iFrame Container */
.ot-iframe {
    width: 100%;
    min-height: 600px;
    position: relative;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Decorative Background Elements */
.ticketshop-container::before,
.ticketshop-container::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.ticketshop-container::before {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
}

.ticketshop-container::after {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -150px;
}

/* Responsive Design - Tablet */
@media (max-width: 768px) {
    .ticketshop-container {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    .ticketshop-header {
        padding: 15px 20px;
        position: fixed;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo-container {
     /*   max-width: 150px;*/
    }
    
    .pina-colada-logo {
        max-width: 100px;
    }
    
    .pina-colada-logo img {
        max-height: 120px;
    }
    
    .logo-container img,
    .logo-container .custom-logo {
        /*max-height: 45px;*/
    }
    
    .site-logo-text {
        font-size: 20px;
    }
    
    .ticketshop-main {
        padding: 176px 15px 30px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .ticketshop-wrapper {
        padding: 25px 15px;
        border-radius: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .ot-iframe {
        min-height: 500px;
        width: 100%;
    }
}

@media (min-width: 769px) {
   .ticketshop-main {
        padding: 212px 20px 40px; 
   }
}

/* Responsive Design - Mobile */
@media (max-width: 480px) {
    .ticketshop-container {
        padding-bottom: 60px;
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    .ticketshop-header {
        padding: 10px 15px;
        background: rgba(91, 154, 139, 0.98);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo-container {
        max-width: 200px;
    }
    
    .pina-colada-logo {
        max-width: 70px;
        margin-right: 0;
    }
    
    .pina-colada-logo img {
        max-height: 60px;
    }
    
    .logo-container img,
    .logo-container .custom-logo {
       /* max-height: 35px;*/
    }
    
    .site-logo-text {
        font-size: 18px;
    }
    
    .ticketshop-main {
        /*padding: 60px 10px 20px;*/
        align-items: stretch;
        min-height: calc(100vh - 120px);
    }
    
    .ticketshop-wrapper {
        padding: 15px 10px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
    
    .ot-iframe {
        min-height: 500px;
        width: 100%;
    }
    
    /* Mobile Optimizations */
    .ticketshop-container {
        background: linear-gradient(180deg, #5b9a8b 0%, #6ba495 100%);
    }
    
    .ticketshop-container::before,
    .ticketshop-container::after {
        display: none;
    }
    
    /* Add subtle mobile animations */
    .ticketshop-wrapper {
        animation: mobileSlideIn 0.6s ease-out;
    }
    
    .ticketshop-footer {
        position: fixed;
        bottom: 0;
        padding: 15px;
        font-size: 12px;
    }
}

/* Mobile-specific animations */
@keyframes mobileSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {
    .ticketshop-wrapper {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    .site-logo-text {
        padding: 10px;
        margin: -10px;
    }
}

/* Loading state for iframe */
.ot-iframe:empty::before {
    content: 'Loading tickets...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #5b9a8b;
    font-size: 18px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Custom Footer Styles */
.ticketshop-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
    color: var(--ticketshop-text);
}

.ticketshop-footer p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Already defined in main container section */

/* Fix for iOS viewport height */
@supports (-webkit-touch-callout: none) {
    .ticketshop-container {
        min-height: -webkit-fill-available;
    }
}

/* Landscape mode optimizations */
@media (max-width: 812px) and (orientation: landscape) {
    .ticketshop-header {
        padding: 10px 20px;
    }
    
    .logo-container img,
    .logo-container .custom-logo {
     /*   max-height: 30px;*/
    }
    
    .pina-colada-logo {
        max-width: 60px;
    }
    
    .pina-colada-logo img {
        max-height: 50px;
    }
    
    .ticketshop-main {
        padding: 176px 20px 20px;
    }
    
    .ticketshop-wrapper {
        padding: 20px;
    }
    
    .ot-iframe {
        min-height: 350px;
    }
}
