/* Vowel Counter Tool Styles */

/* Gradient Text for Tool Title */
.gradient-text-vowel {
    background: linear-gradient(135deg, #9333ea, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Input Section Styling */
#text-input {
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    resize: none;
    height: 120px;
}

#text-input:focus {
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

.count-btn {
    transition: all 0.3s ease;
}

#clear-btn, #sample-btn {
    transition: all 0.2s ease;
}

#clear-btn:hover, #sample-btn:hover {
    background-color: #f3f4f6;
}

/* Results Section Styling */
.stat-box {
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.stat-box:hover {
    transform: translateY(-2px);
}

.total-box {
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    border: 1px solid #d8b4fe;
}

.percent-box {
    background: linear-gradient(135deg, #fae8ff, #f5d0fe);
    border: 1px solid #f0abfc;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #7c3aed;
}

/* Vowel Breakdown Styling */
.vowel-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.5rem;
    border-radius: 0.375rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vowel-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.vowel-letter {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.vowel-count {
    font-size: 1.125rem;
    font-weight: 600;
}

.vowel-a {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #ef4444;
}

.vowel-e {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #10b981;
}

.vowel-i {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #3b82f6;
}

.vowel-o {
    background-color: #fff7ed;
    border: 1px solid #fed7aa;
    color: #f97316;
}

.vowel-u {
    background-color: #f5f3ff;
    border: 1px solid #c4b5fd;
    color: #8b5cf6;
}

/* Chart Styling */
.vowel-chart-container {
    margin-top: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.vowel-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 150px;
    margin-bottom: 0.5rem;
}

.chart-bar {
    width: 18%;
    background-color: #e5e7eb;
    border-radius: 4px 4px 0 0;
    transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
    position: relative;
}

.chart-bar::before {
    content: attr(data-value);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chart-bar:hover::before {
    opacity: 1;
}

.bar-a {
    background-color: #ef4444;
}

.bar-e {
    background-color: #10b981;
}

.bar-i {
    background-color: #3b82f6;
}

.bar-o {
    background-color: #f97316;
}

.bar-u {
    background-color: #8b5cf6;
}

.chart-labels {
    font-weight: 600;
    color: #4b5563;
}

/* Additional Stats Styling */
.additional-stats {
    font-size: 0.9rem;
}

/* Did You Know Section Styling */
#did-you-know {
    background-color: #fffbeb;
    border-color: #fef3c7;
}

#did-you-know h3 {
    color: #d97706;
}

/* Animation for Results */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#results-container, #did-you-know {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .vowel-breakdown {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .vowel-box:nth-child(4), .vowel-box:nth-child(5) {
        grid-column: span 1;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .flex.justify-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    .count-btn, .flex.space-x-2 {
        width: 100%;
    }
    
    .flex.space-x-2 {
        justify-content: space-between;
    }
} 