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

body {
    font-family: 'Cal Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

header {
    margin-bottom: 40px;
}

h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

header p {
    font-size: 1.2rem;
    color: #666;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.generator-section {
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

#wordInput {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

#wordInput:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

#generateBtn {
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

#generateBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

#generateBtn:active {
    transform: translateY(0);
}

#generateBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.result-container {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #666;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.result {
    display: none;
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #e0e0e0;
    animation: slideUp 0.5s ease-out;
}

.result.show {
    display: block;
}

.loading.show {
    display: flex;
}

.result h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.acronym-display {
    font-size: 2rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.acronym-breakdown {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.acronym-line {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.acronym-line:last-child {
    border-bottom: none;
}

.letter {
    font-weight: 600;
    color: #667eea;
    min-width: 30px;
    font-size: 1.2rem;
}

.word {
    color: #333;
    font-size: 1rem;
}

.examples {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.examples h3 {
    margin-bottom: 20px;
    color: #666;
    font-size: 1.1rem;
    font-weight: 400;
}

.example-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.example-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 500;
    color: #666;
}

.example-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .input-group {
        flex-direction: column;
        max-width: none;
    }
    
    #wordInput, #generateBtn {
        width: 100%;
    }
    
    .example-buttons {
        gap: 8px;
    }
    
    .example-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

