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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

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

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

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

.card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card h2 {
    margin-bottom: 20px;
    color: #667eea;
    font-size: 1.5rem;
}

.status-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: #10b981;
}

.status-dot.offline {
    background: #ef4444;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.label {
    font-size: 0.9rem;
    color: #666;
}

.value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6b7280;
    color: white;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: #4b5563;
}

.log-container {
    max-height: 300px;
    overflow-y: auto;
    background: #f9fafb;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
}

.log-entry {
    padding: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #667eea;
    background: white;
    border-radius: 4px;
}

.log-entry.success {
    border-left-color: #10b981;
}

.log-entry.error {
    border-left-color: #ef4444;
}

.log-entry .timestamp {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.log-entry .message {
    font-weight: 500;
}

.empty-state {
    text-align: center;
    color: #999;
    padding: 20px;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #ffffff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
}

.form-select:hover {
    border-color: #667eea;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.15);
}

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

.form-select option {
    padding: 10px;
    background: white;
    color: #333;
}

.form-select option:checked {
    background: #667eea;
    color: white;
}

.model-info {
    margin-top: 10px;
}

.model-info-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.model-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.model-info-header strong {
    color: #333;
    font-size: 1rem;
}

.model-series {
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.model-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.model-pricing {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.pricing-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pricing-label {
    font-size: 0.85rem;
    color: #666;
}

.pricing-value {
    font-size: 1rem;
    font-weight: 600;
    color: #10b981;
}

.model-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

a {
    color: #667eea;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ol {
    padding-left: 20px;
}

ol li {
    margin-bottom: 10px;
}

.target-site-item {
    transition: all 0.3s;
}

.target-site-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.site-form-item {
    transition: all 0.3s;
}

.site-form-item:hover {
    border-color: #667eea;
}

.rewrite-btn:disabled,
.publish-now-btn:disabled,
.publish-draft-btn:disabled,
.publish-schedule-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Yayın butonları: üçü de birebir aynı genişlik ve yükseklik */
.publish-actions {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.publish-actions .btn,
.publish-actions .publish-now-btn,
.publish-actions .publish-draft-btn,
.publish-actions .publish-schedule-btn {
    flex: 1 1 0%;
    width: 0;
    min-width: 0;
    height: 48px;
    min-height: 48px;
    margin: 0;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 6px;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-info {
    background: #3b82f6;
    color: white;
}

.btn-info:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.site-form-fields {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* İçerik Görsel / Kod sekmeleri */
.content-view-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.content-tab-btn {
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.content-tab-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f5f3ff;
}

.content-tab-btn.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.content-visual-view {
    line-height: 1.6;
    word-wrap: break-word;
}

.content-visual-view p { margin-bottom: 0.75em; }
.content-visual-view h2 { font-size: 1.25rem; margin: 1em 0 0.5em; color: #333; }
.content-visual-view h3 { font-size: 1.1rem; margin: 0.75em 0 0.4em; color: #444; }
.content-visual-view ul, .content-visual-view ol { margin: 0.5em 0; padding-left: 1.5em; }
.content-visual-view li { margin-bottom: 0.25em; }
.content-visual-view strong { font-weight: 600; }

.magic-touch-btn {
    flex-shrink: 0;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.modal-header h2 {
    color: #667eea;
    margin: 0;
    font-size: 1.5rem;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-modal-btn:hover {
    background: #f3f4f6;
    color: #333;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s;
}

.radio-group label:hover {
    border-color: #667eea;
    background: #f9fafb;
}

.radio-group input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.radio-group input[type="radio"]:checked + span {
    color: #667eea;
    font-weight: 600;
}

.schedule-options {
    margin-top: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.schedule-options input[type="datetime-local"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.schedule-options input[type="datetime-local"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
}
