/* SEO Temel SERP Simülatörü - Stil Dosyası */

:root {
    --serp-primary: #1a73e8;
    --serp-bg: #ffffff;
    --serp-text: #202124;
    --serp-border: #dadce0;
    --serp-radius: 8px;
    --serp-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.serp-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    padding: 20px;
    min-height: 600px;
    color: var(--serp-text);
}

.serp-header {
    background: linear-gradient(135deg, var(--serp-primary) 0%, #0d47a1 100%);
    color: #fff;
    padding: 24px 28px;
    border-radius: var(--serp-radius);
    margin-bottom: 20px;
}
.serp-header h1 { margin: 0 0 6px; font-size: 22px; }
.serp-header p { margin: 4px 0; opacity: 0.9; font-size: 14px; }
.serp-header .serp-by a { color: #fff; font-weight: 600; }

/* Shortcode box */
.serp-shortcode-box {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
}
.serp-shortcode-box code { background: #fff3e0; padding: 2px 6px; border-radius: 4px; color: #e65100; margin: 0 6px; }

/* Layout */
.serp-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 20px;
    align-items: start;
}

/* Left Panel */
.serp-panel-left {
    background: var(--serp-bg);
    border: 1px solid var(--serp-border);
    border-radius: var(--serp-radius);
    padding: 20px;
    box-shadow: var(--serp-shadow);
}

.serp-field-group {
    margin-bottom: 16px;
}
.serp-field-group label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #3c4043;
    margin-bottom: 5px;
}
.serp-counter { font-weight: 400; color: #80868b; font-size: 12px; }

.serp-field-group input[type="text"],
.serp-field-group input[type="url"],
.serp-field-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--serp-border);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.serp-field-group input:focus,
.serp-field-group textarea:focus {
    outline: none;
    border-color: var(--serp-primary);
    box-shadow: 0 0 0 2px rgba(26,115,232,0.15);
}

/* URL Row */
.serp-url-row {
    display: flex;
    gap: 8px;
}
.serp-url-row input { flex: 1; }

/* Progress bars */
.serp-title-bar-wrap {
    height: 4px;
    background: #e8eaed;
    border-radius: 2px;
    margin: 4px 0 6px;
    overflow: hidden;
}
.serp-title-bar, .serp-desc-bar {
    height: 100%;
    background: #34a853;
    border-radius: 2px;
    transition: width 0.2s, background 0.2s;
    width: 0%;
}
.serp-title-bar.warn, .serp-desc-bar.warn { background: #fbbc04; }
.serp-title-bar.over, .serp-desc-bar.over { background: #ea4335; }

/* Options checkboxes */
.serp-options-title { font-weight: 600; font-size: 13px; color: #3c4043; margin-bottom: 8px; }
.serp-options-row { display: flex; flex-wrap: wrap; gap: 12px; }
.serp-checkbox { display: flex; align-items: center; gap: 5px; font-size: 13px; cursor: pointer; }
.serp-checkbox input { cursor: pointer; }

/* Device buttons */
.serp-device-btns { display: flex; gap: 8px; }

/* Buttons */
.serp-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}
.serp-btn-fetch { background: var(--serp-primary); color: #fff; }
.serp-btn-fetch:hover { background: #1558b0; }
.serp-btn-sm { background: #f1f3f4; color: #3c4043; padding: 5px 10px; font-size: 12px; }
.serp-btn-sm:hover { background: #e8eaed; }
.serp-btn-device { background: #f1f3f4; color: #3c4043; }
.serp-btn-device.active { background: var(--serp-primary); color: #fff; }
.serp-btn-reset { background: #f1f3f4; color: #3c4043; }
.serp-btn-reset:hover { background: #ea4335; color: #fff; }
.serp-btn-copy { background: #34a853; color: #fff; }
.serp-btn-copy:hover { background: #2d9249; }

.serp-actions { display: flex; gap: 8px; margin-top: 8px; }

/* Fetch status */
.serp-fetch-status { font-size: 12px; margin-top: 4px; min-height: 18px; }
.serp-fetch-status.success { color: #34a853; }
.serp-fetch-status.error { color: #ea4335; }
.serp-fetch-status.loading { color: #fbbc04; }

/* RIGHT PANEL */
.serp-panel-right {
    background: var(--serp-bg);
    border: 1px solid var(--serp-border);
    border-radius: var(--serp-radius);
    box-shadow: var(--serp-shadow);
    overflow: hidden;
}

/* Tabs */
.serp-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid var(--serp-border);
    overflow-x: auto;
    scrollbar-width: thin;
}
.serp-tab {
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #5f6368;
    white-space: nowrap;
    transition: all 0.2s;
}
.serp-tab:hover { color: var(--serp-primary); background: rgba(26,115,232,0.05); }
.serp-tab.active { color: var(--serp-primary); border-bottom-color: var(--serp-primary); }

/* Preview panes */
.serp-preview-pane { display: none; padding: 20px; }
.serp-preview-pane.active { display: block; }

/* Google Preview */
.serp-google-wrap {}
.serp-google-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--serp-border);
    margin-bottom: 12px;
}
.serp-google-logo {
    font-family: 'Product Sans', Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(90deg, #4285f4, #ea4335, #fbbc05, #34a853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.serp-google-search-bar {
    background: #fff;
    border: 1px solid var(--serp-border);
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 13px;
    color: #80868b;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.serp-tip-badge {
    background: #fbbc04;
    color: #202124;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
}
.serp-google-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--serp-border);
    padding-bottom: 0;
}
.serp-gtab {
    padding: 8px 12px;
    font-size: 13px;
    color: #5f6368;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}
.serp-gtab.active {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
}

/* Main SERP Result */
.serp-result-main {
    padding: 10px 0;
    position: relative;
}
.serp-result-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.serp-favicon {
    width: 26px; height: 26px;
    background: #f1f3f4;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.serp-result-site { display: flex; flex-direction: column; }
.serp-site-name { font-size: 13px; font-weight: 500; color: #202124; }
.serp-breadcrumb { font-size: 12px; color: #4d5156; }
.serp-result-title {
    font-size: 20px;
    color: #1a0dab;
    line-height: 1.3;
    margin: 4px 0;
    cursor: pointer;
    word-break: break-word;
}
.serp-result-title:hover { text-decoration: underline; }
.serp-result-meta { font-size: 12px; color: #5f6368; margin-bottom: 2px; }
.serp-result-desc { font-size: 14px; color: #4d5156; line-height: 1.58; word-break: break-word; }

/* Keyword highlighting */
.serp-bold-kw { font-weight: 700; color: #202124; }

/* Mobile view */

/* Dummy results */
.serp-dummy-results { margin-top: 10px; }
.serp-dummy-result { padding: 10px 0; border-top: 1px solid #f1f3f4; }
.serp-dummy-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.serp-dummy-icon { width: 20px; height: 20px; background: #e8eaed; border-radius: 50%; }
.serp-dummy-site { width: 120px; height: 10px; background: #e8eaed; border-radius: 3px; }
.serp-dummy-title { width: 75%; height: 16px; background: #c5cae9; border-radius: 3px; margin-bottom: 6px; }
.serp-dummy-desc { width: 95%; height: 10px; background: #e8eaed; border-radius: 3px; }

/* AI Previews common */
.serp-ai-wrap { border-radius: var(--serp-radius); overflow: hidden; }
.serp-ai-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid var(--serp-border);
}
.serp-ai-icon { font-size: 20px; }
.serp-ai-brand { font-weight: 700; font-size: 15px; }
.serp-ai-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    background: #e8f0fe;
    color: #1a73e8;
    margin-left: auto;
}
.chatgpt-badge { background: #e9f5ec; color: #1d7a3d; }
.perplexity-badge { background: #ede7f6; color: #6a1b9a; }
.gemini-badge { background: #fce4ec; color: #c62828; }
.claude-badge { background: #fff3e0; color: #e65100; }

.serp-ai-body, .serp-chatgpt-dialog,
.serp-perplexity-body, .serp-gemini-body, .serp-claude-body {
    padding: 16px;
}
.serp-ai-summary p { margin: 0 0 10px; font-size: 14px; line-height: 1.6; }
.serp-ai-highlight {
    background: linear-gradient(135deg, #e8f0fe, #f3e8fd);
    border-left: 4px solid var(--serp-primary);
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    color: #202124;
    font-style: italic;
}
.serp-ai-sources { margin-top: 14px; }
.serp-ai-sources strong { font-size: 12px; color: #5f6368; display: block; margin-bottom: 8px; }
.serp-ai-source-card {
    display: flex; align-items: center; gap: 10px;
    padding: 10px; background: #f8f9fa; border-radius: 8px;
    border: 1px solid var(--serp-border);
}
.serp-ai-source-favicon { font-size: 18px; }
.serp-ai-source-title { font-size: 14px; font-weight: 600; color: #1a0dab; }
.serp-ai-source-url { font-size: 12px; color: #5f6368; }

/* ChatGPT */
.serp-chatgpt-q {
    background: #f0f4ff; border-radius: 16px; padding: 10px 14px;
    font-size: 14px; color: #202124; margin-bottom: 12px; display: inline-block;
}
.serp-chatgpt-a {
    background: #fff; border: 1px solid var(--serp-border); border-radius: 8px;
    padding: 12px 14px; font-size: 14px; line-height: 1.6; margin-bottom: 12px;
}
.serp-chatgpt-source strong { font-size: 12px; color: #5f6368; }
.serp-chatgpt-link { display: flex; align-items: center; gap: 8px; padding: 8px; background: #f8f9fa; border-radius: 6px; text-decoration: none; color: #202124; margin-top: 6px; }
.serp-source-url { font-size: 12px; color: #5f6368; }

/* Perplexity */
.serp-perplexity-answer {
    background: #faf5ff; border-left: 4px solid #7c3aed;
    border-radius: 0 8px 8px 0; padding: 12px 14px; margin-bottom: 14px;
    font-size: 14px; line-height: 1.6;
}
.serp-perplexity-sources { display: flex; flex-direction: column; gap: 8px; }
.serp-perplexity-source {
    display: flex; align-items: center; gap: 10px;
    padding: 10px; background: #f8f9fa; border-radius: 8px; border: 1px solid var(--serp-border);
}
.serp-perplexity-num {
    background: #7c3aed; color: #fff; width: 22px; height: 22px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.serp-perplexity-src-title { font-size: 14px; font-weight: 600; color: #1a0dab; }
.serp-perplexity-src-url { font-size: 12px; color: #5f6368; }

/* Gemini */
.serp-gemini-answer {
    background: linear-gradient(135deg, #fce4ec, #f3e5f5);
    border-radius: 8px; padding: 12px 14px; margin-bottom: 14px;
    font-size: 14px; line-height: 1.6;
}
.serp-gemini-source-card {
    display: flex; align-items: center; gap: 10px;
    padding: 10px; background: #f8f9fa; border-radius: 8px; border: 1px solid var(--serp-border);
}
.serp-gemini-src-icon { font-size: 18px; }

/* Claude */
.serp-claude-answer {
    background: linear-gradient(135deg, #fff8e1, #fff3e0);
    border-left: 4px solid #e65100; border-radius: 0 8px 8px 0;
    padding: 12px 14px; margin-bottom: 14px;
    font-size: 14px; line-height: 1.6;
}
.serp-claude-source strong { font-size: 12px; color: #5f6368; display: block; margin-bottom: 8px; }
.serp-claude-source-card {
    display: flex; align-items: center; gap: 10px;
    padding: 10px; background: #f8f9fa; border-radius: 8px; border: 1px solid var(--serp-border);
}
.serp-claude-src-icon { font-size: 18px; }

/* Footer */
.serp-footer {
    text-align: center; padding: 14px; color: #80868b; font-size: 12px; margin-top: 16px;
}
.serp-footer a { color: var(--serp-primary); text-decoration: none; }

/* SEO Score Bar */
.serp-score-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--serp-border);
    border-radius: var(--serp-radius);
    padding: 10px 16px;
    margin-bottom: 16px;
    box-shadow: var(--serp-shadow);
    flex-wrap: wrap;
}
.serp-score-label { font-size: 13px; font-weight: 700; color: #3c4043; white-space: nowrap; }
.serp-score-track {
    flex: 1;
    min-width: 80px;
    height: 8px;
    background: #e8eaed;
    border-radius: 4px;
    overflow: hidden;
}
.serp-score-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    background: #34a853;
    transition: width 0.5s ease, background 0.3s;
}
.serp-score-num {
    font-size: 17px;
    font-weight: 800;
    min-width: 34px;
    text-align: right;
    color: var(--serp-primary);
}
.serp-score-msg {
    font-size: 12px;
    color: #80868b;
    flex-basis: 100%;
    margin-top: -4px;
}

/* Responsive */
@media (max-width: 900px) {
    .serp-layout { grid-template-columns: 1fr; }
    .serp-wrap { padding: 12px; }
}
