/*
Theme Name: SRT Doctor
Theme URI: https://example.com
Description: YouTube altyazı düzeltme teması
Version: 1.0
Author: Efe Atasoy
*/

* {
    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;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1em;
}

.upload-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: #e0e0e0;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #667eea;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.input-group input[type="text"],
.input-group input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.3s;
}

.input-group input[type="text"]:focus,
.input-group input[type="file"]:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.editor-section {
    display: none;
    margin-top: 30px;
}

.editor-section.active {
    display: block;
}

.video-container {
    margin-bottom: 30px;
    text-align: center;
}

.video-container iframe {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.editor-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.editor-box {
    border: 2px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.editor-header {
    background: #f8f9fa;
    padding: 15px;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
    color: #333;
}

.editor-content {
    height: 500px;
    overflow-y: auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.8;
}

.editor-content[contenteditable="true"] {
    background: #fffef8;
    border-left: 3px solid #667eea;
    outline: none;
    cursor: text;
}

.editor-content[contenteditable="true"]:focus {
    background: #fffff0;
}

.editor-content[contenteditable="true"] {
    background: #fffef8;
    border-left: 3px solid #667eea;
    outline: none;
    cursor: text;
}

.editor-content[contenteditable="true"]:focus {
    background: #fffff0;
}

.subtitle-block {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.timestamp {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.timestamp:hover {
    background: #5568d3;
    transform: scale(1.05);
}

.subtitle-text {
    color: #333;
    white-space: pre-wrap;
}

.corrected {
    background: #fff3cd !important;
    padding: 2px 4px;
    border-radius: 3px;
    text-decoration: underline;
    text-decoration-color: #ff6b6b;
    text-decoration-thickness: 2px;
    font-weight: 500;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #667eea;
    font-size: 18px;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #f5c6cb;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #c3e6cb;
}

@media (max-width: 968px) {
    .editor-wrapper {
        grid-template-columns: 1fr;
    }
    
    .video-container iframe {
        height: 300px;
    }
}