/* Case Converter Specific Styles */

.intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.tool-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Input Section */
.input-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.input-header label {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.input-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-secondary {
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #e8e8e8;
}

#inputText {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 150px;
}

#inputText:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.stats {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #666;
}

.separator {
    color: #ccc;
}

/* Output Section */
.output-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.output-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.output-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.output-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.output-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #666;
    margin: 0;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #45a049;
}

.copy-btn.copied {
    background: #2196F3;
}

.output-text {
    min-height: 60px;
    padding: 0.75rem;
    background: #f9f9f9;
    border-radius: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
    color: #333;
}

.output-text.code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

.output-text:empty::before {
    content: "—";
    color: #ccc;
}

/* Content Section */
.content-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #e0e0e0;
}

.content-section section {
    margin-bottom: 2.5rem;
}

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

.content-section h3 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #444;
}

.content-section ol,
.content-section ul {
    margin-left: 1.5rem;
    line-height: 1.8;
}

.content-section li {
    margin-bottom: 0.5rem;
}

.content-section code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .intro {
        color: #aaa;
    }

    .input-section,
    .output-card {
        background: #2a2a2a;
        border-color: #444;
    }

    .input-header label,
    .output-section h2,
    .content-section h2 {
        color: #fff;
    }

    .content-section h3,
    .output-header h3 {
        color: #ddd;
    }

    .btn-secondary {
        background: #333;
        border-color: #555;
        color: #fff;
    }

    .btn-secondary:hover {
        background: #444;
    }

    #inputText {
        background: #1a1a1a;
        border-color: #444;
        color: #fff;
    }

    .output-text {
        background: #1a1a1a;
        color: #ddd;
    }

    .stats {
        color: #aaa;
    }

    .content-section {
        border-color: #444;
    }

    .content-section code {
        background: #333;
        color: #e0e0e0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .output-grid {
        grid-template-columns: 1fr;
    }

    .input-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .stats {
        flex-direction: column;
        gap: 0.25rem;
    }

    .separator {
        display: none;
    }
}
