/* review.css - Ultra Futuristic & Premium Design System */

:root {
    --primary-glow: #00A651;
    --secondary-glow: #00d4ff;
    --bg-light: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-gradient: linear-gradient(135deg, #00A651 0%, #00d4ff 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.futuristic-light {
    background: var(--bg-light);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    margin-bottom: 80px;
}

/* Airy Background */
.cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orbFloat 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-glow);
    top: -50px;
    right: -50px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-glow);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: #7000ff;
    top: 40%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 30px) scale(1.1);
    }
}

.stars-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(rgba(0, 166, 81, 0.05), transparent 2px, transparent 40px),
        radial-gradient(rgba(0, 212, 255, 0.05), transparent 1px, transparent 30px);
    background-size: 550px 550px, 350px 350px;
    background-position: 0 0, 40px 60px;
    opacity: 0.5;
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
}

/* Main Content Wrapper */
.review-wrapper {
    padding: 100px 20px 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Product Preview Card */
.product-preview-card {
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    position: relative;
    overflow: hidden;
}

.product-preview-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.product-img-review {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    background: #ffffff;
    border: 1px solid rgba(0, 166, 81, 0.1);
}

.product-info-review {
    flex: 1;
}

.product-name-review {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.order-id-review {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: monospace;
}

/* Star Rating */
.rating-container {
    text-align: center;
}

.section-heading {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subheading {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.star {
    font-size: 2.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #e2e8f0;
}

.star.active {
    color: var(--primary-glow);
    text-shadow: 0 0 15px rgba(0, 166, 81, 0.2);
    transform: scale(1.1);
}

.star.fas {
    color: var(--primary-glow);
}

.rating-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-glow);
    height: 1.2rem;
}

/* Comment Input */
.input-label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: block;
}

.input-wrapper {
    position: relative;
}

textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(0, 166, 81, 0.1);
    border-radius: 16px;
    padding: 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    resize: none;
    height: 120px;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-glow);
    background: #ffffff;
    box-shadow: 0 0 15px rgba(0, 166, 81, 0.05);
}

.char-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Media Upload */
.upload-area {
    width: 100%;
    height: 80px;
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.upload-area:hover {
    border-color: var(--secondary-glow);
    background: rgba(0, 212, 255, 0.05);
    color: var(--text-primary);
}

.upload-area i {
    font-size: 1.5rem;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.preview-item {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--glass-border);
}

/* Submit Button */
.submit-review-btn {
    width: 100%;
    background: var(--accent-gradient);
    border: none;
    border-radius: 20px;
    padding: 18px;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    margin-top: 20px;
}

.submit-review-btn:active {
    transform: scale(0.98);
}

.submit-review-btn i {
    transition: transform 0.3s ease;
}

.submit-review-btn:hover i {
    transform: translate(5px, -5px);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.submit-review-btn:hover .btn-shine {
    left: 100%;
}

/* Success Overlay */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.success-card {
    max-width: 400px;
    width: 100%;
    text-align: center;
    padding: 40px 30px;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-overlay.active {
    display: flex;
}

.success-overlay.active .success-card {
    transform: translateY(0);
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ffffff;
    margin: 0 auto 24px;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.done-btn {
    background: transparent;
    border: 1px solid var(--primary-glow);
    color: var(--primary-glow);
    padding: 12px 40px;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.done-btn:hover {
    background: var(--primary-glow);
    color: #ffffff;
}

/* Skeleton Loader */
.product-loader-skeleton {
    width: 100%;
    height: 80px;
    background: linear-gradient(90deg, transparent, rgba(0, 166, 81, 0.05), transparent);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
}

@keyframes skeletonLoading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Responsive Tweaks */
@media (max-width: 480px) {
    .review-wrapper {
        padding-top: 90px;
    }

    .star {
        font-size: 1.8rem;
    }

    .glass-panel {
        padding: 20px;
    }
}
