/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;    /* Deep Blue */
    --primary-hover: #1d4ed8;
    --secondary: #f43f5e;  /* Vibrant Rose/Pink for events/specials */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.75rem;
    --font: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid { display: grid; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }

/* Navbar */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar .logo span {
    color: var(--primary);
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    margin-left: 1.5rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-admin-btn {
    margin-left: 1.5rem;
    padding: 0.5rem 1rem !important;
}

.nav-login-link {
    margin-left: 1.5rem;
    color: var(--text-muted);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #e0e7ff 0%, #fae8ff 100%);
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.bar-hero {
    height: 437px;
    display: flex;
    align-items: center;
    background-color: #1e293b;
    color: white;
}

.bar-hero-content {
    width: 850px;
    max-width: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 2.5rem;
    border-radius: var(--radius);
    display: block;
    margin-left: -25%;
}

.bar-name {
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bar-tagline {
    font-size: 1.25rem;
    color: #cbd5e1;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    text-decoration: none;
}

.card-title:hover {
    color: var(--primary);
}

.card-text {
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #e2e8f0;
    color: var(--text-muted);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.badge-event {
    background: #ffe4e6;
    color: #e11d48;
}

.badge-happyhour {
    background: #fef3c7;
    color: #d97706;
}

/* Grids */
.grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Sections */
.section-pad {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-main);
}

/* Footer */
.footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
}

/* Facebook Share Button */
.fb-share-btn {
    background-color: #1877F2;
    color: white;
    display: inline-flex;
    align-items: center;
    border: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
}
.fb-share-btn:hover {
    background-color: #166fe5;
    color: white;
    border: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Responsive Utilities */
.hide-mobile {
    display: block;
}
.hide-desktop {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    .hide-desktop {
        display: block !important;
    }
}

.bar-profile-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-areas: 
        "desc side"
        "events side";
    gap: 2rem;
    align-items: start;
}

.bar-description-section {
    grid-area: desc;
}

.bar-events-section {
    grid-area: events;
}

.bar-sidebar {
    grid-area: side;
}

.content-box {
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

/* Practical Info Expansion Boxes */
.info-details {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

@media (min-width: 769px) {
    .info-details {
        background: transparent;
        border: none;
        box-shadow: none;
        margin-bottom: 1.5rem;
    }
    .info-summary {
        background: transparent !important;
        padding: 0 0 0.5rem 0 !important;
        border-bottom: 1px solid var(--border);
        margin-bottom: 1rem;
        pointer-events: none;
    }
    .info-summary .expand-label {
        display: none;
    }
    .info-content {
        padding: 0 !important;
        border-top: none !important;
    }
}

.info-details:hover:not([open]) {
    box-shadow: var(--shadow-md);
}

.info-summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-main);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    background: #f8fafc;
}

.info-summary::-webkit-details-marker {
    display: none;
}

.info-content {
    padding: 1.25rem;
    border-top: 1px solid var(--border);
}

/* Video details toggle tweak */
details summary::-webkit-details-marker {
    display: none;
}
.expand-label::after {
    content: "▼ ";
    font-size: 0.7rem;
    opacity: 0.5;
}
details[open] .expand-label::after {
    content: "▲ ";
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-pad {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .navbar .logo span {
        font-size: 1.5rem !important;
    }

    /* Mobile Nav */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border);
        z-index: 100;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 0 0 1rem 0;
        font-size: 1.1rem;
    }

    .nav-links .btn {
        margin: 1rem 0 0 0;
        text-align: center;
    }
    
    .nav-admin-btn, .nav-login-link {
        margin-left: 0;
    }

    /* Bar Profile Mobile */
    .bar-hero {
        padding: 0;
        height: 200px;
        min-height: 0;
    }

    .bar-hero-content {
        width: calc(100% - 2rem);
        margin: 0 auto;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.7);
        display: block;
        border-radius: 8px;
    }

    .bar-name {
        font-size: 1.5rem;
        white-space: normal;
        overflow: visible;
        margin-bottom: 0.25rem;
    }

    .bar-tagline {
        font-size: 0.8rem;
    }

    .bar-profile-grid {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "desc"
            "side"
            "events";
        gap: 2rem;
    }

    .bar-badges {
        flex-wrap: wrap;
    }

    /* Event Filters Mobile */
    #event-filters-form .form-control {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
        height: auto;
    }
}


/* Admin Dashboard Styles */
.admin-action-list {
    list-style: none;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-left: 0;
}

.admin-action-list li {
    display: flex;
    align-items: flex-start;
}

.admin-action-list li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    display: inline-block;
    width: 1.25rem;
    flex-shrink: 0;
}

.admin-action-list li a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}


.admin-action-list li a:hover {
    text-decoration: underline;
}


/* Admin Responsive Layouts */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1150px;
    margin: 0 auto;
    align-items: start;
    justify-content: center;
}

/* Mobile: Sidebar (Guidance) on top, Main form below */
.admin-sidebar { order: 1; }
.admin-main { order: 2; }


@media (min-width: 1024px) {
    .admin-grid {
        grid-template-columns: minmax(0, 800px) 300px;
    }
    /* Desktop: Main form on left, Sidebar on right */
    .admin-main { 
        grid-column: 1;
        order: 1; 
    }
    .admin-sidebar { 
        grid-column: 2;
        order: 2; 
        position: sticky; 
        top: 2rem; 
    }
}



.responsive-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .responsive-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.tab-nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}


.tab-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.sub-nav-container {
    position: relative;
    max-width: 1150px;
    margin: 0 auto 1.5rem auto;
}

.sub-nav-toggle {
    display: none;
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 700;
    font-family: var(--font);
    color: var(--primary);
    text-align: left;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.sub-nav-toggle::after {
    content: '☰';
    font-size: 1.25rem;
}

@media (max-width: 1023px) {
    .sub-nav-toggle { 
        display: flex; 
    }
    .tab-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        margin-top: 0.5rem;
        overflow: hidden;
    }
    .tab-nav.active { 
        display: flex; 
    }
    .tab-nav a {
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--border);
        margin: 0 !important;
        border-bottom-width: 1px !important;
    }
    .tab-nav a:last-child { 
        border-bottom: none; 
    }
}

.guidance-details summary {
    padding: 1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 700;
    color: #92400e;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guidance-details summary::after {
    content: '▼';
    font-size: 0.8rem;
}

.guidance-details[open] summary::after {
    content: '▲';
}

@media (min-width: 1024px) {
    .guidance-details summary {
        display: none;
    }
    .guidance-details[open] .guidance-content {
        display: block !important;
    }
}


/* Admin Drop Zone */
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--bg-light);
    cursor: pointer;
    position: relative;
}

.drop-zone:hover {
    border-color: var(--primary);
    background: #f0f7ff;
}

.drop-zone.drag-over {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
    transform: scale(1.005);
    box-shadow: var(--shadow-md);
}

.drop-zone svg {
    color: var(--text-muted);
    transition: color 0.3s;
}

.drop-zone.drag-over svg, .drop-zone:hover svg {
    color: var(--primary);
}
