/* ============================================
   İÇERİK ANALİZİ - SAYFA ÖZEL STİLLER
   İçerik Analizi Sayfası için özel CSS
   ============================================ */

/* 1. PAGE BODY CLASS */
.page-icerik-analizi {
    /* Sayfa özel stiller varsa buraya */
}

/* 2. MAIN LAYOUT (Two-Column) */
.main-layout {
    display: flex;
    gap: 32px;
    align-items: stretch;
    min-height: 600px;
}

.main-layout-no-padding {
    padding-top: 0 !important;
}

.editor-column {
    flex: 1.4;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

.results-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 16px;
    align-self: flex-start;
    width: 100%;
    max-width: 100%;
}

/* Responsive Layout - Tablet/Small Desktop */
@media (max-width: 1024px) {
    .main-layout {
        flex-direction: column;
        gap: 24px;
        padding-left: 0;
        padding-right: 0;
    }
    .editor-column,
    .results-column {
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
    }
    .results-column {
        position: static;
        top: auto;
    }
}

/* 3. EDITOR CARD */
.editor-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 400px;
    width: 100%;
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        border-color 0.2s;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.editor-card:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: var(--shadow-lg);
    border-color: #a6e6e9;
}

.editor-card:focus-within {
    border-color: var(--primary);
}

.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.card-header-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.clear-btn {
    background: #f1f5f9;
    border: none;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: 0.2s;
}

.clear-btn:hover {
    background: #f1f5f9;
    color: var(--text-muted);
}

textarea {
    flex: 1;
    border: none;
    padding: 24px;
    resize: none;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.7;
    background: transparent;
    min-height: 300px;
}

textarea:focus {
    outline: none;
}

textarea::placeholder {
    color: #94a3b8;
}

.editor-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: #f8fafc;
}

.editor-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: #64748b;
}

.highlight-mode-container {
    display: none;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    line-height: 1.8;
    font-size: 1.05rem;
    white-space: pre-wrap;
    height: 650px;
    overflow-y: auto;
    color: var(--text-main);
}

/* 4. BUTTONS */
/* Renk tanımları style.css'ten alınacak */
.primary-btn {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.primary-btn:active {
    transform: translateY(0);
}

.primary-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition:
        width 0.3s,
        height 0.3s;
}

.primary-btn:active::after {
    width: 300px;
    height: 300px;
}

.text-btn {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.text-btn:hover {
    border-color: var(--border);
    color: var(--primary);
    background: var(--surface);
}

.icon-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    border-radius: 6px;
}

.icon-btn:hover {
    color: var(--primary);
    background: var(--primary-light);
}

/* 5. RESULT CARDS */
.result-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 0;
    min-height: 120px;
    contain: layout;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.result-card:hover {
    transform: translateY(-1px) translateZ(0);
    box-shadow: var(--shadow-lg);
    border-color: #a6e6e9;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: #a6e6e9;
    box-shadow: 0 8px 32px rgba(166, 230, 233, 0.2);
    transform: translateY(-4px);
}

.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--success), var(--warning));
    opacity: 0.7;
    transition: opacity 0.3s;
}

.glass-card:hover::before {
    opacity: 1;
}

.hero-score-card {
    background: linear-gradient(135deg, var(--surface) 0%, #f8fafc 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    min-height: auto;
    height: auto;
}

.hero-score-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--success), var(--warning));
}

.gauge-card {
    text-align: center;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gauge-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #a6e6e9;
}

.serp-card {
    /* SERP card özel stilleri */
}

.insights-card {
    /* Insights card özel stilleri */
}

/* 6. CARD TITLES */
.card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.card-title-blue {
    color: #2563eb;
}

.card-title-orange {
    color: #d97706;
}

.card-title-purple {
    color: #9333ea;
}

.card-title-cyan {
    color: #06b6d4;
}

.card-content {
    display: flex;
    flex-direction: column;
}

/* 7. SCORE & PROGRESS */
.circular-chart {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: 100%;
}

.circle-bg {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 3;
}

.circle {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition:
        stroke-dasharray 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        stroke 0.3s;
    stroke: var(--primary);
}

.score-text {
    font-family: "IBM Plex Sans", sans-serif;
    fill: var(--text-main);
    font-weight: 700;
    font-size: 0.65em;
    text-anchor: middle;
}

.score-green .circle {
    stroke: var(--success);
}

.score-yellow .circle {
    stroke: var(--warning);
}

.score-red .circle {
    stroke: var(--danger);
}

.hero-score-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    position: relative;
}

.hero-score-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.hero-score-status {
    font-size: 1rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    display: inline-block;
}

.hero-score-status.excellent {
    background: var(--success-light);
    color: #065f46;
}

.hero-score-status.good {
    background: var(--success-light);
    color: #065f46;
}

.hero-score-status.warning {
    background: var(--warning-light);
    color: #92400e;
}

.hero-score-status.danger {
    background: var(--danger-light);
    color: #991b1b;
}

/* 8. GOOGLE PREVIEW */
.google-preview-box {
    background: #fff;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 16px;
    font-family: arial, sans-serif;
}

.g-url {
    font-size: 14px;
    color: #202124;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.9;
}

.g-title {
    color: var(--google-blue);
    font-size: 20px;
    line-height: 1.3;
    cursor: pointer;
    margin: 0 0 4px 0;
    font-weight: 400;
    text-decoration: none;
    display: block;
}

.g-title:hover {
    text-decoration: underline;
}

.g-desc {
    color: var(--google-gray);
    font-size: 14px;
    margin: 0;
    line-height: 1.58;
}

/* 9. META INPUTS */
.meta-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group {
    margin-bottom: 0;
}

.input-group label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    margin-bottom: 0;
}

.input-wrapper input {
    width: 100%;
    padding: 9px 40px 9px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-main);
    background: #f8fafc;
    transition: all 0.2s;
}

.input-wrapper input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-wrapper input:hover:not(:focus) {
    border-color: var(--primary-hover);
}

/* 10. INSIGHTS */
.insight-row {
    padding: 4px 0;
}

.insight-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.insight-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.focus-keyword-display {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.sentiment-display {
    font-weight: 700;
    color: #475569;
}

.focus-sentence-box {
    font-size: 0.875rem;
    color: var(--text-main);
    background: var(--surface);
    padding: 14px;
    border-radius: 10px;
    border: 1px dashed var(--primary);
    line-height: 1.6;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.focus-sentence-box:hover {
    border-style: solid;
    border-color: #a6e6e9;
    background: #e6f7f8;
}

/* 11. TAGS & LSI */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: #f8fafc;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 5px 12px;
    border-radius: 7px;
    font-size: 0.75rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
}

.tag:hover {
    border-color: #a6e6e9;
    color: #00445e;
    background: #e6f7f8;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(166, 230, 233, 0.2);
}

.tag-phrase-3w:hover {
    background: #cffafe !important;
    border-color: #0e7490 !important;
}

.tag-phrase-2w:hover {
    background: #dcfce7 !important;
    border-color: #15803d !important;
}

.empty-tag {
    color: var(--text-muted);
}

.gradient-purple-text {
    background: linear-gradient(135deg, #7e22ce, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.lsi-subtext {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 400;
    margin-left: 6px;
}

#lsi-terms-container {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #e9d5ff;
    margin-top: -8px;
}

#lsi-terms-container .insight-label {
    color: #6b21a8;
    margin-bottom: 8px;
}

#lsi-score {
    font-size: 0.8rem;
    color: #7e22ce;
    margin-bottom: 10px;
    font-weight: 600;
}

/* 12. SEPARATOR */
.separator {
    height: 1px;
    background: #f1f5f9;
    margin: 16px 0;
}

/* 13. CONTENT STATS */
.content-stats-bar {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    background: var(--surface);
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.content-stats-bar:hover {
    border-color: #a6e6e9;
    box-shadow: 0 4px 12px rgba(166, 230, 233, 0.1);
}

.content-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.content-stat i {
    color: var(--primary);
    font-size: 0.8rem;
}

/* 14. AUDIT LIST */
.audit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.audit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.audit-item:last-child {
    border-bottom: none;
}

.audit-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.audit-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.audit-text strong {
    font-weight: 500;
    display: block;
    font-size: 0.8rem;
    color: var(--text-main);
    margin-bottom: 2px;
}

.audit-item.success .audit-icon {
    color: var(--success);
}

.audit-item.warning .audit-icon {
    color: var(--warning);
}

.audit-item.error .audit-icon {
    color: var(--danger);
}

.audit-item.neutral .audit-icon {
    color: var(--text-muted);
}

/* 15. SCHEMA CODE */
.schema-code-box {
    background: #1e293b;
    color: #10b981;
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.8rem;
    overflow-x: auto;
    margin-bottom: 10px;
}

.schema-copy-btn {
    padding: 10px;
    font-size: 0.9rem;
}

/* 16. RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .editor-card {
        min-height: auto;
        height: fit-content;
        width: 100%;
    }

    .result-card {
        width: 100%;
        max-width: 100%;
    }

    .hero-score-card {
        padding: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-score-container {
        width: 100px;
        height: 100px;
        margin-bottom: 12px;
    }

    .hero-score-label {
        font-size: 0.8rem;
    }

    .hero-score-status {
        font-size: 0.9rem;
        padding: 4px 12px;
    }

    .content-stats-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .content-stat {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .editor-card,
    .result-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
        border-radius: 12px;
    }

    .card-header {
        padding: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .editor-footer {
        padding: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    textarea {
        padding: 16px;
        width: 100%;
        box-sizing: border-box;
        min-height: 250px;
    }

    .primary-btn {
        min-height: 50px;
        padding: 16px;
        border-radius: 12px;
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .tags-container {
        gap: 4px;
    }
    
    .tag {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    #lsi-terms-container {
        padding: 12px;
    }
    
    .google-preview-box {
        padding: 12px;
    }
    
    .g-title {
        font-size: 1rem;
    }
    
    .g-desc {
        font-size: 0.85rem;
    }
}

/* 17. CONTENT QUALITY METRICS */
#content-quality-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

/* 18. KEYWORD PLACEMENT INFO */
#keyword-placement-info {
    font-size: 0.85rem;
    color: #64748b;
}

/* 19. CHAR COUNTER */
#char-counter {
    color: #94a3b8;
    font-weight: 600;
    transition: color 0.3s ease;
}

#char-counter.char-danger {
    color: #ef4444;
}

#char-counter.char-warning {
    color: #f59e0b;
}

#char-counter.char-success {
    color: #10b981;
}

/* 19. DARK MODE SUPPORT */
@media (prefers-color-scheme: dark) {
    .card-header {
        background: var(--surface);
    }

    .editor-footer {
        background: #1e293b;
    }

    .google-preview-box {
        background: #1e293b;
        border-color: var(--border);
    }

    .hero-score-card {
        background: linear-gradient(135deg, var(--surface) 0%, #0f172a 100%);
    }

    .hero-score-status.excellent,
    .hero-score-status.good {
        background: rgba(16, 185, 129, 0.2);
        color: #6ee7b7;
    }

    .hero-score-status.warning {
        background: rgba(245, 158, 11, 0.2);
        color: #fcd34d;
    }

    .hero-score-status.danger {
        background: rgba(239, 68, 68, 0.2);
        color: #fca5a5;
    }

    .input-wrapper input {
        background: #1e293b;
    }

    .input-wrapper input:focus {
        background: var(--surface);
    }

    .content-stats-bar {
        background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    }

    .glass-card {
        background: rgba(30, 41, 59, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .highlight-mode-container {
        background: #1e293b !important;
        border-color: #334155 !important;
        color: #f1f5f9 !important;
    }

    .separator {
        background: #334155 !important;
    }

    .text-btn {
        background: #1e293b !important;
        border-color: #334155 !important;
        color: #f1f5f9 !important;
    }

    .text-btn:hover {
        background: #334155 !important;
    }

    #keyword-placement-info {
        color: #94a3b8;
    }
    
    /* Karakter sayacı dark mode renkleri */
    #char-counter.char-danger {
        color: #fca5a5;
    }
    
    #char-counter.char-warning {
        color: #fcd34d;
    }
    
    #char-counter.char-success {
        color: #6ee7b7;
    }
}
