:root {
    --primary-color: #4e6bff;
    --primary-hover: #3a57eb;
    --secondary-color: #3dd598;
    --text-color: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --background: #ffffff;
    --background-alt: #f7f9fc;
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    --success: #3dd598;
    --warning: #ffc055;
    --danger: #fc5a5a;
    --info: #50b5ff;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

.dark-mode {
    --primary-color: #6e7dd9;      /* Daha soft mavi-mor tonu */
    --primary-hover: #8794e8;      /* Daha açık, yumuşak bir hover tonu */
    --secondary-color: #4ac299;    /* Daha pastel yeşil tonu */
    --text-color: #d8d8e0;         /* Hafif gri tonu olan beyaz, saf beyazdan daha rahat */
    --text-light: #a0a0b0;         /* Daha soft orta ton gri */
    --text-lighter: #7a7a8c;       /* Daha yumuşak açık gri */
    --background: #1e1e2f;         /* Biraz daha koyu mavi-siyah tonu */
    --background-alt: #282838;     /* Daha nötr koyu arka plan alternatifi */
    --border-color: #3a3a50;       /* Daha yumuşak sınır rengi */
    --border-light: #30304a;       /* Daha soft açık sınır rengi */
    --box-shadow: 0 4px 12px rgba(10, 10, 20, 0.15);  /* Daha hafif gölge efekti */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--background);
    transition: var(--transition);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    padding: 15px 0;
    background-color: var(--background);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 34px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover {
    background-color: var(--background-alt);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: var(--background-alt);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn i {
    font-size: 1.2rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-primary:disabled {
    background-color: var(--text-lighter);
    cursor: not-allowed;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-outline:hover {
    background-color: var(--background-alt);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--background);
    transition: var(--transition);
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(78, 107, 255, 0.2);
}

.char-counter {
    text-align: right;
    margin-top: 5px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.text-danger {
    color: var(--danger);
}

/* Hero Section */
.hero-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--background-alt);
    border-radius: var(--border-radius);
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--text-color);
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* Correction Section */
.correction-section {
    margin-bottom: 60px;
}

.form-container {
    margin-bottom: 30px;
}

.results-container {
    background-color: var(--background-alt);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 30px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-light);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    margin-bottom: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.text-content {
    background-color: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
    min-height: 150px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 15px;
    white-space: pre-line;
    color: var(--text-color);
}

#differences-text .deleted {
    background-color: rgba(252, 90, 90, 0.1);
    color: var(--danger);
    text-decoration: line-through;
    padding: 0 2px;
}

#differences-text .added {
    background-color: rgba(61, 213, 152, 0.1);
    color: var(--success);
    font-weight: 500;
    padding: 0 2px;
}

/* Score Circle */
.score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-circle {
    position: relative;
    width: 80px;
    height: 80px;
}

.score-circle-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-circle-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 3;
}

.score-circle-fill {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.8s ease;
}

.low-score {
    stroke: var(--danger);
}

.medium-score {
    stroke: var(--warning);
}

.high-score {
    stroke: var(--success);
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    font-weight: 600;
}

.score-label {
    margin-top: 5px;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Correction Stats */
.correction-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: var(--background);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
}

.stat-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Info Section */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.info-card {
    background-color: var(--background-alt);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
}



.info-icon {
    margin: 0 auto 15px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(78, 107, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.info-card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.info-card p {
    color: var(--text-light);
}

/* FAQ Section */
.faq-section {
    margin-bottom: 60px;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--background);
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.accordion-header i {
    font-size: 1.5rem;
    transition: var(--transition);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content p {
    padding: 15px 20px;
    color: var(--text-light);
}

.accordion-item.active .accordion-header {
    background-color: var(--background-alt);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-item.active .accordion-content {
    max-height: 200px;
}

/* Alert */
.alert {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert i {
    font-size: 1.5rem;
}

.alert-danger {
    background-color: rgba(252, 90, 90, 0.1);
    color: var(--danger);
    border: 1px solid rgba(252, 90, 90, 0.2);
}

/* Footer */
.site-footer {
    background-color: var(--background-alt);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-light);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--text-light);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(78, 107, 255, 0.1);
    color: var(--primary-color);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .results-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .results-header h2 {
        text-align: center;
    }
    
    .correction-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab-btn {
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        margin-bottom: 5px;
    }
    
    .tab-btn.active {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }
}