/* Text Case Converter - Main Styles */
.tcc-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.tcc-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e1e5e9;
}

.tcc-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.tcc-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.tcc-subtitle {
    margin: 0.5rem 0 0;
    opacity: 0.9;
    font-size: 1rem;
}

.tcc-input-section,
.tcc-output-section {
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.tcc-input-header,
.tcc-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tcc-input-header h3,
.tcc-output-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.25rem;
}

.tcc-counter {
    display: flex;
    gap: 1.5rem;
    color: #4a5568;
    font-size: 0.875rem;
}

.tcc-counter strong {
    color: #667eea;
    font-weight: 600;
}

.tcc-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.tcc-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tcc-textarea.tcc-output {
    background-color: #f8fafc;
    border-color: #cbd5e0;
}

.tcc-controls {
    padding: 1.5rem;
}

.tcc-case-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tcc-btn-case {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #4a5568;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tcc-btn-case:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

.tcc-btn-case.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.tcc-btn-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.tcc-output-actions {
    display: flex;
    gap: 0.75rem;
}

.tcc-btn-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #48bb78;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tcc-btn-action:hover {
    background: #38a169;
    transform: translateY(-1px);
}

.tcc-btn-clear {
    background: #f56565;
}

.tcc-btn-clear:hover {
    background: #e53e3e;
}

.tcc-action-icon {
    font-size: 1.25rem;
}

.tcc-message {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    display: none;
}

.tcc-message.success {
    background: #c6f6d5;
    color: #22543d;
    display: block;
}

.tcc-message.error {
    background: #fed7d7;
    color: #742a2a;
    display: block;
}

.tcc-footer {
    padding: 1.5rem;
    text-align: center;
    color: #718096;
    font-size: 0.875rem;
}

.tcc-note {
    margin: 0;
    padding: 0.75rem;
    background: #f7fafc;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tcc-case-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tcc-input-header,
    .tcc-output-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .tcc-output-actions {
        width: 100%;
    }
    
    .tcc-btn-action {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tcc-case-buttons {
        grid-template-columns: 1fr;
    }
    
    .tcc-wrapper {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .tcc-header {
        padding: 1.5rem 1rem;
    }
    
    .tcc-title {
        font-size: 1.5rem;
    }
}

/* Animation */
@keyframes tccPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.tcc-btn-case:active {
    animation: tccPulse 0.2s;
}