/**
 * SEO Restaurant Detail Page - Modernes Dashboard-Design
 * Nutzt CSS Custom Properties aus theme-variables.css
 * CSP-konform, keine inline styles
 */

/* === Main Layout === */
.seo-main {
    padding: 24px 0 48px;
    min-height: calc(100vh - 73px);
}

/* === Restaurant Header === */
.seo-restaurant-header {
    margin-bottom: 32px;
}

.seo-restaurant-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #212529;
    line-height: 1.2;
}

/* Badges Row (Badges + Favorit-Herz) */
.seo-badges-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.seo-restaurant-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* Favorit-Herz (direkt neben Badges) */
.seo-favorite-heart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #d1d5db;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.25s;
    flex-shrink: 0;
}

.seo-favorite-heart:hover {
    color: #ef4444;
    transform: scale(1.15);
}

.seo-favorite-heart.is-favorite {
    color: #ef4444;
}

.seo-favorite-heart.is-favorite i {
    animation: heartPop 0.35s ease;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.seo-badge-type,
.seo-badge-open,
.seo-badge-closed {
    color: white;
    font-size: 0.8125rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.seo-badge-type {
    background: var(--theme-primary, #667eea);
}

.seo-badge-open {
    background: #22c55e;
}

.seo-badge-closed {
    background: #ef4444;
}

/* Rating */
.seo-restaurant-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.seo-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #22c55e;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.seo-rating-pill i {
    font-size: 0.75rem;
}

.seo-review-count {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Service-Badges */
.seo-service-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.seo-service-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.seo-service-badge i {
    color: var(--theme-primary, #667eea);
    font-size: 0.8125rem;
}

/* === Info Grid === */
.seo-info-grid {
    margin-bottom: 32px;
}

/* Info Card */
.seo-info-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.seo-info-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}

.seo-info-title i {
    color: var(--theme-primary, #667eea);
    font-size: 1rem;
}

.seo-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seo-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.seo-info-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.seo-info-list li:first-child {
    padding-top: 0;
}

.seo-info-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seo-info-icon i {
    color: var(--theme-primary, #667eea);
    font-size: 0.875rem;
}

.seo-info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.seo-info-label {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.seo-info-value {
    font-size: 0.9375rem;
    color: #374151;
    font-weight: 500;
}

/* === Order Card mit Bild === */
.seo-order-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.seo-order-card-img {
    position: relative;
    overflow: hidden;
}

.seo-order-img {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    display: block;
}

.seo-order-img-fallback {
    width: 100%;
    aspect-ratio: 21 / 9;
    background: linear-gradient(135deg, var(--theme-primary, #667eea) 0%, var(--theme-secondary, #764ba2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.seo-order-img-fallback i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.4);
}

.seo-order-card-body {
    padding: 24px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.seo-order-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 8px;
}

.seo-order-text {
    color: #6b7280;
    font-size: 0.9375rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.seo-order-button {
    display: inline-block;
    background: var(--theme-primary, #667eea);
    color: white;
    border: none;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.seo-order-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
    background: var(--theme-secondary, #764ba2);
}

/* === Closed Banner === */
.seo-closed-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.seo-closed-banner i {
    color: #ef4444;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.seo-closed-banner-reason {
    color: #b91c1c;
    font-weight: 400;
}

/* === Info Links === */
.seo-info-link {
    color: var(--theme-primary, #667eea);
    text-decoration: none;
    transition: color 0.2s;
}

.seo-info-link:hover {
    color: var(--theme-secondary, #764ba2);
    text-decoration: underline;
}

/* === Opening Hours Section === */
.seo-hours-section {
    margin-bottom: 32px;
}

.seo-hours-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.seo-hours-table {
    width: 100%;
    border-collapse: collapse;
}

.seo-hours-table tr {
    border-bottom: 1px solid #f3f4f6;
}

.seo-hours-table tr:last-child {
    border-bottom: none;
}

.seo-hours-table td {
    padding: 10px 0;
    font-size: 0.9375rem;
    color: #374151;
}

.seo-hours-day {
    font-weight: 500;
    width: 40%;
}

.seo-hours-time {
    text-align: right;
    font-weight: 400;
    color: #6b7280;
}

.seo-hours-today {
    background: #f0fdf4;
    border-radius: 6px;
}

.seo-hours-today td {
    padding: 10px 8px;
    font-weight: 600;
    color: #166534;
}

.seo-hours-today-closed {
    background: #fef2f2;
    border-radius: 6px;
}

.seo-hours-today-closed td {
    padding: 10px 8px;
    font-weight: 600;
    color: #991b1b;
}

.seo-hours-closed {
    color: #ef4444;
    font-weight: 500;
}

.seo-badge-today {
    background: #22c55e;
    color: white;
    font-size: 0.6875rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.seo-badge-today-closed {
    background: #ef4444;
    color: white;
    font-size: 0.6875rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.seo-hours-today-badge {
    text-align: right;
    width: 1%;
    white-space: nowrap;
    padding-left: 8px;
}

.seo-hours-delivery-time {
    text-align: right;
    width: 1%;
    white-space: nowrap;
    padding-left: 8px;
}

.seo-delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eff6ff;
    color: #1e40af;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.seo-delivery-badge i {
    font-size: 0.6875rem;
}

/* === Reviews Section === */
.seo-reviews-section {
    margin-bottom: 32px;
}

.seo-reviews-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.seo-reviews-title i {
    color: #f59e0b;
}

.seo-reviews-count {
    font-weight: 400;
    color: #6b7280;
    font-size: 1rem;
}

/* Review Form */
.seo-review-form {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.seo-review-form-title {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 16px;
}

.seo-review-form-group {
    margin-bottom: 16px;
}

.seo-review-form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.seo-review-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9375rem;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}

.seo-review-textarea:focus {
    outline: none;
    border-color: var(--theme-primary, #667eea);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.seo-review-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--theme-primary, #667eea);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.seo-review-submit:hover {
    background: var(--theme-secondary, #764ba2);
}

.seo-review-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.seo-review-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    display: none;
}

.seo-review-message-success {
    display: block;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.seo-review-message-error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Login/Already hints */
.seo-review-login-hint,
.seo-review-already {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.9375rem;
    margin-bottom: 20px;
}

.seo-review-login-hint {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.seo-review-login-hint a {
    color: var(--theme-primary, #667eea);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.seo-review-login-hint a:hover {
    text-decoration: underline;
}

.seo-review-already {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Review Cards */
.seo-review-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
}

.seo-review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.seo-review-author {
    font-weight: 600;
    color: #212529;
    font-size: 0.9375rem;
}

.seo-review-date {
    font-size: 0.8125rem;
    color: #9ca3af;
}

.seo-review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.seo-review-comment {
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0;
}

.seo-no-reviews {
    text-align: center;
    padding: 32px;
    color: #9ca3af;
}

.seo-no-reviews i {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.seo-no-reviews p {
    margin: 0;
    font-size: 0.9375rem;
}

/* Load More */
.seo-reviews-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #374151;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.seo-reviews-load-more:hover {
    background: #f9fafb;
}

.seo-reviews-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* === Breadcrumb === */
.seo-breadcrumb {
    padding: 16px 0 0;
    border-top: 1px solid #f3f4f6;
}

.seo-breadcrumb .breadcrumb {
    margin-bottom: 0;
    font-size: 0.8125rem;
}

.seo-breadcrumb .breadcrumb-item a {
    color: var(--theme-primary, #667eea);
    text-decoration: none;
}

.seo-breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline;
}

.seo-breadcrumb .breadcrumb-item.active {
    color: #9ca3af;
}

/* === Responsive === */
@media (max-width: 768px) {
    .seo-main {
        padding: 16px 0 32px;
    }

    .seo-restaurant-name {
        font-size: 1.5rem;
    }

    .seo-restaurant-header {
        margin-bottom: 24px;
    }

    .seo-info-card {
        padding: 20px;
        border-radius: 8px;
    }

    .seo-order-card {
        border-radius: 8px;
    }

    .seo-order-card-body {
        padding: 20px;
    }

    .seo-info-grid {
        margin-bottom: 24px;
    }

    .seo-hours-card {
        padding: 20px;
        border-radius: 8px;
    }

    .seo-hours-section {
        margin-bottom: 24px;
    }

    .seo-closed-banner {
        font-size: 0.875rem;
        padding: 12px 16px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .seo-restaurant-name {
        font-size: 1.25rem;
    }

    .seo-order-button {
        width: 100%;
        text-align: center;
    }
}
