/* ============================================
   Mini SaaS Geri Bildirim Panosu
   Luxury Minimal SaaS Tasarımı
   ============================================ */

/* ---------- CSS Değişkenleri ---------- */
:root {
    /* Renk Paleti */
    --color-bg: #f8f9fc;
    --color-surface: #ffffff;
    --color-border: #eef0f5;
    --color-text-primary: #1a1a2e;
    --color-text-secondary: #6b7280;
    --color-text-muted: #9ca3af;
    --color-accent: #4f46e5;
    --color-accent-hover: #4338ca;
    --color-accent-light: rgba(79, 70, 229, 0.08);
    --color-error: #ef4444;
    --color-error-bg: #fef2f2;

    /* Status Renkleri */
    --color-status-bekliyor: #f59e0b;
    --color-status-bekliyor-bg: #fffbeb;
    --color-status-planlandi: #3b82f6;
    --color-status-planlandi-bg: #eff6ff;
    --color-status-tamamlandi: #10b981;
    --color-status-tamamlandi-bg: #ecfdf5;

    /* Tipografi */
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Boyutlar */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 10px 15px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.05), 0 20px 40px rgba(0, 0, 0, 0.04);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ---------- Layout ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* ---------- Header ---------- */
.header {
    text-align: center;
    margin-bottom: 48px;
}

.header-content {
    max-width: 600px;
    margin: 0 auto;
}

.header-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 12px;
}

.header-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    font-weight: 400;
    line-height: 1.6;
}

/* ---------- Grid (2 Kolon) ---------- */
.grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 32px;
    align-items: start;
}

/* ---------- Kart Bileşeni ---------- */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 24px 24px 0;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

/* ---------- Form Kartı ---------- */
.form-card {
    padding: 0 0 24px;
}

.feedback-form {
    padding: 20px 24px 0;
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 6px;
}

.required {
    color: var(--color-error);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-family);
    font-size: 0.9375rem;
    color: var(--color-text-primary);
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-muted);
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-input.error,
.form-textarea.error {
    border-color: var(--color-error);
}

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

.form-error {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-error);
    margin-top: 4px;
    min-height: 0;
    opacity: 0;
    transition: opacity var(--transition);
}

.form-error.visible {
    opacity: 1;
}

/* ---------- Buton ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    font-family: var(--font-family);
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--color-accent);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-loader {
    display: none;
    animation: spin 0.8s linear infinite;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loader {
    display: inline-flex;
}

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

/* ---------- Form Mesaj ---------- */
.form-message {
    padding: 0 24px;
    margin-top: 16px;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity var(--transition);
}

.form-message.visible {
    opacity: 1;
}

.form-message.success {
    color: var(--color-status-tamamlandi);
}

.form-message.error {
    color: var(--color-error);
}

/* ---------- Liste Alanı ---------- */
.list-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.list-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-accent);
    background: var(--color-accent-light);
    border-radius: 999px;
}

/* ---------- Boş Durum ---------- */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.empty-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.empty-text {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

/* ---------- Feedback Kartları ---------- */
.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.feedback-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.feedback-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.feedback-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.4;
    flex: 1;
}

.feedback-description {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.feedback-description:empty {
    display: none;
}

.feedback-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.feedback-date {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* ---------- Status Badge ---------- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Bekliyor */
.status-badge.bekliyor {
    color: var(--color-status-bekliyor);
    background: var(--color-status-bekliyor-bg);
}

.status-badge.bekliyor .dot {
    background: var(--color-status-bekliyor);
}

/* Planlandi */
.status-badge.planlandi {
    color: var(--color-status-planlandi);
    background: var(--color-status-planlandi-bg);
}

.status-badge.planlandi .dot {
    background: var(--color-status-planlandi);
}

/* Tamamlandi */
.status-badge.tamamlandi {
    color: var(--color-status-tamamlandi);
    background: var(--color-status-tamamlandi-bg);
}

.status-badge.tamamlandi .dot {
    background: var(--color-status-tamamlandi);
}

/* ---------- Yükleniyor ---------- */
.list-loader {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 24px;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.list-loader.visible {
    display: flex;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .container {
        padding: 24px 16px 48px;
    }

    .header {
        margin-bottom: 32px;
    }

    .header-title {
        font-size: 1.75rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .form-col {
        order: 1;
    }

    .list-col {
        order: 2;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1.5rem;
    }

    .header-subtitle {
        font-size: 1rem;
    }

    .feedback-card {
        padding: 16px 20px;
    }

    .feedback-card-header {
        flex-direction: column;
    }

    .feedback-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
