/**
 * Reporting System Styles
 * Styles for the store reporting and verification UI
 */

/* ==========================================================================
   Report Modal Styles
   ========================================================================== */

.report-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.report-modal {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.report-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.report-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.close-modal-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.close-modal-btn:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.report-modal-content {
    padding: 1.5rem;
}

.report-store-name {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.report-instruction {
    color: #6b7280;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

/* ==========================================================================
   Report Types Grid
   ========================================================================== */

.report-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.report-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.report-type-btn:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.report-type-btn.selected {
    border-color: #3b82f6;
    background-color: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.report-type-btn i {
    font-size: 1.5rem;
    color: #6b7280;
    transition: color 0.2s;
}

.report-type-btn:hover i,
.report-type-btn.selected i {
    color: #3b82f6;
}

.report-type-btn span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

/* ==========================================================================
   Report Description Section
   ========================================================================== */

.report-description-section {
    margin-bottom: 1.5rem;
}

.report-description-section label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.report-description-section textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.report-description-section textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ==========================================================================
   Report Actions
   ========================================================================== */

.report-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.cancel-report-btn,
.submit-report-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-report-btn {
    background: none;
    border: 1px solid #d1d5db;
    color: #6b7280;
}

.cancel-report-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.submit-report-btn {
    background-color: #3b82f6;
    border: none;
    color: white;
}

.submit-report-btn:hover:not(:disabled) {
    background-color: #2563eb;
}

.submit-report-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* ==========================================================================
   Trust Badge Styles
   ========================================================================== */

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
}

.trust-badge:hover {
    transform: scale(1.05);
}

.trust-badge i {
    font-size: 0.875rem;
}

/* Trust level variations */
.trust-badge.trust-high {
    background-color: #d1fae5;
    color: #065f46;
}

.trust-badge.trust-medium {
    background-color: #fef3c7;
    color: #92400e;
}

.trust-badge.trust-low {
    background-color: #fee2e2;
    color: #991b1b;
}

/* ==========================================================================
   Report Button Styles
   ========================================================================== */

.report-store-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.report-store-btn:hover {
    color: #ef4444;
    background-color: #fee2e2;
}

.report-store-btn i {
    font-size: 0.875rem;
}

/* ==========================================================================
   Store Card Integration
   ========================================================================== */

.store-card {
    position: relative;
}

.store-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.store-card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

/* ==========================================================================
   Notification Styles
   ========================================================================== */

.report-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    font-weight: 500;
    animation: slideUp 0.3s ease;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        transform: translate(-50%, 100%);
        opacity: 0; 
    }
    to { 
        transform: translate(-50%, 0);
        opacity: 1; 
    }
}

@keyframes slideDown {
    from { 
        transform: translate(-50%, 0);
        opacity: 1; 
    }
    to { 
        transform: translate(-50%, 100%);
        opacity: 0; 
    }
}

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

@media (max-width: 480px) {
    .report-modal {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
        position: fixed;
        bottom: 0;
        animation: slideUpMobile 0.3s ease;
    }
    
    .report-types-grid {
        grid-template-columns: 1fr;
    }
    
    .report-type-btn {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.875rem 1rem;
    }
    
    .report-actions {
        flex-direction: column;
    }
    
    .cancel-report-btn,
    .submit-report-btn {
        width: 100%;
    }
}

@keyframes slideUpMobile {
    from { 
        transform: translateY(100%);
    }
    to { 
        transform: translateY(0);
    }
}

/* ==========================================================================
   Dark Mode Support (if applicable)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .report-modal {
        background-color: #1f2937;
        color: #f9fafb;
    }
    
    .report-modal-header {
        border-color: #374151;
    }
    
    .report-modal-header h3 {
        color: #f9fafb;
    }
    
    .report-store-name {
        color: #f3f4f6;
    }
    
    .report-instruction {
        color: #9ca3af;
    }
    
    .report-type-btn {
        background-color: #374151;
        border-color: #4b5563;
    }
    
    .report-type-btn span {
        color: #e5e7eb;
    }
    
    .report-description-section textarea {
        background-color: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .cancel-report-btn {
        border-color: #4b5563;
        color: #9ca3af;
    }
    
    .cancel-report-btn:hover {
        background-color: #374151;
        color: #e5e7eb;
    }
}
