/*
Theme Name: Wi Outside Events Theme
Theme URI: https://wioutside.com
Author: Wi Outside
Author URI: https://wioutside.com
Description: Modern event listing theme matching Meetups X design
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wioutside-theme
Tags: events, modern, responsive, caribbean
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    --primary-blue: #4F46E5;
    --primary-blue-dark: #4338CA;
    --primary-blue-light: #818CF8;
    --purple: #A78BFA;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB;
    --border-radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ==========================================================================
   Container & Layout
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.site-logo img, .site-logo img.custom-logo {
    max-height: 60px;
    max-width: 200px !important;
    width: auto;
    height: auto;
}

.site-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    color: var(--text-gray);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-page-item > a {
    color: var(--primary-blue);
}

/* Dropdown menu support */
.main-nav .menu-item-has-children {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
    padding: 8px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
}

.main-nav .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .sub-menu li {
    width: 100%;
}

.main-nav .sub-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text-dark);
}

.main-nav .sub-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: white;
}

@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    padding: 80px 0 60px;
    text-align: center;
}

.hero-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 3.5em;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.125em;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5em;
    }
    
    .hero-description {
        font-size: 1em;
    }
}

/* ==========================================================================
   Search & Filters
   ========================================================================== */

.search-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.search-input,
.filter-select {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 15px;
    font-family: inherit;
    background: white;
    transition: all 0.3s ease;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-input {
    padding-left: 44px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 17C13.4183 17 17 13.4183 17 9C17 4.58172 13.4183 1 9 1C4.58172 1 1 4.58172 1 9C1 13.4183 4.58172 17 9 17Z' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M19 19L14.65 14.65' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 16px center;
}

@media (max-width: 768px) {
    .search-filters {
        flex-direction: column;
    }
    
    .search-input,
    .filter-select {
        width: 100%;
    }
}

/* ==========================================================================
   Event Cards
   ========================================================================== */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.event-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.event-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-card-image img {
    transform: scale(1.05);
}

.event-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.event-badge {
    padding: 6px 12px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.badge-category {
    background: var(--primary-blue);
    color: white;
}

.badge-category.purple {
    background: var(--purple);
}

.badge-type {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.event-card-content {
    padding: 20px;
}

.event-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.event-card-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.event-card-description {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
}

.event-card-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
}

/* Featured Badge */
.event-featured-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--purple);
    color: white;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-title {
    font-size: 2.5em;
    font-weight: 800;
    color: var(--text-dark);
}

.section-nav {
    display: flex;
    gap: 8px;
}

.section-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-nav-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* ==========================================================================
   Featured Events Carousel
   ========================================================================== */

.featured-events {
    margin-bottom: 80px;
}

.featured-events-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
}

.featured-events-carousel::-webkit-scrollbar {
    height: 6px;
}

.featured-events-carousel::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.featured-events-carousel::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.featured-events-carousel::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

.featured-event-card {
    min-width: 400px;
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .featured-event-card {
        min-width: 320px;
    }
}

/* ==========================================================================
   Single Event Page
   ========================================================================== */

.single-event-hero {
    position: relative;
    width: 100%;
    height: 500px;
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.single-event-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 16px;
    background: white;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.event-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-bottom: 60px;
}

.event-main-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.event-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.event-info-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.event-date-card {
    background: var(--primary-blue);
    color: white;
    padding: 24px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 24px;
}

.event-date-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.event-date-value {
    font-size: 24px;
    font-weight: 700;
}

.event-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.event-detail-item:last-child {
    border-bottom: none;
}

.event-detail-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.event-detail-content {
    flex: 1;
}

.event-detail-label {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.event-detail-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.register-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 24px;
    transition: all 0.3s ease;
}

.register-btn:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 1024px) {
    .event-layout {
        grid-template-columns: 1fr;
    }
    
    .event-sidebar {
        position: static;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--bg-light);
    padding: 0 0 40px;
    margin-top: 80px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-heading {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-gray);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.footer-links-icons li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 18px;
}

.footer-link-subtitle {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.footer-social li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.social-icon.facebook {
    background: #1877F2;
}

.social-icon.twitter {
    background: #1DA1F2;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #F56040, #E1306C, #C13584);
}

.social-icon.linkedin {
    background: #0077B5;
}

.social-icon.youtube {
    background: #FF0000;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
    font-size: 14px;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-0 {
    margin-top: 0;
}

/* ==========================================================================
   App Download Banner
   ========================================================================== */

.app-download-banner {
    background: #00A896;
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 40px;
    text-align: center;
}

.app-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.open-app-btn {
    background: #FF7043;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.open-app-btn:hover {
    background: #E64A19;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.download-note {
    color: white;
    font-size: 14px;
    margin: 0;
}

.store-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-button {
    display: inline-block;
}

.store-button img {
    height: 40px;
    width: auto;
    border-radius: var(--border-radius);
}
