/* =========================================
   Animations & Motion Effects
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Scroll Reveal Base State */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Hover Effects */
.action-card {
    /* Existing styles preserved */
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.action-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.4s ease;
}

.gallery-item-standalone {
    /* Existing styles preserved */
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-item-standalone:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    z-index: 2;
}

.gallery-item-standalone img {
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Button Pulse Effect */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}

.btn:not(.btn-outline):hover {
    animation: pulse-glow 1.5s infinite;
}

/* =========================================
   Standalone Venue Page Base Styles
   ========================================= */
.standalone-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.standalone-header h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: bold;
}

.standalone-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.standalone-nav {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.standalone-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.standalone-nav li {
    margin: 0;
}

.standalone-nav a {
    display: block;
    padding: 15px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.standalone-nav a:hover,
.standalone-nav a.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #f8f9fa;
}

.standalone-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.standalone-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.standalone-hero h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.standalone-section {
    margin-bottom: 50px;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.standalone-section h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e5e5;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-item span {
    font-size: 24px;
}

.info-item div {
    flex: 1;
}

.info-item strong {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.action-card:hover {
    background: #fff;
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.action-card .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.action-card h4 {
    margin: 0;
    font-size: 18px;
}

.standalone-footer {
    background: #2c3e50;
    color: #fff;
    padding: 30px 20px;
    text-align: center;
    margin-top: 50px;
}

.standalone-footer p {
    margin: 5px 0;
}

.footer-info {
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.8;
}

.footer-admin-link {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-admin-link:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .standalone-header h1 {
        font-size: 24px;
    }
    
    .standalone-nav ul {
        flex-direction: column;
    }
    
    .standalone-nav a {
        border-bottom: 1px solid #e5e5e5;
        border-left: 3px solid transparent;
    }
    
    .standalone-nav a.active {
        border-left-color: #667eea;
    }
    
    .standalone-container {
        padding: 20px 15px;
    }
    
    .standalone-section {
        padding: 20px 15px;
    }
}

/* =========================================
   Services Page Styles
   ========================================= */
.services-section {
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.services-grid.small-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.service-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ticket-card {
    border-left: 4px solid #667eea;
}

.equipment-card {
    padding: 15px;
}

.other-service {
    text-align: center;
}

.service-card h4 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 18px;
}

.service-card .price {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 10px;
}

.service-card .price-small {
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 5px;
}

.service-card .description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.service-card .meta-info {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
}

.service-card .stock-info {
    color: #27ae60;
    font-size: 12px;
}

.service-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.btn-block {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

.empty-state {
    text-align: center;
    color: #999;
    padding: 20px;
}

/* =========================================
   Slideshow Styles
   ========================================= */
.slideshow-container {
    position: relative;
    max-width: 100%;
    height: 400px; /* Default height */
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.slide-wrapper {
    display: none;
    height: 100%;
    width: 100%;
}

.slide-wrapper.active {
    display: block;
}

/* Since the PHP uses absolute positioning for slides, we need to ensure the container handles it */
.slideshow-container .slide-wrapper {
    /* PHP sets inline styles for position, but we add transition if needed */
    transition: opacity 0.5s ease-in-out;
}

/* Overwrite the inline style logic if needed, but PHP uses classes active/inactive */
.slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1; /* Default to visible */
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-nav:hover {
    background: rgba(0, 0, 0, 0.6);
}

.slide-nav.prev {
    left: 20px;
}

.slide-nav.next {
    right: 20px;
}

.slide-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active, .dot:hover {
    background: #fff;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    z-index: 5;
}

.slide-content h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.slide-content p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

/* =========================================
   Announcement Styles
   ========================================= */
.announcement-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-item:hover {
    background: #f9f9f9;
}

.announcement-item.priority {
    background: #fff8f0;
    border-left: 3px solid #f39c12;
}

.announcement-item h4 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #333;
}

.announcement-item .date {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

/* =========================================
   Activity Styles
   ========================================= */
.activity-item {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fff;
    transition: all 0.3s;
}

.activity-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-2px);
    border-color: #667eea;
}

.activity-item h4 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #2c3e50;
}

.activity-item p {
    margin: 5px 0 0;
    color: #666;
}

/* =========================================
   Gallery Styles
   ========================================= */
.gallery-grid-standalone {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item-standalone {
    position: relative;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-item-standalone:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.gallery-item-standalone img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item-standalone:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-title {
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================
   Button Styles
   ========================================= */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    border: 1px solid #667eea;
    cursor: pointer;
    font-weight: 500;
}

.btn:hover {
    background: #5a6fd1;
    border-color: #5a6fd1;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.btn-outline {
    background: transparent;
    color: #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* =========================================
   Lightbox Styles
   ========================================= */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

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

.lightbox img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.lightbox-info {
    color: white;
    margin-top: 15px;
    text-align: left;
}

.lightbox-info h3 {
    margin: 0 0 5px;
    font-size: 20px;
}

.lightbox-info p {
    margin: 0;
    opacity: 0.8;
}

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

.lightbox-close:hover {
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .slideshow-container {
        height: 250px;
    }
    
    .slide-content h3 {
        font-size: 18px;
    }
    
    .gallery-grid-standalone {
        grid-template-columns: repeat(2, 1fr);
    }
}
