/*
Theme Name: Gigaton Venue Theme
Description: Complete venue website solution with live event integration, booking forms, and mobile-responsive design. Features VenuePilot API integration for real-time event display, centralized email system, and customizable branding. Perfect for music venues, theaters, and event spaces. Setup: Install plugin, configure venue settings, add VenuePilot credentials, and customize colors/logo.
Version: 2.0.0
Author: Gigaton LLC
Author URI: https://gigaton.ai/collective
*/

/* Gigaton Venue Theme Styles */

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #a855f7;
    --text-color: #ffffff;
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --border-color: #334155;
    --gigaton-purple: #6366f1;
    --gigaton-secondary: #8b5cf6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--gigaton-purple) 0%, var(--gigaton-secondary) 100%);
}

.header img {
    max-width: 500px;
    height: auto;
}

.header p {
    margin-top: 1rem;
    font-size: 1.125rem;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.event-card {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-image {
    width: 100%;
    height: 210px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

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

/* Featured Events - Slightly taller for better poster visibility */
.featured-events .event-image {
    height: 235px;
}

.featured-events .event-image img {
    object-position: center top;
}

/* All Upcoming Events - Align images to top to show poster titles */
.all-events .event-image img {
    object-position: center top;
}

.event-content {
    padding: 1.5rem;
    background: var(--card-bg);
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Add semi-transparent overlay for better text readability */
.event-card .event-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.1) 0%,
        rgba(15, 23, 42, 0.8) 70%,
        rgba(15, 23, 42, 0.95) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.event-content > * {
    position: relative;
    z-index: 2;
}

/* Ensure consistent button positioning */
.event-content .btn {
    margin-top: auto;
    align-self: flex-start;
}

.event-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.event-date {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.event-description {
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
    transform: translateY(-1px);
}

.btn-secondary {
    border: 2px solid rgba(139, 92, 246, 0.6);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(139, 92, 246, 0.1);
}

.btn-secondary:hover {
    border-color: rgba(236, 72, 153, 0.8);
    background: rgba(236, 72, 153, 0.2);
    color: #ffffff;
}

/* Featured Events */
.featured-events {
    padding: 4rem 0;
    background-color: rgba(15, 23, 42, 0.8);
}

.featured-events h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    font-weight: 600;
}

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

/* Smooth transition for featured events rotation */
#featured-events-container {
    transition: opacity 0.3s ease-in-out;
}

.all-events {
    padding: 4rem 0;
}

.all-events h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    font-weight: 600;
}

.all-events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-height: 800px;
    overflow-y: auto;
    padding-right: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

/* Custom scrollbar styling for webkit browsers */
.all-events-grid::-webkit-scrollbar {
    width: 8px;
}

.all-events-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.all-events-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.all-events-grid::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.event-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.event-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.event-placeholder::before {
    content: "📅";
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.event-placeholder::after {
    content: "No image available";
    font-size: 0.75rem;
    opacity: 0.5;
    margin-top: 0.25rem;
}

.event-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.contact-info h2 {
    text-align: center;
}

.contact-info .container > div[style*="grid"] {
    align-items: stretch;
}

.contact-info .container > div[style*="grid"] > div {
    display: flex;
    flex-direction: column;
}

.contact-card {
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 200px;
}

.contact-card .btn {
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.contact-card p {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1f2937;
    color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    background: #374151;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-response {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.form-response.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-response.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.form-footer {
    margin-top: 1.5rem;
}

/* Modal Form Specific Styles */
.modal form {
    width: 100%;
}

.modal form .btn {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
    display: block;
}

.modal .form-group:last-of-type {
    margin-bottom: 1.5rem;
}

/* Checkbox styling in forms */
.form-group label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    display: inline-block;
    vertical-align: middle;
}

.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 2px solid #374151;
    border-top: 2px solid #8b5cf6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Transitions */
.fade-transition {
    transition: opacity 0.5s ease-in-out;
}

.fade-transition.transitioning {
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .all-events-grid {
        grid-template-columns: repeat(3, 1fr);
        max-height: 700px;
    }
}

@media (max-width: 900px) {
    .all-events-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 600px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .featured-events h2,
    .all-events h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .event-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }
    
    .event-content h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .event-details {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .all-events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-height: 70vh;
        padding: 1rem;
        margin: 0 -1rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .header {
        padding: 1.5rem 0;
    }
    
    .header img {
        max-width: 280px;
    }
    
    .venue-logo h1 {
        font-size: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-info > div {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-content {
        margin: 0.5rem;
        width: calc(100% - 1rem);
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    /* Better touch scrolling for mobile */
    .all-events-grid::-webkit-scrollbar {
        width: 4px;
    }
    
    .all-events-grid::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .all-events-grid::-webkit-scrollbar-thumb {
        background: rgba(139, 92, 246, 0.5);
        border-radius: 2px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .event-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .event-content h3 {
        font-size: 1.1rem;
    }
    
    .all-events-grid {
        gap: 1rem;
        padding: 0.75rem;
        margin: 0 -0.75rem;
        max-height: 65vh;
    }
    
    .header img {
        max-width: 240px;
    }
    
    .venue-logo h1 {
        font-size: 1.75rem;
    }
    
    .event-content,
    .contact-card {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .social-media-links {
        gap: 0.75rem;
    }
    
    .social-icon {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Social Media Icons */
.social-media-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.social-icon:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    color: white;
    text-decoration: none;
}

.social-icon i {
    line-height: 1;
}

/* Focus styles */
.btn:focus,
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: 2px solid rgba(139, 92, 246, 0.5);
    outline-offset: 2px;
}

.social-icon:focus {
    outline: 2px solid rgba(139, 92, 246, 0.8);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .modal,
    .btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Footer Logo Hover Effect */
footer a:hover img {
    opacity: 0.8 !important;
}

/* Hide WordPress Admin Bar on Frontend */
#wpadminbar {
    display: none !important;
}

html {
    margin-top: 0 !important;
}

/* Mobile Menu Styling Fix */
@media (max-width: 768px) {
    .mobile-menu {
        background: var(--card-bg) !important;
        border: 1px solid var(--border-color) !important;
    }
    
    .mobile-menu button {
        background: var(--primary-color) !important;
        color: white !important;
    }
}
