/* ================================================
   FIORRA FEEDBACK - ŞIKAYET & ÖNERİ
   Created with love 💜 
   notifications.css ile uyumlu tasarım
   Son Düzenleme 17:12:24 13:05:00
   ================================================ */

:root {
    /* Colors */
    --primary-purple: #9d4edd;
    --primary-pink: #ff6b9d;
    --soft-blue: #7209b7;
    --deep-purple: #5a189a;
    
    /* Gradients */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-full: 999px;
    
    /* Shadows */
    --shadow-glow: 0 8px 32px rgba(157, 78, 221, 0.3);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ================================================
   GLOBAL STYLES
   ================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ================================================
   AURORA BACKGROUND
   ================================================ */

.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, 
        #1e1e2e 0%,
        #2d1b4e 25%,
        #4a1f6f 50%,
        #5e2a84 75%,
        #7b2d8f 100%
    );
}

/* ================================================
   FEEDBACK CONTAINER
   ================================================ */

.feedback-container {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 100px;
    min-height: 100vh;
}

/* ================================================
   HEADER
   ================================================ */

.feedback-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: rgba(30, 30, 46, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-title .icon {
    font-size: 1.8rem;
}

/* ================================================
   FILTER TABS
   ================================================ */

.filter-tabs {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(30, 30, 46, 0.6);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 72px;
    z-index: 99;
}

.filter-tab {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.filter-tab.active {
    background: linear-gradient(135deg, #ff6b9d 0%, #9d4edd 100%);
    color: white;
    border-color: transparent;
}

.unread-badge {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
}

.filter-tab.active .unread-badge {
    background: rgba(255, 255, 255, 0.4);
}

/* ================================================
   MAIN CONTENT
   ================================================ */

.feedback-main {
    padding: var(--spacing-md);
}

.tab-content {
    animation: fade-in 0.3s ease;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================================
   FEEDBACK FORM
   ================================================ */

.feedback-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

.form-section {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.9);
}

.label-icon {
    font-size: 1.2rem;
}

/* Type Selection Grid */
.type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
}

.type-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-card input {
    display: none;
}

.type-card:hover {
    border-color: rgba(157, 78, 221, 0.5);
    background: rgba(157, 78, 221, 0.1);
    transform: translateY(-2px);
}

.type-card.selected,
.type-card:has(input:checked) {
    border-color: var(--primary-pink);
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(157, 78, 221, 0.2));
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.3);
}

.type-icon {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.type-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Form Inputs */
.form-input,
.form-textarea {
    width: 100%;
    padding: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}

.char-counter.warning {
    color: #fbbf24;
}

.char-counter.error {
    color: #ef4444;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, #ff6b9d 0%, #9d4edd 100%);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--spacing-md);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.4);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

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

.btn-spinner {
    width: 20px;
    height: 20px;
}

.btn-spinner .spinner-ring {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ================================================
   SUCCESS STATE
   ================================================ */

.success-state {
    text-align: center;
    padding: var(--spacing-xl);
    animation: fade-in 0.3s ease;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-md);
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.success-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.success-message {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: var(--spacing-lg);
}

.new-feedback-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.new-feedback-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* ================================================
   LOADING STATE
   ================================================ */

.loading-state {
    text-align: center;
    padding: var(--spacing-xl);
}

.loading-spinner {
    margin: 0 auto;
    width: 60px;
    height: 60px;
    position: relative;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ff6b9d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: #9d4edd;
    animation-duration: 1.5s;
}

.spinner-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: #ffd700;
    animation-duration: 2s;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: var(--spacing-md);
    font-size: 1rem;
    opacity: 0.8;
}

/* ================================================
   EMPTY STATE
   ================================================ */

.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-md);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.empty-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.empty-message {
    font-size: 1rem;
    opacity: 0.7;
}

/* ================================================
   FEEDBACK LIST
   ================================================ */

.feedback-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Feedback Card */
.feedback-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slide-in 0.3s ease-out;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feedback-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(255, 255, 255, 0.3);
}

.feedback-card.has-response {
    border-left: 4px solid #10b981;
}

.feedback-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
}

.feedback-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

.feedback-type-badge.complaint {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.feedback-type-badge.suggestion {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.feedback-type-badge.bug {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.feedback-type-badge.other {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.feedback-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
}

.feedback-status.pending {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

.feedback-status.reviewed {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.feedback-status.resolved {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.feedback-status.rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.feedback-subject {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.feedback-preview {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feedback-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--spacing-sm);
    font-size: 0.85rem;
    opacity: 0.6;
}

.feedback-response-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #10b981;
    font-weight: 600;
}

/* ================================================
   MODAL
   ================================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: var(--spacing-md);
}

.modal-overlay.active {
    display: flex;
    animation: fade-in 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #1e1e2e 0%, #2d1b4e 100%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: scale-in 0.3s ease;
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(10px);
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

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

.modal-body {
    padding: var(--spacing-md);
}

/* Detail Sections */
.detail-section {
    margin-bottom: var(--spacing-md);
}

.detail-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.detail-value {
    font-size: 1rem;
    color: white;
    line-height: 1.6;
}

/* Admin Response Box */
.admin-response-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.admin-response-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: #10b981;
}

.admin-response-text {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.admin-response-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: var(--spacing-sm);
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 768px) {
    .feedback-container {
        padding-bottom: 80px;
    }
    
    .page-title {
        font-size: 1.2rem;
    }
    
    .type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .type-icon {
        font-size: 1.5rem;
    }
    
    .type-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .filter-tabs {
        gap: 0.5rem;
        padding: var(--spacing-sm);
    }
    
    .filter-tab {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}