/* mustafaaydemir.info SEO Denetim Aracı - Ana Stil Dosyası */

:root {
    --primary: #ff4c60;
    --bg-body: #f9fafb;
    --bg-card: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #e5e7eb;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* HEADER */
header {
    background-color: var(--bg-card);
    padding: 0.8rem calc((100% - 1200px) / 2 + 20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-area img {
    max-height: 35px;
    width: auto;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    margin-left: 20px;
    font-size: 14px;
}

nav a:hover {
    color: var(--primary);
}

/* MAIN CONTENT */
main {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
}

.page-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.page-title p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* SEARCH BOX */
.search-box {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.search-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr;
    gap: 15px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: border 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
}

.captcha-input {
    background: #f5f5f5;
    font-weight: bold;
    text-align: center;
    letter-spacing: 3px;
}

button {
    padding: 14px 35px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 76, 96, 0.4);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-analyze {
    width: 100%;
    margin-top: 20px;
    padding: 16px;
    font-size: 17px;
}

.error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: none;
    border-left: 4px solid #c62828;
}

/* SEO CONTENT SECTION - TAM GENİŞLİK */
.content-section {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin: 30px 0;
    width: 100%;
}

.content-section h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.3;
}

.content-section h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 30px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.content-section p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: justify;
}

/* LOADING */
.loading {
    display: none;
    text-align: center;
    padding: 50px;
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

/* RESULTS CONTAINER */
.results-container {
    display: none;
}

.results-container.active {
    display: block;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* SCORE CARD */
.score-card, .widget-card, .check-card {
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 30px;
}

.score-card {
    text-align: center;
}

.score-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.url-display {
    color: var(--text-muted);
    font-size: 13px;
    margin: 15px 0;
}

.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) 0% var(--score), #e0e0e0 var(--score) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 25px auto;
    position: relative;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background: var(--bg-card);
    border-radius: 50%;
}

/* SEO SKOR DAİRESİ İÇİNDEKİ RAKAM - TÜM TARAYICILAR İÇİN DÜZELTİLDİ */
.score-number {
    position: relative;
    z-index: 10;
    font-size: 48px;
    font-weight: bold;
    color: var(--primary);
    display: block;
}

.score-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.stat-card {
    background: var(--bg-body);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
}

/* WIDGETS */
.widget-header {
    background: var(--bg-body);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-icon {
    font-size: 22px;
}

.widget-header h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.widget-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
    font-style: italic;
}

.widget-content {
    padding: 10px 0;
}

.widget-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.widget-row:last-child {
    border-bottom: none;
}

.badge-success, .badge-warning, .badge-danger, .badge-value {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.badge-success { background: #4CAF50; }
.badge-warning { background: #ff9800; }
.badge-danger { background: #f44336; }
.badge-value { background: #2196F3; }

/* CHECK CARDS */
.check-card {
    border-left: 4px solid #e0e0e0;
    transition: all 0.3s;
}

.check-card:hover {
    transform: translateX(5px);
}

.check-card.pass { border-left-color: #4CAF50; }
.check-card.fail { border-left-color: #f44336; }
.check-card.warning { border-left-color: #ff9800; }

.check-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.check-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.check-info {
    flex: 1;
}

.check-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.check-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.check-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}

.badge-pass { background: #4CAF50; }
.badge-fail { background: #f44336; }
.badge-warning { background: #ff9800; }

.check-detail {
    margin-top: 15px;
    padding: 15px;
    background: var(--bg-body);
    border-radius: 8px;
    font-size: 13px;
    overflow-x: auto;
    word-wrap: break-word;
    max-width: 100%;
}

.check-detail > * {
    max-width: 100%;
    overflow-wrap: break-word;
}

/* SPECIAL STYLES */
.total-resources {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, var(--primary) 0%, #ff6b7a 100%);
    border-radius: 12px;
    margin-bottom: 15px;
}

.total-number {
    font-size: 42px;
    font-weight: bold;
    color: white;
}

/* Sunucu Yapılandırması Açıklama */
.server-info-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
    padding: 12px;
    background: #f0f7ff;
    border-radius: 8px;
    border-left: 3px solid #2196F3;
}

.server-metrics, .heading-list, .image-list, .links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric-row, .image-item, .link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
    font-size: 13px;
}

.heading-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
    font-size: 13px;
    flex-direction: row-reverse;
}

.heading-content {
    flex: 1;
    text-align: left;
}

.heading-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 11px;
    margin-left: 10px;
    flex-shrink: 0;
}

.h1-tag { background: #e3f2fd; color: #1976d2; }
.h2-tag { background: #f3e5f5; color: #7b1fa2; }
.h3-tag { background: #e8f5e9; color: #388e3c; }
.h4-tag { background: #fff3e0; color: #f57c00; }
.h5-tag { background: #fce4ec; color: #c2185b; }
.h6-tag { background: #f1f8e9; color: #689f38; }

.link-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    color: white;
}

.badge-dofollow { background: #f44336; }
.badge-nofollow { background: #4CAF50; }

.links-summary {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    padding: 12px;
    background: #e3f2fd;
    border-radius: 8px;
    font-weight: 600;
}

/* Schema */
.schema-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schema-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-body);
    border-radius: 8px;
}

.schema-name {
    font-weight: 500;
    color: var(--text-main);
}

.schema-status {
    padding: 5px 14px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.schema-yes { background: #4CAF50; color: white; }
.schema-no { background: #ff9800; color: white; }

/* Social Media */
.social-list {
    padding: 10px 0;
}

.social-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #2196F3;
    color: white;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin: 4px;
}

.social-none {
    color: var(--text-muted);
    font-style: italic;
}

/* FOOTER */
footer {
    background: var(--text-main);
    color: white;
    margin-top: 60px;
    padding: 40px 20px 20px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo-img {
    height: 45px;
    margin-bottom: 15px;
}

.footer-tagline {
    color: #bdc3c7;
    font-size: 14px;
}

.footer-links h4,
.footer-tools h4,
.footer-legal h4 {
    font-size: 15px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-links ul,
.footer-tools ul,
.footer-legal ul {
    list-style: none;
}

.footer-links li,
.footer-tools li,
.footer-legal li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-tools a,
.footer-legal a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 13px;
}

.footer-links a:hover,
.footer-tools a:hover,
.footer-legal a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    color: #95a5a6;
    font-size: 13px;
}

/* ============================================
   KEYWORD ANALİZ CARD - ÖZEL TASARIM
   ============================================ */
.keyword-table-container {
    margin-bottom: 30px;
}

.keyword-analysis-card {
    background: linear-gradient(135deg, #ff4c60 0%, #ff6b7a 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(255, 76, 96, 0.3);
}

.keyword-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.keyword-icon {
    font-size: 36px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.keyword-header h2 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.keyword-table-wrapper {
    overflow-x: auto;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    -webkit-overflow-scrolling: touch;
}

.keyword-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px;
}

.keyword-table thead {
    background: rgba(255, 255, 255, 0.2);
}

.keyword-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 700;
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.keyword-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.keyword-table tbody tr {
    transition: background 0.2s;
}

.keyword-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.keyword-name {
    font-weight: 600;
    color: white;
    font-size: 14px;
}

.keyword-check {
    text-align: center;
    font-size: 18px;
}

.keyword-check.yes {
    color: #a8ff78;
}

.keyword-check.no {
    color: #ffb3ba;
}

.keyword-frequency {
    text-align: center;
    font-weight: 700;
    color: white;
    font-size: 16px;
}

.keyword-score {
    text-align: center;
    min-width: 120px;
}

.keyword-score .score-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.keyword-score .score-fill {
    height: 100%;
    background: white;
    border-radius: 10px;
    transition: width 0.8s ease;
}

.keyword-score .kw-score-text {
    font-size: 12px;
    color: white;
    margin-top: 6px;
    font-weight: 700;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Desktop: Yan yana - SOLDA sidebar (left-column), SAĞDA ana içerik (right-column) */
.results-container.active {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-direction: row;
}

.left-column {
    flex: 1;
}

.right-column {
    flex: 2;
}

/* Tablet ve Mobil: Alt alta */
@media (max-width: 1200px) {
    .results-container.active {
        flex-direction: column;
    }
    
    .left-column,
    .right-column {
        width: 100%;
        flex: none;
    }
}

/* Sadece Mobil */

/* ============================================
   MOBİL RESPONSIVE - TEK MEDIA QUERY
   ============================================ */
@media (max-width: 768px) {
    /* Global overflow fix */
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    body, html {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    main {
        padding: 0 10px !important;
        width: 100% !important;
    }
    
    /* Form */
    .search-row {
        grid-template-columns: 1fr;
    }
    
    /* Layout */
    .results-container,
    .left-column,
    .right-column {
        width: 100% !important;
        padding: 0 !important;
    }
    
    /* Cards */
    .check-card,
    .widget-card,
    .score-card {
        overflow: hidden;
        max-width: 100%;
    }
    
    .check-detail {
        overflow-x: auto;
        word-wrap: break-word;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Keyword Analiz */
    .keyword-analysis-card {
        width: 100% !important;
        padding: 15px !important;
        margin: 0 0 20px 0 !important;
    }
    
    .keyword-header {
        padding: 0 5px;
    }
    
    .keyword-header h2 {
        font-size: 18px;
    }
    
    .keyword-icon {
        font-size: 28px;
    }
    
    .keyword-table-wrapper {
        overflow-x: scroll !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 10px 15px !important;
        margin: 0 !important;
        border-radius: 8px;
    }
    
    .keyword-table {
        font-size: 11px;
        min-width: 480px !important;
    }
    
    .keyword-table th,
    .keyword-table td {
        padding: 12px 10px !important;
        white-space: nowrap;
    }
    
    .keyword-table th:first-child,
    .keyword-table td:first-child {
        padding-left: 15px !important;
    }
    
    .keyword-table th:last-child,
    .keyword-table td:last-child {
        padding-right: 15px !important;
    }
    
    /* Header & Footer */
    header {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
