/* ===================================
   REVIEWS & PORTFOLIO STYLES
   Phase 3 - Promope Platform
   =================================== */

/* ==================== STAR RATING ==================== */
.star-rating-display {
    margin-bottom: 1.5rem;
}

/* Single row star container */
.stars-container-single {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1rem;
}

/* Individual star icon */
.star-icon {
    font-size: 2.5rem;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Selected stars - bright yellow */
.star-icon.selected {
    color: #fbbf24;
    transform: scale(1.1);
}

/* Hover effect */
.star-icon:hover {
    transform: scale(1.15);
}

.rating-description {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-left: 4px solid #667eea;
    border-radius: 4px;
    font-style: italic;
    color: #667eea;
    display: none;
}

/* ==================== REVIEW CARDS ==================== */
.review-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.review-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-author-info h5 {
    margin: 0;
    font-size: 1rem;
    color: #2d3748;
}

.review-author-info small {
    color: #718096;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-stars {
    color: #fbbf24;
    font-size: 1rem;
}

.review-stars i {
    margin-right: 2px;
}

.review-text-content {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-response {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-left: 4px solid #667eea;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.review-response-header {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.5rem;
}

/* Rating Stats */
.rating-summary {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-stars-large {
    font-size: 1.5rem;
    color: #fbbf24;
    margin: 0.5rem 0;
}

.rating-count {
    color: #718096;
    font-size: 0.95rem;
}

.rating-distribution {
    margin-top: 1.5rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.rating-bar-label {
    min-width: 60px;
    font-size: 0.875rem;
    color: #4a5568;
}

.rating-bar-fill {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-progress {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease;
}

.rating-bar-count {
    min-width: 40px;
    text-align: right;
    font-size: 0.875rem;
    color: #718096;
}

/* ==================== PORTFOLIO GRID ==================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.portfolio-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.portfolio-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.portfolio-item.dragging {
    opacity: 0.5;
}

.portfolio-item-media {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f7fafc;
}

.portfolio-item-media img,
.portfolio-item-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.portfolio-item:hover .portfolio-item-media img,
.portfolio-item:hover .portfolio-item-media video {
    transform: scale(1.05);
}

.portfolio-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-item-overlay {
    opacity: 1;
}

.portfolio-item-type {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #667eea;
}

.portfolio-item-featured {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.portfolio-item-body {
    padding: 1rem;
}

.portfolio-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.portfolio-item-description {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.portfolio-item-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #718096;
}

.portfolio-item-stats i {
    color: #667eea;
    margin-right: 0.25rem;
}

/* ==================== LIGHTBOX ==================== */
.portfolio-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.portfolio-lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    z-index: 10000;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
}

.lightbox-prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-media-container {
    max-width: 80vw;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.lightbox-image,
.lightbox-video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
}

.lightbox-iframe {
    width: 80vw;
    height: 60vh;
    border-radius: 12px;
}

.lightbox-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    max-width: 600px;
    text-align: center;
}

.lightbox-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.lightbox-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.lightbox-stats {
    color: rgba(255, 255, 255, 0.8);
}

.external-link-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: white;
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 10000;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    border-left: 4px solid #48bb78;
}

.toast-error {
    border-left: 4px solid #f56565;
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .portfolio-item-media {
        height: 200px;
    }

    .lightbox-media-container {
        max-width: 95vw;
        max-height: 60vh;
    }

    .lightbox-iframe {
        width: 95vw;
        height: 50vh;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .rating-summary {
        padding: 1.5rem;
    }

    .rating-number {
        font-size: 2.5rem;
    }

    .stars-container {
        gap: 0.75rem;
    }

    .star-label {
        padding: 0.6rem 0.75rem;
    }

    .star-label i {
        font-size: 1rem;
    }
}

