/**
 * Placeholder Replacement System Styles
 */

/* Notification Banner */
.placeholder-notification {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
    z-index: 10000;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.placeholder-notification-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    color: white;
}

.placeholder-notification-icon {
    font-size: var(--font-size-6xl); /* 32px */
    flex-shrink: 0;
}

.placeholder-notification-text {
    flex: 1;
}

.placeholder-notification-text strong {
    display: block;
    font-size: var(--font-size-lg); /* 16px */
    margin-bottom: 4px;
}

.placeholder-notification-text p {
    margin: 0;
    font-size: var(--font-size-base); /* 14px */
    opacity: 0.95;
}

.placeholder-notification-btn {
    padding: 10px 20px;
    background: white;
    color: #ff6b6b;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: var(--font-size-base); /* 14px */
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.placeholder-notification-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.placeholder-notification-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: var(--font-size-4xl); /* 24px */
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.placeholder-notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Replacement Modal */
.placeholder-replacement-modal-content {
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-description {
    color: #666;
    margin-bottom: 24px;
    font-size: var(--font-size-base); /* 14px */
}

/* Placeholder Items */
#placeholder-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.placeholder-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.placeholder-item.completed {
    border-color: #28a745;
    background: #f1f9f3;
}

.placeholder-item-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.placeholder-item.completed .placeholder-item-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.placeholder-item-header h3 {
    margin: 0;
    font-size: var(--font-size-lg); /* 16px */
    font-weight: 600;
}

.placeholder-city {
    font-size: var(--font-size-base); /* 14px */
    opacity: 0.9;
}

.placeholder-item-body {
    padding: 20px;
}

/* Form Styling */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: var(--font-size-base); /* 14px */
}

.label-help {
    display: block;
    font-weight: 400;
    color: #666;
    font-size: var(--font-size-xs); /* 12px */
    margin-top: 2px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: var(--font-size-base); /* 14px */
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea.form-control {
    resize: vertical;
    font-family: inherit;
}

select.form-control {
    cursor: pointer;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: var(--font-size-base); /* 14px */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-sm {
    padding: 8px 16px;
    font-size: var(--font-size-sm); /* 13px */
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Status Messages */
.replacement-status {
    margin-top: 12px;
    font-size: var(--font-size-base); /* 14px */
}

.status-info {
    color: #0c5460;
    background: #d1ecf1;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #17a2b8;
}

.status-success {
    color: #155724;
    background: #d4edda;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #28a745;
}

.status-error {
    color: #721c24;
    background: #f8d7da;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #dc3545;
}

/* Success Notification */
.success-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.success-icon {
    font-size: var(--font-size-5xl); /* 28px */
}

.success-text strong {
    display: block;
    color: #333;
    font-size: var(--font-size-lg); /* 16px */
    margin-bottom: 4px;
}

.success-text p {
    margin: 0;
    color: #666;
    font-size: var(--font-size-base); /* 14px */
}

/* ==========================================================================
   Replacement Venue Cards (FIX 2026-01-02)
   Stacked layout: photo on top, name, rating, address, description, buttons
   ========================================================================== */

/* Replacement venue cards in modal - larger than footer cards for readability */
.replace-venue-card {
    width: 240px;
    flex: 0 0 240px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.replace-venue-card:hover {
    border-color: #1976d2;
    background: #f8f9ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.replace-venue-card.selected {
    border-color: #1976d2;
    background: #e3f2fd;
}

.replace-venue-card.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Photo with proper modal card proportions */
.replace-venue-card-photo {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.replace-venue-card-photo-placeholder {
    width: 100%;
    height: 120px;
    background: #f0f0f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.replace-venue-card-photo-placeholder .material-icons {
    color: #bbb;
    font-size: 28px;
}

/* Readable name for modal card selection */
.replace-venue-card-name {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Rating display */
.replace-venue-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.replace-venue-card-rating .material-icons {
    font-size: 14px;
    color: #fbbc04;
}

.replace-venue-card-rating-value {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

.replace-venue-card-rating-count {
    font-size: 12px;
    color: #888;
}

/* Address hidden - not needed on cards */
.replace-venue-card-address {
    display: none;
}

/* Description with scrollbar for longer text */
.replace-venue-card-description {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    max-height: 60px;
    overflow-y: auto;
}

/* Button actions */
.replace-venue-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.replace-venue-btn-primary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.replace-venue-btn-primary:hover {
    background: #1565c0;
}

.replace-venue-btn-primary .material-icons {
    font-size: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .placeholder-notification {
        top: 60px;
        width: 95%;
    }

    .placeholder-notification-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .placeholder-notification-btn {
        width: 100%;
    }

    .placeholder-replacement-modal-content {
        max-width: 95%;
    }

    .placeholder-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
