﻿/* ===== STORE PRESENTATION STYLES - CONSOLIDATED ===== */

/* CSS Variables */
:root {
    --primary-color: #594ae2;
    --secondary-color: #1976d2;
    --accent-color: #d4af37;
    --text-dark: #424242;
    --text-light: #757575;
    --border-color: #e0e0e0;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* ===== SHARED/COMMON STYLES ===== */

/* Base Typography and Layout */
.store-presentation {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Loading and Error States */
.loading-container,
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #6c757d;
}

    .loading-spinner .spinner-border {
        margin-bottom: 1rem;
    }

/* Image Preview Styling */
.image-preview {
    margin-top: 0.75rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background: #f9f9f9;
    padding: 8px;
}

    .image-preview img {
        width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: cover;
    }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

/* ===== CUSTOMER PRESENTATION STYLES ===== */

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white !important;
    padding: 2rem;
    max-width: 800px;
}

.hero-logo {
    max-height: 120px;
    width: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
    color: white !important;
}

.hero-description {
    font-size: 1.25rem !important;
    margin-bottom: 2.5rem !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: white !important;
}

.hero-actions {
    gap: 1rem;
}

/* Section Styling */
.section-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 3rem !important;
    color: var(--primary-color) !important;
    letter-spacing: -0.02em;
}

/* About Section */
.about-content {
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    color: var(--text-light) !important;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

/* Service Cards */
.service-card {
    transition: var(--transition) !important;
    cursor: pointer;
    height: 100%;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-medium) !important;
    }

.service-name {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

.service-description {
    color: var(--text-light) !important;
    line-height: 1.6;
}

/* Technician Cards */
.technician-card {
    transition: var(--transition) !important;
    height: 100%;
}

    .technician-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-medium) !important;
    }

.technician-avatar {
    width: 120px !important;
    height: 120px !important;
    border: 4px solid var(--accent-color) !important;
    margin: 0 auto 1.5rem !important;
}

.technician-name {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

/* Gallery Items */
.gallery-item {
    transition: var(--transition) !important;
    cursor: pointer;
}

    .gallery-item:hover {
        transform: scale(1.02);
    }

.gallery-section .mud-grid-item {
    padding: 8px !important;
}

/* Contact Form and Social Media */
.contact-section .mud-paper {
    background: var(--mud-palette-surface) !important;
    color: var(--mud-palette-text-primary) !important;
}
/* Ensure any injected HTML inside the contact cards inherits readable text */
.contact-section ::deep .cms-content,
.contact-section ::deep .cms-content * {
    color: var(--mud-palette-text-primary) !important;
}

    /* Optional: link color inside injected HTML */
    .contact-section ::deep .cms-content a {
        color: var(--mud-palette-primary) !important;
        text-decoration: none;
    }

        .contact-section ::deep .cms-content a:hover {
            text-decoration: underline;
        }

.social-links .mud-icon-button {
    margin: 0 4px;
}

    .social-links .mud-icon-button:hover {
        transform: translateY(-2px);
    }

/* MudBlazor Component Overrides */
.mud-container {
    max-width: 1200px;
}

.mud-fab {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 1000 !important;
}

.mud-expand-panel {
    margin-bottom: 8px !important;
}

    .mud-expand-panel .mud-expand-panel-header {
        background-color: #f5f5f5 !important;
    }

        .mud-expand-panel .mud-expand-panel-header:hover {
            background-color: #eeeeee !important;
        }

.mud-color-picker .mud-input {
    width: 100%;
}

.service-details .mud-chip {
    margin-right: 8px;
}

/* MudBlazor Theme Integration */
.store-presentation .mud-typography-h1,
.store-presentation .mud-typography-h2,
.store-presentation .mud-typography-h3,
.store-presentation .mud-typography-h4,
.store-presentation .mud-typography-h5,
.store-presentation .mud-typography-h6 {
    font-family: 'Roboto', sans-serif !important;
}

.store-presentation .mud-theme-primary {
    color: var(--primary-color) !important;
}

.store-presentation .mud-button-filled.mud-theme-primary {
    background-color: var(--accent-color) !important;
    color: var(--primary-color) !important;
}

    .store-presentation .mud-button-filled.mud-theme-primary:hover {
        background-color: color-mix(in srgb, var(--accent-color) 85%, black) !important;
    }

/* ===== ADMIN MANAGEMENT STYLES ===== */

.admin-page {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

    .admin-page .mud-paper {
        background-color: #fafafa;
    }

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

    .page-header h1 {
        margin: 0 0 0.5rem 0;
        font-size: 2rem;
        color: #343a40;
    }

    .page-header p {
        margin: 0;
        color: #6c757d;
        font-size: 1.1rem;
    }

.header-actions {
    display: flex;
    gap: 0.5rem;
}

/* Presentation Cards Grid */
.presentations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.presentation-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .presentation-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

.presentation-preview {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
}

    .preview-placeholder i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

.presentation-status {
    position: absolute;
    top: 10px;
    right: 10px;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .status-badge.active {
        background: #d4edda;
        color: #155724;
    }

    .status-badge.inactive {
        background: #f8d7da;
        color: #721c24;
    }

.presentation-info {
    padding: 1.5rem;
}

    .presentation-info h3 {
        margin: 0 0 0.5rem 0;
        font-size: 1.25rem;
        color: #343a40;
    }

.store-name {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0 0 0.75rem 0;
    font-weight: 500;
}

.description {
    color: #495057;
    line-height: 1.5;
    margin: 0 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.presentation-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #757575;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

    .stat i {
        width: 14px;
        text-align: center;
    }

.presentation-actions {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.presentation-card .mud-card-actions {
    padding: 8px 16px !important;
    justify-content: space-between;
}

.presentation-card .mud-button-group {
    gap: 4px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

    .empty-state i {
        font-size: 4rem;
        margin-bottom: 1rem;
        color: #dee2e6;
    }

    .empty-state h3 {
        margin-bottom: 0.5rem;
        color: #495057;
    }

/* Form Sections */
.form-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

    .form-section h3 {
        margin: 0 0 1.5rem 0;
        color: #343a40;
        font-size: 1.25rem;
        font-weight: 600;
        border-bottom: 2px solid #f8f9fa;
        padding-bottom: 0.75rem;
    }

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        color: #495057;
    }

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .form-control:focus {
        border-color: #80bdff;
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

.rich-editor {
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
}

/* Color Input Components */
.color-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.color-picker {
    width: 50px;
    height: 40px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
}

    .color-picker::-webkit-color-swatch-wrapper {
        padding: 0;
    }

    .color-picker::-webkit-color-swatch {
        border: none;
        border-radius: 6px;
    }

.color-display {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid #ccc;
    display: inline-block;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    margin-top: 2rem;
}

/* Button Styles */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

    .btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.btn-primary {
    background-color: #007bff;
    color: white;
}

    .btn-primary:hover:not(:disabled) {
        background-color: #0056b3;
        transform: translateY(-1px);
    }

.btn-outline-primary {
    background-color: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}

    .btn-outline-primary:hover {
        background-color: #007bff;
        color: white;
    }

.btn-outline-secondary {
    background-color: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
}

    .btn-outline-secondary:hover {
        background-color: #6c757d;
        color: white;
    }

.btn-outline-danger {
    background-color: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
}

    .btn-outline-danger:hover {
        background-color: #dc3545;
        color: white;
    }

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet and Mobile - Customer Pages */
@media (max-width: 960px) {
    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-description {
        font-size: 1.1rem !important;
    }

    .section-title {
        font-size: 2rem !important;
    }

    .hero-section {
        height: 70vh;
        min-height: 500px;
    }

    .hero-actions {
        flex-direction: column !important;
        align-items: center !important;
    }
}

@media (max-width: 600px) {
    .hero-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .hero-description {
        font-size: 1rem !important;
    }

    .section-title {
        font-size: 1.75rem !important;
        margin-bottom: 2rem !important;
    }
}

/* Tablet and Mobile - Admin Pages */
@media (max-width: 768px) {
    .admin-page {
        padding: 1rem;
    }

    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .presentations-grid {
        grid-template-columns: 1fr;
    }

    .presentation-actions {
        flex-direction: column;
    }

        .presentation-actions .btn {
            width: 100%;
            justify-content: center;
        }

    .form-section {
        padding: 1.5rem;
    }

    .form-actions {
        padding: 1.5rem;
        flex-direction: column;
    }

        .form-actions .btn {
            width: 100%;
            justify-content: center;
        }
}

/* Print Styles */
@media print {
    .hero-section {
        height: auto !important;
        min-height: auto !important;
    }

    .mud-fab,
    .floating-actions {
        display: none !important;
    }

    .hero-background {
        background-image: none !important;
    }
}
