/* ===== Suggestions Panel - Premium Slide-out Design ===== */

/* Trigger Link Styling */
.suggestions-trigger-link {
    cursor: pointer;
    position: relative;
}

.suggestions-trigger-link i {
    color: #fbbf24 !important;
    transition: all 0.3s ease;
}

.suggestions-trigger-link:hover i {
    color: #FF3B3B !important;
    text-shadow: 0 0 10px rgba(255, 59, 59, 0.5);
}

/* Overlay */
.suggestions-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9998;
}

.suggestions-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Panel Container */
.suggestions-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background: linear-gradient(180deg, #0a0a0f 0%, #050508 100%);
    border-left: 1px solid rgba(255, 59, 59, 0.15);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8), 
                -5px 0 30px rgba(255, 59, 59, 0.05);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.suggestions-panel.active {
    right: 0;
}

/* Animated Border Glow */
.suggestions-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(255, 59, 59, 0.8) 20%, 
        rgba(255, 59, 59, 0.4) 50%, 
        rgba(255, 59, 59, 0.8) 80%, 
        transparent 100%);
    animation: borderPulse 3s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Panel Header */
.suggestions-panel-header {
    padding: 28px 24px;
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.08) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.suggestions-panel-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 59, 59, 0.3), transparent);
}

.suggestions-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.suggestions-icon-wrapper {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.2) 0%, rgba(255, 59, 59, 0.05) 100%);
    border: 1px solid rgba(255, 59, 59, 0.3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #FF3B3B;
    box-shadow: 0 0 25px rgba(255, 59, 59, 0.2),
                inset 0 0 20px rgba(255, 59, 59, 0.1);
    animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.suggestions-header-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.suggestions-header-text p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.suggestions-close-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suggestions-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: rotate(90deg);
}

/* Panel Body */
.suggestions-panel-body {
    flex: 1;
    padding: 32px 24px;
    overflow-y: auto;
}

.suggestions-panel-body::-webkit-scrollbar {
    width: 6px;
}

.suggestions-panel-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.suggestions-panel-body::-webkit-scrollbar-thumb {
    background: rgba(255, 59, 59, 0.3);
    border-radius: 3px;
}

.suggestions-form-container {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Form Groups */
.suggestions-form-group {
    position: relative;
}

.suggestions-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
}

.suggestions-label i {
    color: #FF3B3B;
    font-size: 0.9rem;
}

.suggestions-input-wrapper {
    position: relative;
}

.suggestions-input,
.suggestions-textarea {
    width: 100%;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 0.95rem;
    color: #fff;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.suggestions-input::placeholder,
.suggestions-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.suggestions-input:focus,
.suggestions-textarea:focus {
    border-color: rgba(255, 59, 59, 0.5);
    background: rgba(15, 15, 20, 0.9);
    box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.1),
                0 0 30px rgba(255, 59, 59, 0.1);
}

.suggestions-textarea {
    resize: none;
    min-height: 140px;
    line-height: 1.6;
}

.suggestions-input-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FF3B3B, transparent);
    transition: width 0.4s ease;
    border-radius: 2px;
}

.suggestions-input:focus + .suggestions-input-glow,
.suggestions-textarea:focus + .suggestions-input-glow {
    width: 80%;
}

.suggestions-char-count {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 8px;
}

/* Submit Button */
.suggestions-submit-btn {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #FF3B3B 0%, #3dd60f 100%);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.suggestions-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.suggestions-submit-btn:hover::before {
    left: 100%;
}

.suggestions-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 59, 59, 0.4),
                0 0 50px rgba(255, 59, 59, 0.2);
}

.suggestions-submit-btn:active {
    transform: translateY(0);
}

.suggestions-submit-btn .btn-content,
.suggestions-submit-btn .btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.suggestions-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success Message */
.suggestions-success {
    text-align: center;
    padding: 40px 20px;
    animation: successFadeIn 0.5s ease;
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.suggestions-success .success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.2) 0%, rgba(255, 59, 59, 0.05) 100%);
    border: 2px solid rgba(255, 59, 59, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2.5rem;
    color: #FF3B3B;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(255, 59, 59, 0); }
}

.suggestions-success h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.suggestions-success p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* Panel Footer */
.suggestions-panel-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(5, 5, 8, 0.5);
}

.suggestions-footer-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.suggestions-footer-decoration span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}

.decoration-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 59, 59, 0.2), transparent);
}

/* Responsive */
@media (max-width: 480px) {
    .suggestions-panel {
        width: 100%;
        right: -100%;
    }
    
    .suggestions-panel-header {
        padding: 20px 16px;
    }
    
    .suggestions-panel-body {
        padding: 24px 16px;
    }
    
    .suggestions-icon-wrapper {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    
    .suggestions-header-text h3 {
        font-size: 1.1rem;
    }
}
