/* AI Content Writer - Stil Dosyası */

/* Genel Stiller */
.ai-content-writer-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ai-content-writer-dashboard .card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-content-writer-dashboard .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ai-content-writer-dashboard .card h2 {
    margin-top: 0;
    color: #23282d;
    font-size: 18px;
    font-weight: 600;
}

/* Buton Stilleri */
.ai-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.ai-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.ai-button:active {
    transform: translateY(0);
}

.ai-button.ai-button-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.ai-button.ai-button-danger {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.ai-button.ai-button-warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

/* Loading Spinner */
.ai-loading-spinner {
    display: inline-block;
    margin-left: 10px;
}

.ai-loading-spinner .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Stilleri */
.ai-form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.ai-form-section h3 {
    margin-top: 0;
    color: #23282d;
    font-size: 16px;
    font-weight: 600;
}

.ai-form-field {
    margin-bottom: 20px;
}

.ai-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #23282d;
}

.ai-form-field input,
.ai-form-field textarea,
.ai-form-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.ai-form-field input:focus,
.ai-form-field textarea:focus,
.ai-form-field select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ai-form-field .description {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Karakter Sayacı */
.character-counter {
    margin-top: 5px;
    font-size: 12px;
    text-align: right;
}

/* Kategori Sayacı */
.category-stats {
    margin: 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.category-suggestions {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.category-suggestion {
    display: inline-block;
    margin: 5px 5px 5px 0;
    padding: 6px 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-suggestion:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

/* Progress Bar */
.manual-post-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.manual-post-controls label {
    font-weight: 500;
    color: #23282d;
}

.manual-post-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    max-width: 200px;
}

#creation-progress {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.progress-bar-container {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

#progress-text {
    text-align: center;
    font-weight: 500;
    color: #23282d;
}

/* Tooltip */
.ai-tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
    white-space: nowrap;
}

.ai-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Bildirim Sistemi */
.ai-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.ai-notification.success {
    background: #4CAF50;
}

.ai-notification.error {
    background: #f44336;
}

.ai-notification.warning {
    background: #ff9800;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Tablo Stilleri */
.ai-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ai-table th,
.ai-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.ai-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #23282d;
}

.ai-table tr:hover {
    background: #f8f9fa;
}

.ai-table .actions {
    display: flex;
    gap: 8px;
}

.ai-table .actions a {
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ai-table .actions .edit {
    background: #2196F3;
    color: white;
}

.ai-table .actions .view {
    background: #4CAF50;
    color: white;
}

.ai-table .actions .delete {
    background: #f44336;
    color: white;
}

/* Frontend Stilleri */
.ai-generated-post {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.ai-generated-post:hover {
    transform: translateY(-2px);
}

.ai-generated-post.animate-in {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-generated-post .post-title {
    font-size: 28px;
    font-weight: 700;
    color: #23282d;
    margin-bottom: 15px;
    line-height: 1.3;
}

.ai-generated-post .post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.ai-generated-post .post-content {
    line-height: 1.8;
    color: #333;
    font-size: 16px;
}

.ai-generated-post .post-content h1,
.ai-generated-post .post-content h2,
.ai-generated-post .post-content h3 {
    color: #23282d;
    margin-top: 30px;
    margin-bottom: 15px;
}

.ai-generated-post .post-content h1 {
    font-size: 24px;
}

.ai-generated-post .post-content h2 {
    font-size: 21px;
}

.ai-generated-post .post-content h3 {
    font-size: 18px;
}

.ai-generated-post .post-content p {
    margin-bottom: 20px;
}

/* Sosyal Paylaşım */
.ai-social-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.ai-social-share .share-label {
    font-weight: 600;
    color: #23282d;
}

.ai-social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.ai-social-share a:hover {
    transform: scale(1.1);
}

.ai-social-share .share-twitter {
    background: #1DA1F2;
}

.ai-social-share .share-facebook {
    background: #1877F2;
}

.ai-social-share .share-whatsapp {
    background: #25D366;
}

.ai-social-share .share-email {
    background: #666;
}

/* Beğenme Sistemi */
.ai-like-system {
    display: inline-flex;
    align-items: center;
}

.ai-like-system .like-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-like-system .like-button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.ai-like-system .like-button.liked {
    background: #ff4757;
    color: white;
    border-color: #ff4757;
}

.ai-like-system .like-button.liked:hover {
    background: #ff3742;
}

/* Okuma Süresi */
.reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
}

/* Kategori Etiketleri */
.ai-category-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    color: white;
    text-decoration: none;
    margin-right: 8px;
    transition: opacity 0.2s ease;
}

.ai-category-tag:hover {
    opacity: 0.8;
    color: white;
}

/* Anahtar Kelime Vurgusu */
.ai-keyword-highlight {
    background: rgba(102, 126, 234, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
}

/* Kopyalama Butonu */
.copy-content {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-content:hover {
    background: #e9ecef;
}

/* Toast Bildirimi */
.ai-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.ai-toast.show {
    transform: translateX(0);
}

.ai-toast.ai-toast-success {
    background: #4CAF50;
}

.ai-toast.ai-toast-error {
    background: #f44336;
}

/* Okuma İlerlemesi */
.ai-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.2);
    z-index: 1000;
}

.ai-reading-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.1s ease;
}

/* Lazy Loading */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy.loaded {
    opacity: 1;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .ai-content-writer-dashboard {
        grid-template-columns: 1fr;
    }
    
    .ai-generated-post {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .ai-generated-post .post-title {
        font-size: 24px;
    }
    
    .ai-generated-post .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ai-social-share {
        flex-wrap: wrap;
    }
    
    .ai-social-share a {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .ai-generated-post .post-title {
        font-size: 20px;
    }
    
    .ai-generated-post .post-content {
        font-size: 14px;
    }
}

/* Dark Mode Desteği */
@media (prefers-color-scheme: dark) {
    .ai-content-writer-dashboard .card {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .ai-generated-post {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .ai-generated-post .post-title {
        color: #f7fafc;
    }
    
    .ai-generated-post .post-meta {
        color: #a0aec0;
        border-color: #4a5568;
    }
    
    .ai-form-field input,
    .ai-form-field textarea,
    .ai-form-field select {
        background: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
}

/* Animasyon Performansı */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Stilleri */
@media print {
    .ai-social-share,
    .ai-like-system,
    .copy-content,
    .ai-toast,
    .ai-reading-progress {
        display: none !important;
    }
    
    .ai-generated-post {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}