/* ==========================================
   Case Convert — Global Stylesheet
   ========================================== */

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: #1e2122;
    color: #c8c3bc;
    line-height: 1.6;
}

a {
    color: #4a9eff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================
   Header & Navigation
   ========================================== */
.site-header {
    background-color: #181a1b;
    border-bottom: 1px solid #2a2d2e;
    padding: 14px 20px;
}

.site-header .header-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.site-header .logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c8c3bc;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.site-header .logo img {
    width: 28px;
    height: 28px;
}

.site-header nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.site-header nav a {
    color: #9b9690;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.site-header nav a:hover,
.site-header nav a.active {
    color: #4a9eff;
    text-decoration: none;
}

/* ==========================================
   Converter Tool Section
   ========================================== */
.converter-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px 30px;
}

.container {
    max-width: 770px;
    width: 100%;
    background: #181a1b;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #c8c3bc;
    margin-bottom: 20px;
    font-size: 28px;
}

textarea {
    background-color: #3e4446;
    width: 100%;
    min-height: 300px;
    padding: 10px;
    border: 1px solid #3e4446;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    margin-bottom: 10px;
    resize: vertical;
    color: white;
    font-family: 'Inter', Arial, sans-serif;
}

::placeholder {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 19px;
    opacity: 0.9;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

button {
    padding: 10px 20px;
    background-color: #0056B1;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    flex: 1;
    min-width: 120px;
    transition: background-color 0.2s;
    font-family: 'Inter', Arial, sans-serif;
}

button:hover {
    background-color: #004289;
}

button.active {
    background-color: #28a745;
}

button.clear-btn {
    background-color: #dc3545;
}

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

/* ==========================================
   Content Sections
   ========================================== */
.content-section {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-section h2 {
    color: #e0dbd4;
    font-size: 24px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2d2e;
}

.content-section h3 {
    color: #d0cbc4;
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 10px;
}

.content-section p {
    margin-bottom: 14px;
    line-height: 1.7;
    color: #b0aba4;
}

.content-section ul,
.content-section ol {
    margin-bottom: 14px;
    padding-left: 24px;
    color: #b0aba4;
}

.content-section li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.content-section strong {
    color: #d0cbc4;
}

/* How-to Steps */
.steps-list {
    list-style: none;
    padding-left: 0;
    counter-reset: step-counter;
}

.steps-list li {
    counter-increment: step-counter;
    padding: 10px 0 10px 40px;
    position: relative;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 10px;
    width: 28px;
    height: 28px;
    background: #0056B1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

/* Case Type Cards */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.case-card {
    background: #232627;
    border: 1px solid #2a2d2e;
    border-radius: 8px;
    padding: 20px;
}

.case-card h3 {
    margin-top: 0;
    color: #4a9eff;
    font-size: 17px;
}

.case-card .example {
    background: #1a1c1d;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    color: #7ec88b;
    margin: 8px 0;
}

/* FAQ Section */
.faq-section {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.faq-section h2 {
    color: #e0dbd4;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2d2e;
}

.faq-item {
    border-bottom: 1px solid #2a2d2e;
    padding: 16px 0;
}

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

.faq-item h3 {
    color: #d0cbc4;
    font-size: 16px;
    margin-bottom: 8px;
    cursor: default;
}

.faq-item p {
    color: #b0aba4;
    line-height: 1.7;
    margin: 0;
}

/* Use-Cases Section */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.use-case {
    background: #232627;
    border: 1px solid #2a2d2e;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.use-case .icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.use-case h3 {
    color: #e0dbd4;
    font-size: 15px;
    margin: 0 0 6px;
}

.use-case p {
    color: #9b9690;
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================
   Footer
   ========================================== */
.site-footer {
    background: #181a1b;
    border-top: 1px solid #2a2d2e;
    padding: 30px 20px;
    text-align: center;
}

.site-footer p {
    color: #6b6660;
    font-size: 13px;
    margin-bottom: 8px;
}

.site-footer p:last-child {
    margin-top: 12px;
    margin-bottom: 0;
}

.site-footer nav {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.site-footer nav a {
    color: #6b6660;
    font-size: 13px;
}

.site-footer nav a:hover {
    color: #4a9eff;
}

/* ==========================================
   Toast Notification
   ========================================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: #28a745;
    color: white;
    padding: 16px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 600px) {
    .site-header .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-header nav {
        gap: 12px;
    }

    h1 {
        font-size: 22px;
    }

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

    .use-cases-grid {
        grid-template-columns: 1fr 1fr;
    }
}