﻿/* =================================== 
   글자수세기 도구 스타일
   =================================== */

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

:root {
    --primary-color: #4A90E2;
    --secondary-color: #50C878;
    --dark-color: #2C3E50;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --text-color: #333333;
    --text-light: #666666;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

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

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.nav-menu a:not(.disabled):hover {
    color: var(--primary-color);
}

/* Main Content */
.main {
    padding: 40px 0;
}

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

.page-header h1 {
    font-size: 36px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 18px;
    color: var(--text-light);
}

/* Counter Section */
.counter-section {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.text-input-area {
    margin-bottom: 30px;
}

#textInput {
    width: 100%;
    min-height: 250px;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

#textInput:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.stat-card h3 {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 600;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* Options Bar */
.options-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.checkboxes {
    display: flex;
    gap: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.clear-btn {
    padding: 10px 25px;
    background-color: #E74C3C;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.clear-btn:hover {
    background-color: #C0392B;
}

/* Duplicate Section */
.duplicate-section {
    margin: 30px 0;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: 8px;
}

.duplicate-section h3 {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.duplicate-result {
    min-height: 60px;
}

.no-duplicates {
    color: var(--text-light);
    font-style: italic;
}

.duplicate-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.duplicate-word {
    background-color: #FFE5E5;
    color: #E74C3C;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Tips Section */
.tips-section {
    margin-top: 30px;
    padding: 25px;
    background-color: #E8F4FD;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
}

.tips-section h3 {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.tips-list {
    list-style-position: inside;
    color: var(--text-color);
}

.tips-list li {
    padding: 8px 0;
    line-height: 1.6;
}

/* Features Section */
.features-section {
    margin-bottom: 40px;
}

.features-section h2 {
    font-size: 32px;
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* FAQ Section */
.faq-section {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.faq-section h2 {
    font-size: 32px;
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 40px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 36px;
    }

    .options-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .counter-section {
        padding: 20px;
    }

    #textInput {
        min-height: 200px;
    }
}

/* SEO Content Section */
.info-section {
    margin-top: 4rem;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.info-section h2 {
    font-size: 1.5rem;
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.info-section h2:first-of-type {
    margin-top: 0;
}

.info-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.info-section ul {
    list-style: none;
    padding-left: 0;
}

.info-section ul li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    color: #555;
}

.info-section ul li:before {
    content: "";
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.footer {
    margin-top: 4rem;
    padding: 2rem 0;
    background: #f8f9fa;
    text-align: center;
    color: #666;
}
