/* ===============================================
   VENUE.CSS - VENUE DETAILS, BEER LIST, GF STATUS
   =============================================== */


/* ================================
   VENUE DETAILS OVERLAY
   ================================ */

.venue-details-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.venue-details-card {
    background: var(--bg-white);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.venue-details-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 var(--space-xl);
}

.venue-header {
    text-align: center;
    padding-bottom: var(--space-sm);
}

.venue-title {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-top: var(--space-sm);
    margin-bottom: 0;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.venue-address {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
    font-weight: 500;
}

.venue-location {
    color: var(--text-muted);
    font-size: var(--text-md);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#venueDetailsOverlay .status-card {
    background: linear-gradient(135deg, var(--bg-purple) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 2px solid var(--border-purple);
    border-radius: var(--radius-xl);
    padding-bottom: var(--space-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

#venueDetailsOverlay .status-card::before {
    content: '🍺';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 5rem;
    opacity: 0.1;
    transform: rotate(-15deg);
}

#venueDetailsOverlay .status-question {
    font-weight: 700;
    color: var(--text-primary);
    margin: var(--space-xs) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#venueDetailsOverlay .current-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

#venueDetailsOverlay .current-status .status-icon {
    font-size: 2rem;
    line-height: 1;
}

#venueDetailsOverlay .current-status .status-text {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
}

#venueDetailsOverlay .current-status .status-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

#venueDetailsOverlay .status-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    justify-content: center;
    margin: var(--space-lg) var(--space-xl) 0;
}

#venueDetailsOverlay .status-actions .btn-outline {
    background: var(--primary-gradient);
    color: white;
    border: 2px solid var(--border-purple);
    flex: 1;
    font-weight: 600;
}

#venueDetailsOverlay .status-actions .btn-confirm {
   background: var(--green-gradient);
}

#venueDetailsOverlay .status-actions .btn-outline:hover {
    background: var(--bg-purple);
    transform: translateY(-1px);
}

#venueDetailsOverlay .status-confirmation {
   background: grey;
   border-radius: var(--radius-pill);
   display: flex;
   justify-content: center;
   margin: var(--space-sm) var(--space-4xl);
   color: white;
   font-size: var(--text-sm);
}

/* Beer Section */
.beer-section {
   background: linear-gradient(135deg, var(--light-orange) 0%, rgba(16, 185, 129, 0.02) 100%);
   border-radius: var(--radius-xl);
   padding: var(--space-lg);
   margin: var(--space-xl) 0;
   position: relative;
   overflow: hidden;
   border: 2px solid var(--light-orange);
   border-left: 6px solid var(--orange);
}

.beer-section::before {
    content: '🍺';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 4rem;
    opacity: 0.1;
    pointer-events: none;
}

.beer-section-title {
   display: flex;
   align-items: center;
   font-size: var(--text-lg);
   font-weight: 700;
   color: var(--text-primary);
   margin-bottom: var(--space-lg);
   line-height: 1.2;
   justify-content: center;
}

.beer-status {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.beer-status strong {
    color: var(--text-primary);
    font-weight: 700;
}

.beer-status em {
    color: var(--text-muted);
    font-size: 0.85rem;
}

#venueDetailsOverlay .btn-primary {
   background: var(--orange-gradient);
   width: 100%;
   padding: var(--space-md);
   margin-top: var(--space-lg);
}

/* Venue Action Grid */
.venue-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: var(--space-xl);
    background: var(--bg-white);
    border-top: 1px solid var(--divider-color);
    margin-top: auto;
}

.venue-action-grid .btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.venue-action-grid .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.venue-action-grid .btn:hover::before {
    left: 100%;
}

.venue-action-grid .btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.venue-action-grid .btn-external {
    background: var(--info-gradient);
    color: var(--text-white);
}

/* ============================
   REDESIGNED BEER LIST STYLES
   ============================ */

/* ============================
   BEER LIST MODAL - COMPLETE CSS
   Delete your old beer list styles and use this
   ============================ */

/* Container */
.beer-list-modal .modal-content {
    max-width: min(95vw, 500px);
    max-height: min(90vh, 750px);
}

/* Fun header with floating beers */
.beer-header {
    position: relative;
    overflow: hidden;
    padding: clamp(1.25rem, 4vw, 2rem);
    text-align: center;
    color: white;
}

.header-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.beer-emoji.floating {
    position: absolute;
    font-size: clamp(1.25rem, 3.5vw, 2rem);
    opacity: 0.15;
    animation: floatBeer 15s infinite ease-in-out;
}

.beer-emoji.floating:nth-child(1) { left: 10%; top: 20%; }
.beer-emoji.floating:nth-child(2) { left: 70%; top: 60%; animation-delay: 5s; }
.beer-emoji.floating:nth-child(3) { left: 85%; top: 30%; animation-delay: 10s; }

@keyframes floatBeer {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(5deg); }
    66% { transform: translateY(20px) rotate(-5deg); }
}

.beer-header .modal-title {
    color: white;
    margin: 0 0 0.25rem;
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    position: relative;
    z-index: 1;
}

.beer-header .modal-subtitle {
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    position: relative;
    z-index: 1;
}

/* Beer list scrollable area */
.beer-list-content {
    max-height: clamp(300px, 50vh, 500px);
    overflow-y: auto;
    padding: 0 clamp(0.75rem, 2.5vw, 1rem) clamp(0.75rem, 2.5vw, 1rem);
    -webkit-overflow-scrolling: touch;
}

/* Beer cards - MORE PLAYFUL */
.beer-card {
    background: var(--orange-gradient);
    border: 2px solid #fed7aa;
    border-radius: clamp(12px, 3vw, 16px);
    padding: clamp(0.875rem, 2.5vw, 1.25rem);
    margin-bottom: clamp(0.5rem, 2vw, 0.875rem);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.beer-card:hover {
    transform: translateY(-2px) rotate(0.5deg);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}

.beer-card-header {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2.5vw, 1.25rem);
}

/* Beer icon with more personality */
.beer-icon-wrapper {
    width: clamp(40px, 10vw, 52px);
    height: clamp(40px, 10vw, 52px);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: clamp(10px, 2.5vw, 14px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.25rem, 3.5vw, 1.75rem);
    animation: wiggle 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    flex-shrink: 0;
}

.beer-icon-wrapper.bottle {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.beer-main-info {
    flex: 1;
}

.beer-name {
    font-size: clamp(0.95rem, 2.8vw, 1.2rem);
    font-weight: 700;
    color: white;
    margin: 0 0 clamp(0.125rem, 1vw, 0.25rem);
}

.brewery-tag {
    display: inline-flex;
    align-items: center;
    gap: clamp(0.125rem, 1vw, 0.25rem);
    background: white;
    padding: clamp(0.2rem, 1vw, 0.3rem) clamp(0.5rem, 2vw, 0.875rem);
    border-radius: 20px;
    font-size: clamp(0.75rem, 2.2vw, 0.9rem);
    color: white;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
}

.brewery-icon {
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.brewery-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: clamp(120px, 35vw, 200px);
}

/* Three dots menu button */
.btn-more {
    width: clamp(28px, 8vw, 36px);
    height: clamp(28px, 8vw, 36px);
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    padding: 0;
    transition: all 0.3s ease;
    border-radius: 8px;
    flex-shrink: 0;
}

.btn-more:hover {
    background: #f59e0b;
    border-color: #f59e0b;
}

.btn-more span {
    width: 4px;
    height: 4px;
    background: #92400e;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-more:hover span {
    background: white;
}

/* Badges - MORE COLORFUL */
.beer-card-details {
    margin-top: clamp(0.5rem, 2vw, 0.875rem);
    padding-top: clamp(0.5rem, 2vw, 0.875rem);
    border-top: 2px dashed #fed7aa;
}

.beer-badges {
    display: flex;
    gap: clamp(0.375rem, 1.5vw, 0.625rem);
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: clamp(0.125rem, 1vw, 0.25rem);
    padding: clamp(0.2rem, 1vw, 0.3rem) clamp(0.4rem, 2vw, 0.75rem);
    border-radius: 20px;
    font-size: clamp(0.7rem, 2vw, 0.85rem);
    font-weight: 600;
    border: 1px solid transparent;
}

.badge-tap {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border-color: #d97706;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.3);
}

.badge-bottle {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: white;
    border-color: #059669;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

.badge-style {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #5b21b6;
    border-color: #a78bfa;
}

.badge-verified {
    background: linear-gradient(135deg, #bbf7d0 0%, #86efac 100%);
    color: #14532d;
    border-color: #22c55e;
}

.badge-unverified {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    color: #7f1d1d;
    border-color: #ef4444;
}

/* Dropdown menu */
.beer-dropdown-menu {
    position: absolute;
    top: clamp(50px, 12vw, 65px);
    right: clamp(0.75rem, 2vw, 1rem);
    background: white;
    border: 2px solid #fed7aa;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
    padding: clamp(0.375rem, 1.5vw, 0.625rem);
    display: none;
    z-index: 10;
    min-width: clamp(150px, 40vw, 200px);
}

.beer-dropdown-menu.active {
    display: block;
    animation: slideDown 0.2s ease;
}

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

.beer-dropdown-menu button {
    width: 100%;
    padding: clamp(0.4rem, 1.5vw, 0.625rem) clamp(0.5rem, 2vw, 0.875rem);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: clamp(0.8rem, 2.3vw, 0.95rem);
    color: #78350f;
    font-weight: 500;
}

.beer-dropdown-menu button:hover {
    background: #fef3c7;
    color: #451a03;
}

.beer-dropdown-menu button.danger {
    color: #ef4444;
}

.beer-dropdown-menu button.danger:hover {
    background: #fef2f2;
}

/* Empty state - MORE FUN */
.beer-list-empty {
    text-align: center;
    padding: clamp(2rem, 8vw, 3.5rem) clamp(1rem, 3vw, 1.5rem);
}

.empty-animation {
    position: relative;
    display: inline-block;
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
}

.empty-beer {
    font-size: clamp(3rem, 10vw, 5rem);
    opacity: 0.3;
    display: block;
    animation: float 3s ease-in-out infinite;
}

.empty-question {
    position: absolute;
    top: 0;
    right: -10px;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    animation: bounce 2s infinite;
    color: #f59e0b;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(10deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.beer-list-empty h4 {
    color: #92400e;
    margin: clamp(0.375rem, 1.5vw, 0.625rem) 0;
    font-size: clamp(1rem, 3vw, 1.25rem);
}

.beer-list-empty p {
    color: #78350f;
    margin: 0 0 clamp(0.75rem, 2.5vw, 1.25rem);
    font-size: clamp(0.85rem, 2.5vw, 1rem);
}

/* Mobile optimizations - REMOVED as we're using clamp throughout */
/* Specific iPhone 13 adjustments if needed */
@media (min-width: 389px) and (max-width: 395px) and (min-height: 840px) {
    .beer-list-modal .modal-content {
        max-height: calc(100vh - 2rem);
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .brewery-name {
        max-width: 110px;
    }
    
    .beer-badges {
        gap: 0.25rem;
    }
}

/* Scrollbar styling */
.beer-list-content::-webkit-scrollbar {
    width: 6px;
}

.beer-list-content::-webkit-scrollbar-track {
    background: #fef3c7;
    border-radius: 3px;
}

.beer-list-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 3px;
}

.beer-list-content::-webkit-scrollbar-thumb:hover {
    background: #d97706;
}

.status-display {
   display: flex;
   flex-direction: column;
}

.status-icon {
   font-size: 2rem;
}

/* Venue Added Modal Styles */
.venue-added-modal .modal-content {
    max-width: 420px;
    border-radius: 20px;
    overflow: hidden;
}

.venue-added-modal .gradient-header {
    color: white;
    padding: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.venue-added-modal .modal-title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.venue-added-modal .modal-subtitle {
    font-size: clamp(0.9rem, 2vw, 1rem);
    opacity: 0.95;
    margin: 0;
    font-weight: 500;
}

.venue-added-modal .modal-body {
    padding: clamp(1.5rem, 4vw, 2rem);
}

/* Success Message Styling */
.success-message {
    text-align: center;
}

.success-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    border-radius: 50%;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.success-checkmark {
    font-size: 2rem;
}

.success-text {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.success-points {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.points-icon {
    font-size: 1.2rem;
    animation: sparkle 1s ease-in-out infinite;
}

/* Action Prompt Styling */
.venue-actions-prompt {
    background: var(--bg-secondary, #f8f9fa);
    border-radius: 12px;
    padding: clamp(1rem, 3vw, 1.5rem);
}

.prompt-text {
    text-align: center;
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: clamp(0.75rem, 2vw, 1rem);
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-success {
    background: var(--green-gradient);
    color: white;
    border: none;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56, 239, 125, 0.4);
}

.btn-subtle {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-subtle:hover {
    background: rgba(0, 0, 0, 0.08);
}

.btn-icon {
    font-size: 1.2rem;
}

/* Floating animation for header emojis */
.header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.venue-emoji {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.venue-emoji:nth-child(1) { left: 10%; top: 20%; }
.venue-emoji:nth-child(2) { right: 15%; top: 60%; animation-delay: 2s; }
.venue-emoji:nth-child(3) { left: 80%; bottom: 20%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}
