html {
    scroll-behavior: smooth;
}

 :root {
    --primary: #2debd5;
    --secondary: #2196F3;
    --background: #111;
    --text: #dfdfdf;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-gap: 30px;
}

.editor-panel,
.result-panel {
    background: #1b1c1c;
    padding: 20px;
    border-radius: 15px;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

textarea {
    color: #fff;
    background: #232323;
    width: 100%;
    min-height: 300px;
    padding: 15px;
    border: 2px solid #323434;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100% !important;
    max-height: 500px;
}

textarea::-webkit-scrollbar {
    width: 5px;
    border-radius: 5px;
}

textarea::-webkit-scrollbar-thumb {
    background: #727272;
}

h1 {
    text-align: center;
    margin: 0 auto 15px auto;
    color: var(--text);
    max-width: 700px;
    line-height: 30px;
}

h2.section-title {
    font-size: 20px;
    font-weight: 700;
    text-align: left;
    margin: 0 auto 15px auto;
    color: var(--text);
    max-width: 700px;
    margin-top: 24px;
}

.description-text {
    max-width: 700px;
    margin: 0 auto 24px auto;
    font-size: 16px;
}

.description-text.section-description {
    max-width: 700px;
    margin: 0 auto 2rem auto;
    font-size: 16px;
}

.description-text.section-description p {
    text-align: left;
    color: #727272;
}

.description-text p {
    color: #727272;
    text-align: center;
}

.sonuclar {
    display: flex;
    flex-direction: column;
}

.sol-sutun {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 35px;
}

.deger {
    font-weight: 700;
    color: var(--text);
    font-size: 20px;
}

.anahtar-kelime-baslik {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 20px 0 15px;
    padding-bottom: 20px;
    border-bottom: 2px solid #323434;
}

.sonuc-satiri {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #323434;
}

.anahtar-kelime {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 8px;
    background-color: #232323;
    border-radius: 5px;
}


/* Temel liste stili */

ul,
ol {
    max-width: 700px;
    margin: 1rem auto;
    color: #727272;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}


/* Özel bullet points için */

ul {
    list-style: none;
}

ul li::before {
    content: "•";
    /* veya "→", "✓", "★" gibi özel karakterler */
    color: #727272;
    font-weight: bold;
    display: inline-block;
    width: 15px;
    margin-left: -1em;
}

.feature-image {
    max-width: 50px;
    margin: 0;
    /* margin'ı sıfırla */
    text-align: left;
    /* sola hizala */
}

.loading-content .feature-image {
    margin-bottom: 13px;
}

.responsive-image {
    width: 100%;
    height: 50px;
    border-radius: 8px;
    display: block;
    /* block element olarak ayarla */
    margin-left: 0;
    /* sol margin'ı sıfırla */
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-start;
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #232323;
    color: var(--text);
}

.copy-button {
    position: relative;
}

.copy-button .tooltip {
    position: absolute;
    background: var(--primary);
    color: #000;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.copy-button.copied .tooltip {
    opacity: 1;
    visibility: visible;
}

.action-button:hover {
    background: #2a2a2a;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }
    .action-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {}

textarea:focus {
    outline: none;
}

.button {
    background: var(--primary);
    color: #121212;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s, background 0.3s;
    margin-top: 7px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.button span {
    line-height: 16px;
}

.button:hover {
    background: #2ec5b3;
    transform: translateY(-2px);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111111e3;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #2debd5;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.score-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.score-card {
    background: #232323;
    padding: 20px;
    border-radius: 12px;
}

.progress-bar1 {
    height: 8px;
    background: #2ec5b3;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress1 {
    height: 100%;
    background: #2ecc71;
    transition: width 0.5s ease;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .button {
        width: 100%;
        justify-content: center;
    }
}

.count-stats {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.word-count,
.char-count {
    color: var(--text);
}

@media (max-width: 768px) {
    .count-stats {
        align-items: flex-end;
    }
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 700px;
    margin: 0 auto 2rem;
    border-bottom: 1px solid #323434;
    margin-bottom: 24px;
    padding-bottom: 24px;
}

.language-selector {
    position: relative;
}

.lang-select {
    appearance: none;
    background: #232323;
    color: var(--text);
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: 1px solid #323434;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.lang-select:focus {
    outline: none;
    border-color: none;
    box-shadow: none;
}


/* Custom arrow */

.language-selector::after {
    content: "▼";
    font-size: 0.8rem;
    color: var(--text);
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .lang-select {
        padding: 0.5rem 2rem 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 26px;
    }
}

@media (min-width: 480px) {
    .lang-select:hover {
        background: #2a2a2a;
        border-color: var(--primary);
    }
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 7px;
}

.speech-button {
    background: #1b1c1c;
    border: 1px solid #323434;
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sayi {
    margin-left: auto;
    margin-right: 20px;
}

.speech-button span {
    display: flex;
}

.speech-button:hover {
    background: #2a2a2a;
}

.birim {
    color: #727272;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
    }
    .button-group .button {
        width: 100%;
    }
    .sonuclar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .responsive-image {
        height: 40px;
    }
    .sonuc-satiri {
        flex-direction: column;
    }
    .sol-sutun {
        gap: 15px 15px;
    }
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.action-button.speech-button {
    background: #232323;
    border: none;
}

.action-button.speech-button:hover {
    background: #2a2a2a;
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }
    .action-buttons .action-button {
        width: 100%;
    }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

textarea {
    width: 100%;
    min-height: 300px;
    margin-bottom: 20px;
}

.count-stats {
    margin-bottom: 20px;
    color: var(--text);
}

.keywords {
    margin-top: 20px;
}

.keywords ul {
    list-style: none;
    padding: 0;
}

.keywords li {
    color: #727272;
}

@media (max-width: 576px) {
    .container {
        padding: 0;
    }
}

/* Diğer Araçlar Bölümü */
.other-tools {
    margin: 20px 0;
    text-align: center;
    position: relative;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
}

.tools-slider {
    display: flex;
    overflow: hidden;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: transparent; /* Arka plan yok */
    border: none; /* Kenar yok */
    margin: 0 10px;
    padding: 10px;
    width: 150px; /* Kart genişliği */
    text-align: center;
    flex: 0 0 auto; /* Kartların tek satırda görünmesi için */
}

.tool-icon {
    width: 40px; /* İkon boyutu */
    height: 40px; /* İkon boyutu */
    margin-bottom: 5px; /* İkon ile başlık arasında boşluk */
}

.tool-title {
    font-size: 14px; /* Başlık boyutu */
    color: var(--text);
    margin: 0; /* Margin kaldırıldı */
}

.button {
    background: var(--primary);
    color: #121212;
    border: none;
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    margin-top: 5px;
    text-decoration: none; /* Linkin altını çizme */
}

.button:hover {
    background: #2ec5b3;
}

.slider-button {
    background-color: transparent;
    color: var(--primary);
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    transition: color 0.3s;
}

.slider-button:hover {
    color: #0056b3;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}