/* Modern AI Makale Bot Stilleri */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Login Ekranı */
.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    transform: translateY(-20px);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #4a5568;
    font-size: 2rem;
    margin-bottom: 10px;
}

.login-header p {
    color: #718096;
    font-size: 1rem;
}

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

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-login {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    margin-top: 10px;
}

.login-error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
}

/* Header Güncellemeleri */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-title h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header-title p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    color: white;
    font-weight: 500;
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 5px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    background: rgba(255,255,255,0.1);
}

.tab-btn.active {
    background: white;
    color: #4a5568;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Tab Content */
.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-pane.active {
    display: block;
}

/* Makale Önerileri Stilleri */
.suggestions-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.suggestions-panel {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: fit-content;
}

.suggestions-panel h2 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.3rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.suggestions-panel p {
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.5;
}

.suggestions-list {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.suggestions-list h3 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.suggestion-item {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.suggestion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.suggestion-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.4;
}

.suggestion-description {
    color: #718096;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.suggestion-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.keyword-tag {
    background: #e2e8f0;
    color: #4a5568;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.suggestion-actions {
    display: flex;
    gap: 10px;
}

.btn-xs {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.use-suggestion {
    background: #667eea;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.use-suggestion:hover {
    background: #5a6fd8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    margin-bottom: 30px;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 30px;
}

.settings-panel,
.content-panel,
.loading-panel,
.preview-panel,
.result-panel {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.settings-panel:hover,
.content-panel:hover,
.preview-panel:hover {
    transform: translateY(-2px);
}

.settings-panel h2,
.content-panel h2,
.preview-panel h2 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #718096;
    font-size: 12px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #edf2f7;
    transform: translateY(-1px);
}

.loading-panel {
    grid-column: 1 / -1;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preview-panel {
    grid-column: 1 / -1;
}

.preview-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.content-preview {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
    font-family: Georgia, serif;
    line-height: 1.6;
}

.content-preview h1 {
    color: #2d3748;
    font-size: 2rem;
    margin-bottom: 15px;
}

.content-preview h2 {
    color: #4a5568;
    font-size: 1.5rem;
    margin: 25px 0 15px 0;
    border-left: 4px solid #667eea;
    padding-left: 15px;
}

.content-preview h3 {
    color: #718096;
    font-size: 1.2rem;
    margin: 20px 0 10px 0;
}

.content-preview p {
    margin-bottom: 15px;
    text-align: justify;
}

.content-preview ul,
.content-preview ol {
    margin: 15px 0;
    padding-left: 30px;
}

.content-preview li {
    margin-bottom: 8px;
}

.content-preview blockquote {
    background: #edf2f7;
    border-left: 4px solid #667eea;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
}

.edit-mode textarea {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
}

.edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.result-panel {
    grid-column: 1 / -1;
    text-align: center;
}

.result-message {
    padding: 20px;
    border-radius: 8px;
    font-weight: 600;
}

.result-message.success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.result-message.error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .suggestions-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-title h1 {
        font-size: 2rem;
    }
    
    .tab-navigation {
        flex-direction: column;
        gap: 5px;
    }
    
    .tab-btn {
        padding: 15px;
        text-align: center;
    }
    
    .preview-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .container {
        padding: 10px;
    }
    
    .login-container {
        margin: 20px;
        padding: 30px;
    }
    
    .suggestion-actions {
        flex-direction: column;
        gap: 8px;
    }
}

/* Animasyonlar */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Özel Scrollbar */
.content-preview::-webkit-scrollbar {
    width: 8px;
}

.content-preview::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.content-preview::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.content-preview::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Kategori Seçimi */
.category-selection {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    flex: 1;
    min-width: 250px;
}

.category-selection label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
    font-size: 13px;
}

.category-selection select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #495057;
    transition: all 0.3s ease;
}

.category-selection select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.category-selection select:hover {
    border-color: #adb5bd;
}

/* Info buton stili */
.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border: none;
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.4);
}