/* MapsAI Yorum Üretim Sistemi - Stil Sayfası */

:root {
    /* Color Palette */
    --bg-main: #0a0b0d;
    --bg-card: rgba(22, 24, 30, 0.7);
    --bg-card-hover: rgba(30, 33, 42, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(99, 102, 241, 0.5);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --color-primary: #6366f1; /* Indigo */
    --color-secondary: #a855f7; /* Purple */
    --color-accent: #10b981; /* Emerald Green */
    --color-danger: #ef4444; /* Red */
    --color-star: #fbbf24; /* Amber Yellow */
    
    --gradient-brand: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --gradient-glow: 0 0 25px rgba(99, 102, 241, 0.3);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --card-blur: blur(16px);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 45%);
    background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* App Container Layout */
.app-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Header Styling */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-brand);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: var(--gradient-glow);
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.logo-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

/* Grid Layout */
.app-grid {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .app-grid {
        grid-template-columns: 1fr;
    }
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--card-blur);
    -webkit-backdrop-filter: var(--card-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title i {
    color: var(--color-primary);
    font-size: 1.25rem;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
}

/* Form Styling */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
}

.input-group label .required {
    color: var(--color-danger);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input,
.input-wrapper select,
.input-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.input-wrapper input {
    padding-left: 2.75rem;
}

.input-wrapper select {
    padding-left: 2.75rem;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition-fast);
    pointer-events: none;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper select:focus + .input-icon {
    color: var(--color-primary);
}

.input-group textarea {
    resize: vertical;
    min-height: 90px;
}

/* Interactive Star Rating */
.star-rating-selector {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
}

.star-rating-selector input {
    display: none;
}

.star-rating-selector label {
    font-size: 1.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    margin-bottom: 0;
}

.star-rating-selector label:hover,
.star-rating-selector label:hover ~ label,
.star-rating-selector input:checked ~ label {
    color: var(--color-star);
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

/* Pill Selector */
.pill-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.pill-option {
    cursor: pointer;
}

.pill-option input {
    display: none;
}

.pill-option span {
    display: block;
    text-align: center;
    padding: 0.6rem;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.pill-option input:checked + span {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.pill-option:hover span:not(input:checked + span) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Quick Tags */
.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.quick-tag {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.quick-tag:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

/* Buttons */
.primary-btn {
    width: 100%;
    background: var(--gradient-brand);
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: var(--gradient-glow);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(99, 102, 241, 0.45);
}

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

.primary-btn .btn-loader {
    position: absolute;
    right: 1.5rem;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
}

.text-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.text-btn:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

/* Results Column Styling */
.results-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.state-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px;
    padding: 3rem;
}

.state-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.2));
}

.state-panel h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.state-panel p {
    color: var(--text-secondary);
    max-width: 420px;
    font-size: 0.95rem;
}

/* Error Panel */
.error-panel .state-icon {
    background: linear-gradient(135deg, #f87171, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-panel p {
    margin-bottom: 1.5rem;
}

/* Results Output Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 2rem;
}

.results-title-group h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.results-meta {
    display: flex;
    gap: 0.6rem;
}

.result-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.result-badge i {
    color: var(--color-star);
}

.results-actions {
    display: flex;
    gap: 0.6rem;
}

.action-btn {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.action-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.review-card {
    background: var(--bg-card);
    backdrop-filter: var(--card-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    animation: fade-in-up 0.5s ease both;
}

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

.review-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

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

.reviewer-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviewer-info-text {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.reviewer-stars {
    color: var(--color-star);
    font-size: 0.8rem;
    display: flex;
    gap: 0.1rem;
}

.review-card-actions {
    display: flex;
    gap: 0.5rem;
}

.card-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.85rem;
}

.card-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.card-action-btn.copy-btn:hover {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.review-text-area {
    width: 100%;
}

.review-content {
    font-size: 0.95rem;
    color: var(--text-primary);
    word-break: break-word;
}

/* History Box */
.history-section {
    padding: 1.5rem;
    margin-top: 1.5rem;
}

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

.history-header h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.history-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
    cursor: pointer;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.history-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.history-item-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.history-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.history-item-stars {
    color: var(--color-star);
    font-size: 0.7rem;
}

.history-item-action {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.history-item:hover .history-item-action {
    color: var(--color-primary);
    transform: translateX(2px);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #10b981;
    color: #fff;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 9999;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.toast-error {
    background: var(--color-danger);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.toast.hidden {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    pointer-events: none;
}

/* Skeletal Loading / Shimmer effect */
.skeletal-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    width: 100%;
}

.skeletal-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.25rem;
}

.skeletal-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.skeletal-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.skeletal-line {
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.line-short { width: 30%; }
.line-medium { width: 50%; }
.line-long { width: 75%; }
.line-full { width: 100%; }

.skeletal-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.shine {
    position: relative;
    overflow: hidden;
}

.shine::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.04) 20%,
        rgba(255, 255, 255, 0.08) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.loading-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
}
