/* Catalog Themes CSS */

/* ============== Base Catalog Page Styles ============== */

.catalog-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Owner Bar */
.owner-bar {
    background: #0369a1;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.owner-bar.draft-notice {
    background: #f59e0b;
}

.owner-bar a {
    color: white;
    text-decoration: underline;
}

/* Hero Section */
.catalog-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--catalog-primary);
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.catalog-back-link {
    position: absolute;
    top: 1rem;
    left: 1.25rem;
    z-index: 2;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    transition: background 0.15s, color 0.15s;
}
.catalog-back-link:hover {
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
}

/* When user uploads their own background image, use a much lighter overlay
   so the image is actually visible; text-shadow handles readability */
.has-bg-image .hero-overlay {
    background: rgba(0, 0, 0, 0.15);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Override style.css `.hero-content h1 { color: #0f172a }` (homepage hero rule) */
.catalog-hero .hero-content h1 {
    color: white;
}

/* Stronger text shadow when image is behind the text */
.has-bg-image .hero-content h1 {
    text-shadow: 1px 1px 8px rgba(0,0,0,0.7), 0 0 24px rgba(0,0,0,0.4);
}
.has-bg-image .category-tag {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
}

.category-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
    color: white;
}

.location-tag {
    display: inline-block;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(6px);
    margin-left: 8px;
    color: white;
}

/* Main Content */
.catalog-main {
    flex: 1;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Products Section */
.products-section {
    min-height: 200px;
}

.coming-soon {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.coming-soon h2 {
    color: #333;
    margin-bottom: 10px;
}

.coming-soon p {
    color: #666;
}

/* Contact Section */
.contact-section {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.contact-section h2 {
    color: var(--catalog-primary);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--catalog-primary);
    padding-bottom: 10px;
}

.ordering-info {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--catalog-primary);
}

.ordering-info h3 {
    color: #333;
    margin-bottom: 10px;
}

.contact-details {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #333;
}

.contact-icon {
    margin-right: 12px;
    font-size: 1.2rem;
}

.contact-item a {
    color: var(--catalog-primary);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--catalog-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: opacity 0.2s;
}

.social-link:hover {
    opacity: 0.9;
}

/* Footer */
.catalog-footer {
    background: #333;
    color: #aaa;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

.catalog-footer a {
    color: #0369a1;
    text-decoration: none;
}

/* ============== Theme Variations ============== */

/* Minimal Theme */
.theme-minimal .catalog-hero {
    min-height: 250px;
}

.theme-minimal .hero-content h1 {
    font-weight: 300;
    letter-spacing: 2px;
}

.theme-minimal .contact-section {
    background: white;
    border: 1px solid #eee;
}

/* Classic Theme */
.theme-classic .catalog-hero {
    min-height: 350px;
}

.theme-classic .hero-content h1 {
    font-family: Georgia, serif;
    font-style: italic;
}

.theme-classic .category-tag {
    border: 1px solid white;
    background: transparent;
}

/* Modern Theme */
.theme-modern .catalog-hero {
    min-height: 400px;
}

.theme-modern .hero-content h1 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.theme-modern .coming-soon {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Rustic Theme */
.theme-rustic .catalog-hero {
    min-height: 300px;
}

.theme-rustic .hero-overlay {
    background: rgba(139, 90, 43, 0.5);
}

.theme-rustic .hero-content h1 {
    font-family: Georgia, serif;
}

.theme-rustic .contact-section {
    background: #faf7f2;
    border: 2px solid #d4c4a8;
}

/* Elegant Theme */
.theme-elegant .catalog-hero {
    min-height: 380px;
}

.theme-elegant .hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.theme-elegant .hero-content h1 {
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
}

.theme-elegant .category-tag {
    border: 1px solid rgba(255,255,255,0.5);
    background: transparent;
}

/* Vibrant Theme */
.theme-vibrant .catalog-hero {
    min-height: 350px;
}

.theme-vibrant .hero-overlay {
    background: rgba(0, 0, 0, 0.18);
}

.theme-vibrant .hero-content h1 {
    font-weight: 800;
}

.theme-vibrant .coming-soon {
    background: #0369a1;
    color: white;
}

.theme-vibrant .coming-soon h2,
.theme-vibrant .coming-soon p {
    color: white;
}

/* ============== Responsive ============== */

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .catalog-main {
        padding: 20px 15px;
    }

    .contact-section {
        padding: 20px;
    }

    .social-links {
        justify-content: center;
    }

    .owner-bar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
