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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

main {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.analysis-section {
    margin-bottom: 40px;
}

.recording-area {
    text-align: center;
    margin-bottom: 30px;
}

.microphone-container {
    margin-bottom: 30px;
}

.microphone {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    margin-bottom: 15px;
}

.microphone:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

.microphone.recording {
    animation: pulse 1.5s infinite;
    background: linear-gradient(135deg, #ff4757, #ff3838);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.recording-status {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.record-btn, .stop-btn, .analyze-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.record-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.record-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.stop-btn {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.stop-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.4);
}

.analyze-btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.analyze-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.analysis-results {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
}

.analysis-results h3 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.voice-characteristics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.characteristic {
    background: white;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.characteristic .label {
    font-weight: 600;
    color: #555;
}

.characteristic .value {
    font-weight: 700;
    color: #2196F3;
}

.recommendations-section {
    margin-top: 40px;
}

.recommendations-section h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

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

.song-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.song-card:hover {
    transform: translateY(-5px);
}

.song-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.song-artist {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.song-details {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
}

.match-score {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

.instructions {
    background: #e3f2fd;
    border-radius: 15px;
    padding: 25px;
    margin-top: 40px;
}

.instructions h3 {
    margin-bottom: 15px;
    color: #1976d2;
}

.instructions ol {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 8px;
    line-height: 1.5;
}

footer {
    text-align: center;
    color: white;
    opacity: 0.8;
    padding: 20px;
}

/* Google Translate 위젯 스타일링 */
.language-selector {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#google_translate_element {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Google Translate 기본 스타일 오버라이드 */
.goog-te-gadget {
    font-family: inherit !important;
    font-size: 0 !important;
}

.goog-te-gadget .goog-te-combo {
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    border-radius: 5px !important;
    padding: 5px 8px !important;
    font-size: 12px !important;
    color: #333 !important;
    cursor: pointer !important;
    outline: none !important;
}

.goog-te-gadget .goog-te-combo:hover {
    background: white !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.goog-te-gadget-simple {
    background: transparent !important;
    border: none !important;
    font-size: 12px !important;
}

.goog-te-gadget-simple .goog-te-menu-value {
    color: white !important;
    font-weight: 500 !important;
}

.goog-te-gadget-simple .goog-te-menu-value:before {
    content: '🌐 ';
    margin-right: 5px;
}

/* Google Translate 배너 숨기기 */
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

.skiptranslate iframe {
    visibility: hidden !important;
    height: 0 !important;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 25px;
    }
    
    .microphone {
        width: 100px;
        height: 100px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .voice-characteristics {
        grid-template-columns: 1fr;
    }
    
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
}
