/* Public Roadmap & Feedback Board - Frontend Styles */

/* Reset and Base Styles */
.prf-feedback-form-container,
.prf-roadmap-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Form Styles */
.prf-feedback-form {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.prf-form-group {
    margin-bottom: 20px;
}

.prf-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.prf-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.required {
    color: #e74c3c;
}

.prf-form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background-color: #fff;
}

.prf-form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.prf-form-actions {
    text-align: center;
    margin-top: 30px;
}

.prf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.prf-btn-primary {
    background: #3498db;
    color: white;
}

.prf-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

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

.prf-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: prf-spin 1s linear infinite;
}

@keyframes prf-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.prf-form-message {
    margin-top: 15px;
    text-align: center;
}

.prf-form-message.success {
    background: transparent;
    color: #28a745;
    border: none;
    padding: 0;
}

.prf-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Form Validation Styles */
.prf-error-message {
    display: block;
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}
.prf-error{
    color: #dc3545;
    font-size: 12px;
    margin-top: 0;
    line-height: normal;
    font-weight: 500;
}
.prf-form-group.prf-has-error .prf-form-control {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.prf-form-group.prf-has-error .prf-form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.prf-form-control.prf-valid {
    border-color: #28a745;
}

.prf-form-control.prf-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Filter Styles */
.prf-filters {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


.prf-filter-tab {
    padding: 10px 20px;
    border: 2px solid #e1e5e9;
    background: #fff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.prf-filter-tab:hover {
    border-color: #3498db;
    color: #3498db;
}

.prf-filter-tab.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.prf-filter-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.prf-filter-controls .prf-form-control {
    min-width: 200px;
}

/* Grid Layout */
.prf-submissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Card Styles */
.prf-submission-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e1e5e9;
}

.prf-submission-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-top: 3px solid #3498db;
}

.prf-card-header {
    margin-bottom: 15px;
}

.prf-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.prf-card-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.prf-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prf-card-category {
    background: #f8f9fa;
    color: #6c757d;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.prf-product-tag {
    background: #e0f2fe;
    color: #075985;
    border: 1px solid #bae6fd;
    padding: 2px 8px;
    border-radius: 5px;
}

.prf-card-body {
    margin-bottom: 15px;
}

.prf-card-description {
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.prf-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.prf-card-info {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #666;
}

.prf-card-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.prf-card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.prf-vote-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.prf-vote-button:hover:not(:disabled) {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: scale(1.05);
}

.prf-vote-button.voted {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

.prf-vote-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.prf-view-details-button {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #3498db;
    color: #3498db;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.prf-view-details-button:hover {
    background: #3498db;
    color: white;
}

/* No Submissions State */
.prf-no-submissions {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.prf-no-submissions-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 20px;
}

.prf-no-submissions h3 {
    font-size: 24px;
    margin: 0 0 10px 0;
    color: #333;
}

/* Loading State */
.prf-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Modal Styles */
.prf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.prf-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.prf-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prf-modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.prf-modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.prf-modal-close:hover {
    color: #333;
}

.prf-modal-body {
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .prf-form-row {
        grid-template-columns: 1fr;
    }

    .prf-submissions-grid {
        grid-template-columns: 1fr;
    }

    .prf-filter-tabs {
        justify-content: center;
    }

    .prf-filter-controls {
        flex-direction: column;
    }

    .prf-filter-controls .prf-form-control {
        min-width: auto;
    }

    .prf-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .prf-card-actions {
        justify-content: center;
    }
}

/* Status Colors */
.prf-status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.prf-status-planned {
    background-color: #dbeafe;
    color: #1e40af;
}

.prf-status-in-progress {
    background-color: #fef3c7;
    color: #d97706;
}

.prf-status-released {
    background-color: #d1fae5;
    color: #065f46;
}

.prf-status-rejected {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Pagination Styles */
.prf-frontend-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.prf-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    background: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 25px;
    height: 25px;
    font-size: 16px;
    line-height: 25px;
}

.prf-pagination-link:hover {
    background: #f8f9fa;
    border-color: #0073aa;
    color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.prf-pagination-current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
    cursor: default;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.prf-pagination-ellipsis {
    padding: 10px 12px;
    color: #666;
    font-weight: 600;
}

.prf-pagination-prev,
.prf-pagination-next {
    font-weight: 600;
    font-size: 14px;
}

.prf-pagination-prev:hover,
.prf-pagination-next:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* Enhanced Card Styles */
.prf-submission-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    overflow: hidden;
}

.prf-submission-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Loading State Improvements */
.prf-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.prf-spinner {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

/* Filter Enhancements */
.prf-filter-tab {
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.prf-filter-tab.active {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.prf-filter-controls select {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

/* Enhanced Modal Styles */
.prf-modal.prf-hidden {
    display: none !important;
}

.prf-modal:not(.prf-hidden) {
    display: flex !important;
    max-width: 100%;
    animation: prf-fadeIn 0.3s ease;
}

@keyframes prf-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.prf-modal-content {
    animation: prf-slideUp 0.3s ease;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes prf-slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.prf-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
}

.prf-modal-header h2 {
    font-size: 22px;
    font-weight: 600;
}

.prf-modal-close {
    font-size: 28px;
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease;
}

.prf-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.prf-modal-body {
    padding: 25px;
    overflow-y: auto;
}

/* Submission Details Styles */
.prf-submission-details {
    animation: prf-fadeIn 0.4s ease;
}

.prf-details-header {
    margin-bottom: 25px;
}

.prf-details-header h2 {
    font-size: 24px;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.prf-details-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.prf-details-category {
    background: #f8f9fa;
    color: #6c757d;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.prf-details-body {
    margin-top: 25px;
}

.prf-details-description {
    color: #555;
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.prf-details-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.prf-info-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e1e5e9;
    font-size: 14px;
}

.prf-info-item:last-child {
    border-bottom: none;
}

.prf-info-item strong {
    min-width: 130px;
    color: #333;
    font-weight: 600;
}

.prf-info-item:not(:first-child) {
    margin-top: 8px;
}

.prf-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.prf-loading .prf-spinner {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
}

.prf-error-message {
    padding: 30px;
    text-align: center;
    color: #d32f2f;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    margin: 20px 0;
}

.prf-error-message p {
    margin: 0;
    font-size: 14px;
}

/* Utility Classes */
.prf-hidden {
    display: none !important;
}

/* Modern Toolbar Layout */
.prf-filters-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.prf-toolbar-left {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
}

.prf-toolbar-right {
    display: flex;
    align-items: center;
}

.prf-control-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prf-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.prf-filter-tab {
    height: 40px;
    /* Fixed height */
    padding: 0 20px;
    /* Horizontal padding only */
    display: flex;
    /* Flex for centering */
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    background: transparent;
    color: #5f6368;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    /* Reset line-height */
}

.prf-filter-tab:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #202124;
}

.prf-filter-tab.active {
    background: #e8f0fe;
    color: #1a73e8;
}

.prf-control-input {
    height: 40px;
    /* Fixed height matching tabs */
    padding: 0 32px 0 12px;
    /* Right padding for arrow */
    border: 1px solid #dadce0;
    border-radius: 8px;
    /* Slightly more rounded */
    font-size: 14px;
    color: #3c4043;
    background-color: #fff;
    cursor: pointer;
    min-width: 160px;
    transition: all 0.2s ease;
    appearance: none;
    /* Remove default arrow */
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235f6368' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    line-height: normal;
    /* Ensure text centers */
}

.prf-control-input:hover {
    border-color: #202124;
}

.prf-control-input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

/* View Toggle Controls */
.prf-view-toggle {
    display: inline-flex;
    align-items: center;
    background: #f1f3f4;
    padding: 4px;
    border-radius: 8px;
    gap: 4px;
    height: 40px;
    /* Fixed height matching tabs/inputs */
    box-sizing: border-box;
}

.prf-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: #5f6368;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.prf-view-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #202124;
}

.prf-view-btn.active {
    background: #fff;
    color: #1a73e8;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Dark Theme Overrides for Toolbar */
.prf-theme-dark .prf-filters-toolbar {
    background: var(--prf-bg-secondary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.prf-theme-dark .prf-filter-tab {
    color: var(--prf-text-secondary);
}

.prf-theme-dark .prf-filter-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--prf-text-primary);
}

.prf-theme-dark .prf-filter-tab.active {
    background: rgba(74, 158, 255, 0.15);
    color: var(--prf-primary);
}

.prf-theme-dark .prf-control-input {
    background-color: var(--prf-bg-primary);
    border-color: var(--prf-border);
    color: var(--prf-text-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239aa0a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.prf-theme-dark .prf-control-input:hover {
    border-color: var(--prf-text-secondary);
}

.prf-theme-dark .prf-control-input:focus {
    border-color: var(--prf-primary);
}

.prf-theme-dark .prf-view-toggle {
    background: var(--prf-bg-primary);
}

/* Responsive Toolbar */
@media (max-width: 768px) {
    .prf-filters-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .prf-control-group {
        flex-wrap: wrap;
    }

    .prf-control-input {
        flex: 1;
        min-width: 120px;
    }
}

/* List View Layout Updates */
.prf-submissions-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 15px;
    grid-template-columns: 1fr !important;
}

.prf-submissions-grid.list-view .prf-submission-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px 20px;
    gap: 20px;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

.prf-submissions-grid.list-view .prf-card-header {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
    /* Ensure title has space */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.prf-submissions-grid.list-view .prf-card-title {
    font-size: 16px;
    margin-bottom: 5px;
}

.prf-submissions-grid.list-view .prf-card-meta {
    font-size: 13px;
}

.prf-submissions-grid.list-view .prf-card-body {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

.prf-submissions-grid.list-view .prf-card-description {
    display: none;
}

.prf-submissions-grid.list-view .prf-card-footer {
    margin-top: 0;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    width: auto;
    display: flex;
}

/* Show actions in list view */
.prf-submissions-grid.list-view .prf-card-actions {
    display: flex;
    gap: 10px;
    order: 0;
    /* Keep natural order or adjust as needed */
    margin-right: 0;
}

/* Ensure buttons are visible and styled correctly in list view */
.prf-submissions-grid.list-view .prf-vote-button,
.prf-submissions-grid.list-view .prf-view-details-button {
    display: flex;
    padding: 8px 16px;
    font-size: 13px;
}

.prf-submissions-grid.list-view .prf-card-info {
    display: none;
}

/* Responsive adjustments for list view */
@media (max-width: 600px) {
    .prf-submissions-grid.list-view .prf-submission-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .prf-submissions-grid.list-view .prf-card-footer {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }
}

/* Dark Theme Overrides for View Toggle */
.prf-theme-dark .prf-view-toggle {
    background: var(--prf-bg-tertiary);
}

.prf-theme-dark .prf-view-btn {
    color: var(--prf-text-secondary);
}

.prf-theme-dark .prf-view-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--prf-text-primary);
}

.prf-theme-dark .prf-view-btn.active {
    background: var(--prf-bg-secondary);
    color: var(--prf-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Image Upload Styles */
.prf-image-upload-group {
    margin-top: 20px;
}

.prf-image-upload-description {
    font-size: 12px !important;
    color: #e74c3c !important;
    margin-top: 5px;
}

.prf-image-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.prf-image-preview-item {
    position: relative;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
    aspect-ratio: 1;
}

.prf-image-preview-item.prf-video-preview {
    aspect-ratio: 16/9;
}

.prf-image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prf-image-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(231, 76, 60, 0.9);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: background 0.3s ease;
}

.prf-image-preview-remove:hover {
    background: rgba(231, 76, 60, 1);
}

.prf-image-preview-size {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    font-size: 11px;
    text-align: center;
}

/* Details Modal Images */
.prf-details-images {
    margin: 20px 0;
}

.prf-details-images h4 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.prf-images-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.prf-gallery-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 1;
    border: 2px solid #e1e5e9;
    transition: border-color 0.3s ease;
}

.prf-gallery-item:hover {
    border-color: #3498db;
}

.prf-gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.prf-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.prf-gallery-item:hover img {
    transform: scale(1.05);
}

/* Video Preview Styles */
.prf-video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prf-gallery-video {
    aspect-ratio: 16/9;
}

.prf-gallery-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}