/* Ganj - Web Interface Styles */

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

body {
    font-family: 'Cabin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #140f24;
    min-height: 100vh;
    color: #ffffff;
    line-height: 1.6;
    font-weight: 400; /* Ensure normal weight for body */
}

.container {
    width: 1400px;
    max-width: calc(100vw - 40px);
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Logo */
.logo-container {
    margin-bottom: 15px;
}

.logo {
    max-height: 80px;
    height: auto;
    width: auto;
    max-width: 200px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

/* Navigation */
.page-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.page-nav a {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

.page-nav a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.page-nav a.active {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Menus Grid */
.menus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.menu-card__stats {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.shop-city {
    font-weight: normal;
    opacity: 0.8;
    margin-left: 8px;
}

.menu-card__address {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 4px;
}

.no-menus {
    text-align: center;
    padding: 60px 20px;
    background: rgba(26, 13, 46, 0.6);
    border-radius: 20px;
    margin-top: 30px;
}

.no-menus h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.no-menus p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.upload-btn {
    display: inline-block;
    background: rgba(185, 103, 219, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: rgba(185, 103, 219, 1);
    transform: translateY(-2px);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: rgba(20, 15, 36, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-sizing: border-box;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 60px;
}

.nav-item:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.nav-icon {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Body padding for bottom nav */
body {
    padding-bottom: 80px;
}

/* Logo clickable styling */
.logo-container a {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease;
}

.logo-container a:hover {
    transform: scale(1.05);
}

/* Remove old page-nav styles */
.page-nav {
    display: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .logo {
        max-height: 60px;
        max-width: 150px;
    }
    
    .menus-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .nav-icon {
        font-size: 1.1rem;
    }
    
    .nav-label {
        font-size: 0.7rem;
    }
    
    .nav-item {
        padding: 6px 8px;
        min-width: 50px;
    }
}

/* Upload Form */
.upload-form {
    background: rgba(26, 13, 46, 0.8);
    border: 1px solid rgba(185, 103, 219, 0.2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
}

.form-help {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
    font-style: italic;
}

/* File Upload */
.file-upload {
    position: relative;
    border: 2px dashed rgba(185, 103, 219, 0.5);
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(20, 15, 36, 0.5);
}

.file-upload:hover {
    border-color: #b967db;
    background-color: rgba(185, 103, 219, 0.1);
}

.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-text {
    pointer-events: none;
}

#file-text {
    font-size: 1.1rem;
    color: #ffffff;
}

.file-preview {
    margin-top: 15px;
    text-align: center;
}

.file-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Shop Search */
.shop-search {
    position: relative;
}

.shop-search input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(185, 103, 219, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(20, 15, 36, 0.8);
    color: #ffffff;
    transition: border-color 0.3s ease;
}

.shop-search input:focus {
    outline: none;
    border-color: #b967db;
}

.shop-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.shop-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 13, 46, 0.95);
    border: 1px solid rgba(185, 103, 219, 0.3);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.shop-result {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(185, 103, 219, 0.2);
}

.shop-result:hover {
    background-color: rgba(185, 103, 219, 0.2);
}

.shop-result:last-child {
    border-bottom: none;
}

.shop-result .name {
    font-weight: 600;
    color: #ffffff;
}

.shop-result .address {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

.selected-shop {
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-shop #selected-shop-name {
    font-weight: 600;
    color: #2e7d2e;
}

.selected-shop #clearShop {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Submit Button */
button[type="submit"] {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff0080 0%, #b967db 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.3);
}

button[type="submit"]:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 128, 0.5);
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Messages */
.error-message, .success-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 500;
}

.error-message {
    background-color: #ffe6e6;
    color: #d63447;
    border: 1px solid #ffb3b3;
}

.success-message {
    background-color: #e8f5e8;
    color: #2e7d2e;
    border: 1px solid #4caf50;
}

/* Processing Page */
.processing-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.status-card {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #ff0080 0%, #b967db 100%);
    width: 0%;
    transition: width 0.5s ease;
}

.status-message {
    margin-bottom: 20px;
}

.status-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.status-message h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.status-message p {
    color: #666;
    font-size: 1rem;
}

/* Processing Animation */
.processing-animation .dots {
    display: inline-block;
    margin-top: 20px;
}

.processing-animation .dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #667eea;
    margin: 0 2px;
    animation: loading 1.4s infinite ease-in-out both;
}

.processing-animation .dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.processing-animation .dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loading {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Results Section */
.results-section h3 {
    color: #2e7d2e;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.result-stat {
    text-align: left;
}

.stat-label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    color: #333;
}

.sample-items {
    text-align: left;
    margin-bottom: 25px;
}

.sample-items h4 {
    margin-bottom: 15px;
    color: #555;
}

.items-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.item {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.item-name {
    font-weight: 600;
    color: #333;
}

.item-details {
    font-size: 0.9rem;
    color: #666;
    margin-top: 2px;
}

.processing-info {
    background: #f0f2ff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    text-align: left;
}

.processing-info p {
    margin-bottom: 5px;
}

/* Error Section */
.error-section h3 {
    color: #d63447;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.error-section p {
    color: #666;
    margin-bottom: 20px;
}

/* Buttons */
.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-btn, .secondary-btn, .retry-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.secondary-btn {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.retry-btn {
    background: #ffc107;
    color: #333;
}

.primary-btn:hover, .secondary-btn:hover, .retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Info Sections */
.info-section, .info-note {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.info-section h3, .info-section h4 {
    color: #333;
    margin-bottom: 15px;
}

.info-section ol, .info-section ul {
    margin-left: 20px;
}

.info-section li {
    margin-bottom: 8px;
}

.tips {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Footer */
footer {
    text-align: center;
    margin-top: auto;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .upload-form, .processing-section, .info-section {
        padding: 20px;
    }
    
    .file-upload {
        padding: 30px 15px;
    }
    
    .results-summary {
        grid-template-columns: 1fr;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .primary-btn, .secondary-btn, .retry-btn {
        width: 100%;
    }
}

/* Navigation */
.page-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.page-nav a {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.page-nav a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.page-nav a.active {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

/* Homepage */
.homepage-content {
    flex: 1;
}

.hero-section {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.hero-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Desktop 2-column grid layout */
.menu-updates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Tightened menu cards with proper alignment */
.menu-card {
    background: #1f1238;
    border-radius: 12px;
    padding: 0.75rem 1.25rem 1.25rem 1.25rem;
    border: 1px solid rgba(185, 103, 219, 0.15);
    cursor: pointer;
    font-family: 'Cabin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    border-color: #b967db;
    background: rgba(26, 13, 46, 0.95);
}

.menu-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    min-height: fit-content;
    margin: 0; /* Reset any browser default header margins */
    padding: 0; /* Reset any browser default header padding */
}

.menu-card__content {
    flex: 1;
    min-width: 0; /* Prevent flex overflow */
    text-align: left; /* Force left alignment */
}

.menu-card__title {
    font-size: 1.125rem;
    font-weight: 400; /* Normal weight for the container - city will use this */
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    text-align: left; /* Force left alignment */
}

.menu-card__title strong {
    font-weight: 700; /* Heavy weight for shop names - strong contrast */
}

.menu-card__title a {
    color: #ffffff;
    text-decoration: none;
}

.menu-card__title a:hover {
    color: #b967db;
}

.city-label {
    font-weight: 400;
    opacity: 0.7;
    font-size: 0.95em;
}

.menu-card__upload-date {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    margin: 0;
    font-weight: 400;
    line-height: 1.3;
    text-align: left; /* Force left alignment */
}

.menu-card__actions {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
    line-height: 1;
}

.menu-card__view-btn {
    color: #b967db;
    text-decoration: underline;
    font-weight: 500;
    font-size: 0.875rem;
    text-underline-offset: 3px;
    line-height: 1;
    display: inline-block;
}

.menu-card__view-btn:hover {
    color: #ffffff;
    text-decoration-color: #b967db;
}

/* Mobile responsiveness for menu cards */
@media (max-width: 768px) {
    .menu-card {
        padding: 1rem;
    }
    
    .menu-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .menu-card__actions {
        align-self: flex-end;
    }
}

/* Old menu card styles removed - using new menu-card__ classes above */

.no-updates {
    text-align: center;
    background: rgba(26, 13, 46, 0.8);
    border: 1px solid rgba(185, 103, 219, 0.2);
    border-radius: 15px;
    padding: 40px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.no-updates h3 {
    color: #ffffff;
    margin-bottom: 15px;
}

.no-updates p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.upload-btn {
    background: linear-gradient(135deg, #ff0080 0%, #b967db 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.3);
}

.upload-btn:hover {
    transform: translateY(-2px);
}

/* Shop Detail */
.shop-detail {
    flex: 1;
}

.shop-header {
    background: rgba(26, 13, 46, 0.8);
    border: 1px solid rgba(185, 103, 219, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.shop-header h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.shop-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shop-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.shop-info .icon {
    font-size: 1.1rem;
    width: 20px;
}

.shop-menu {
    background: rgba(26, 13, 46, 0.8);
    border: 1px solid rgba(185, 103, 219, 0.2);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.shop-menu > h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.menu-category {
    margin-bottom: 30px;
}

.category-title {
    background: #b967db;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(185, 103, 219, 0.3);
}

.menu-subcategory {
    margin-bottom: 24px;
}

.subcategory-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(185, 103, 219, 0.3);
    font-weight: 600;
}

/* New subcategory row header design */
.subcategory-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(185, 103, 219, 0.1);
    border: 1px solid rgba(185, 103, 219, 0.2);
    border-radius: 6px;
    padding: 6px 12px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.subcategory-name {
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.subcategory-row-header .price-unit {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
}

.price-headers {
    display: flex;
    align-items: center;
}

.price-unit {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 40px;
    text-align: right;
}

.menu-items-list {
    display: flex;
    flex-direction: column;
}

.menu-item-row {
    padding: 8px 0;
    border-bottom: 1px solid rgba(185, 103, 219, 0.1);
}

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

.item-line-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.item-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 1.1rem;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0; /* Allow flex item to shrink */
    overflow: hidden;
}

.item-name-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.strain-indicator {
    background: none;
    border: none;
    color: #ff1493;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s ease;
    text-shadow: 0 0 8px #ff1493, 0 0 15px #ff00ff;
    margin-left: 6px;
}

.strain-indicator:hover {
    color: #ff00ff;
    text-shadow: 0 0 12px #ff1493, 0 0 20px #ff00ff, 0 0 30px #ff1493;
    transform: scale(1.1);
}

.item-main-price {
    font-weight: 600;
    color: #ffffff;
    font-size: 1.1rem;
    min-width: 60px;
    text-align: right;
    flex-shrink: 0; /* Prevent price from shrinking or wrapping */
    align-self: flex-start; /* Align with top of text */
}

.item-line-2 {
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
}

.bulk-prices {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-align: right;
}

.menu-notes {
    background: rgba(185, 103, 219, 0.1);
    border: 1px solid rgba(185, 103, 219, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.menu-notes h4 {
    color: #b967db;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.menu-notes p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.no-menu {
    text-align: center;
    padding: 40px 20px;
}

.no-menu p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.no-menu a {
    color: #b967db;
    text-decoration: none;
    font-weight: 600;
}

.no-menu a:hover {
    text-decoration: underline;
}

/* Error Page */
.error-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.error-content h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.error-content p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .page-nav {
        gap: 10px;
    }
    
    .page-nav a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .menu-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .shop-info {
        gap: 6px;
    }
    
    /* Mobile adjustments for new row header layout */
    .subcategory-row-header {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .subcategory-row-header .price-unit {
        font-size: 0.75rem;
    }
    
    /* Improved mobile spacing for better visual hierarchy */
    .menu-category {
        margin-bottom: 28px;
    }
    
    .category-title {
        margin-bottom: 14px;
    }
    
    .menu-subcategory {
        margin-bottom: 20px;
    }
    
    .price-headers {
        align-self: flex-end;
    }
    
    .item-line-1 {
        /* Keep horizontal layout on mobile */
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    
    .item-main-price {
        min-width: 50px;
        text-align: right;
        flex-shrink: 0; /* Prevent price from shrinking */
    }
    
    .item-name {
        gap: 4px; /* Smaller gap on mobile */
    }
    
    .strain-indicator {
        font-size: 0.8rem;
        padding: 2px 4px;
        margin-left: 4px;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Strain Profile Modal */
.strain-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #1a0d2e;
    border: 1px solid rgba(185, 103, 219, 0.3);
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px 25px;
    border-bottom: 1px solid rgba(185, 103, 219, 0.2);
}

.modal-header h3 {
    color: #b967db;
    margin: 0;
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 20px 25px;
}

.modal-strain-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.modal-disclaimer {
    background: rgba(185, 103, 219, 0.1);
    border: 1px solid rgba(185, 103, 219, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.modal-strain-info {
    color: rgba(255, 255, 255, 0.9);
}

#strainSummary {
    font-size: 1.05rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
}

.strain-details p {
    margin-bottom: 10px;
    line-height: 1.4;
}

.strain-details strong {
    color: #ffffff;
}

/* Enhanced Strain Modal Styling */
.strain-section {
    margin-bottom: 20px;
}

.strain-section h4 {
    color: #b967db;
    font-size: 1.1rem;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(185, 103, 219, 0.2);
    padding-bottom: 5px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.info-item strong {
    color: #ffffff;
    min-width: 100px;
}

.info-item span {
    color: rgba(255, 255, 255, 0.9);
    text-align: right;
}

.terpene-list, .aroma-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.terpene-tag, .aroma-tag {
    background: rgba(185, 103, 219, 0.2);
    border: 1px solid rgba(185, 103, 219, 0.3);
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.effects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.effect-list {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.effect-tag {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.effect-list.negative .effect-tag {
    background: rgba(255, 152, 0, 0.2);
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.loading-state, .error-state {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile modal adjustments */
@media (max-width: 768px) {
    .modal-content {
        margin: 10px;
        max-width: none;
        width: calc(100% - 20px);
    }
    
    .modal-header,
    .modal-body {
        padding: 15px 20px;
    }
    
    .effects-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .info-item {
        flex-direction: column;
        gap: 2px;
    }
    
    .info-item strong {
        min-width: auto;
    }
    
    .info-item span {
        text-align: left;
    }
}

/* Zine Section Styles */

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.article-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.featured-card {
    grid-column: span 2;
}

.article-image {
    height: 150px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.featured-card .article-image {
    height: 200px;
}

.article-content {
    padding: 20px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.85rem;
    opacity: 0.8;
}

.article-category {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.article-title {
    margin-bottom: 10px;
    font-size: 1.2rem;
    line-height: 1.4;
}

.article-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.article-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 15px;
}

.article-footer {
    display: block;
    font-size: 0.85rem;
}

.reading-time, .view-count {
    opacity: 0.7;
}

.read-more {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: #fff;
}

/* Category Navigation */
.category-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.category-pill {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.category-pill:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Article Tags */
.article-tags {
    margin: 10px 0;
}

.tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin: 0 5px 5px 0;
    opacity: 0.8;
}

/* Featured Badge */
.featured-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Article Page Specific */
.article-hero img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body h1, .article-body h2, .article-body h3, 
.article-body h4, .article-body h5, .article-body h6 {
    margin: 30px 0 15px 0;
    color: #fff;
}

.article-body h2 {
    font-size: 1.6rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.article-body h3 {
    font-size: 1.4rem;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul, .article-body ol {
    margin: 20px 0 20px 30px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body blockquote {
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    opacity: 0.9;
}

.article-body code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.article-body pre {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-body pre code {
    background: none;
    padding: 0;
    border-radius: 0;
}

/* Share Section */
.share-section {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.share-section h4 {
    margin-bottom: 15px;
    font-size: 1rem;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Related Articles */
.related-articles {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-articles h4 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

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

.related-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.related-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.related-image {
    height: 120px;
    background-size: cover;
    background-position: center;
}

.related-content {
    padding: 15px;
}

.related-title {
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.related-title a {
    color: #fff;
    text-decoration: none;
}

.related-title a:hover {
    text-decoration: underline;
}

.related-excerpt {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.4;
    margin-bottom: 10px;
}

.related-meta {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* No Articles State */
.no-articles {
    text-align: center;
    padding: 60px 20px;
}

.no-articles h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.no-articles p {
    opacity: 0.8;
    margin-bottom: 25px;
}

.back-button {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Mobile Responsiveness for Zine */
@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .featured-card {
        grid-column: span 1;
    }
    
    .category-nav {
        gap: 10px;
    }
    
    .category-pill {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .article-content {
        padding: 15px;
    }
    
    .article-title {
        font-size: 1.1rem;
    }
    
    .article-body {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .article-body h2 {
        font-size: 1.4rem;
    }
    
    .article-body h3 {
        font-size: 1.2rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        text-align: center;
    }
}

/* Menus Page Layout */

/* Section styling */
.recent-updates-section, .all-shops-section {
    margin-bottom: 40px;
}

.recent-updates-section h2, .all-shops-section h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 600;
}

.recent-updates-section p, .all-shops-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Recent updates use single column layout for menus page */
.menu-updates {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Grid layout for all shops directory */
.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

/* Legacy shop list styles - now using menu cards instead */
/*
.shop-list-item { ... }
.shop-name { ... }
.shop-city { ... }
.shop-meta { ... }
.menu-age { ... }
.shop-actions { ... }
.compact-btn { ... }
Removed - now using consistent menu card component
*/

/* Mobile responsiveness for menus page */
@media (max-width: 768px) {
    .recent-updates-section, .all-shops-section {
        margin-bottom: 30px;
    }
    
    .recent-updates-section h2, .all-shops-section h2 {
        font-size: 1.5rem;
    }
    
    .shops-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Keep light theme for now, can be added later */
}