/* My Voice Frontend Styles - Tailwind CSS Classes */

/* Reset and Base */
.my-voice-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    box-sizing: border-box;
}

.my-voice-container *,
.my-voice-container *::before,
.my-voice-container *::after {
    box-sizing: border-box;
}

/* Layout Classes */
.min-h-screen {
    min-height: 100vh;
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-blue-900 {
    --tw-gradient-from: #1e3a8a;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(30, 58, 138, 0));
}

.to-purple-900 {
    --tw-gradient-to: #581c87;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-3xl {
    max-width: 48rem;
}

/* Background and Backdrop */
.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.backdrop-blur-xl {
    backdrop-filter: blur(24px);
}

.rounded-xl {
    border-radius: 0.75rem;
}

.p-6 {
    padding: 1.5rem;
}

.border {
    border-width: 1px;
}

.border-white\/20 {
    border-color: rgba(255, 255, 255, 0.2);
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Flexbox */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* Icon Container */
.p-3 {
    padding: 0.75rem;
}

.bg-indigo-500 {
    background-color: #6366f1;
}

.rounded-lg {
    border-radius: 0.5rem;
}

/* Typography */
.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.text-white {
    color: #ffffff;
}

.text-white\/80 {
    color: rgba(255, 255, 255, 0.8);
}

.text-white\/70 {
    color: rgba(255, 255, 255, 0.7);
}

.text-white\/60 {
    color: rgba(255, 255, 255, 0.6);
}

.text-white\/90 {
    color: rgba(255, 255, 255, 0.9);
}

.text-white\/40 {
    color: rgba(255, 255, 255, 0.4);
}

/* Spacing */
.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

/* Progress Bar */
.w-full {
    width: 100%;
}

.h-2 {
    height: 0.5rem;
}

.h-full {
    height: 100%;
}

.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.rounded-full {
    border-radius: 9999px;
}

.overflow-hidden {
    overflow: hidden;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Buttons */
.option-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #ffffff;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.option-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.option-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5);
}

.bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.05);
}

.hover\:bg-white\/10:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hover\:bg-white\/20:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.group:hover .group-hover\:text-white {
    color: #ffffff;
}

/* SVG Icons */
.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

/* Results Section */
.bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Action Buttons */
.flex-1 {
    flex: 1 1 0%;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.hover\:bg-indigo-600:hover {
    background-color: #4f46e5;
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Responsive Design */
@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .my-voice-container .container {
        padding: 0 1rem;
    }
    
    .my-voice-container .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .my-voice-container .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .my-voice-container .py-12 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .my-voice-container .text-2xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    
    .my-voice-container .gap-4 {
        gap: 0.75rem;
    }
}

/* Theme Variations */
.my-voice-container.theme-dark {
    --bg-gradient-from: #1a1a2e;
    --bg-gradient-to: #16213e;
}

.my-voice-container.theme-light {
    --bg-gradient-from: #f8fafc;
    --bg-gradient-to: #e2e8f0;
}

.my-voice-container.theme-light .text-white {
    color: #1a202c !important;
}

.my-voice-container.theme-light .text-white\/80 {
    color: rgba(26, 32, 44, 0.8) !important;
}

.my-voice-container.theme-light .text-white\/70 {
    color: rgba(26, 32, 44, 0.7) !important;
}

.my-voice-container.theme-light .text-white\/60 {
    color: rgba(26, 32, 44, 0.6) !important;
}

.my-voice-container.theme-light .text-white\/90 {
    color: rgba(26, 32, 44, 0.9) !important;
}

.my-voice-container.theme-light .bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

.my-voice-container.theme-modern {
    --bg-gradient-from: #667eea;
    --bg-gradient-to: #764ba2;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.my-voice-container #results-section {
    animation: fadeIn 0.3s ease-in-out;
}

/* Focus and Accessibility */
.my-voice-container button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5);
}

.my-voice-container [role="application"] {
    outline: none;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .my-voice-container {
        --border-color: #000;
        --text-color: #000;
        --bg-color: #fff;
    }
    
    .my-voice-container .option-button {
        border: 2px solid var(--border-color);
        background: var(--bg-color);
        color: var(--text-color);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .my-voice-container * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .my-voice-container {
        background: white !important;
        color: black !important;
    }
    
    .my-voice-container .min-h-screen {
        background: white !important;
        min-height: auto !important;
        padding: 1rem !important;
    }
    
    .my-voice-container .bg-white\/10 {
        background: white !important;
        border: 1px solid #ccc !important;
    }
    
    .my-voice-container button {
        display: none !important;
    }
}

/* Quiz Results Styles */
.quiz-results {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
}

.analysis-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.analysis-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.percentage-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.percentage-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.percentage-label {
    min-width: 100px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.percentage-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.percentage-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease-in-out;
    position: relative;
}

.percentage-fill.male {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.percentage-fill.female {
    background: linear-gradient(90deg, #ec4899, #be185d);
}

.percentage-fill.neutral {
    background: linear-gradient(90deg, #6b7280, #374151);
}

.percentage-value {
    min-width: 45px;
    text-align: right;
    font-size: 0.875rem;
    color: #ffffff;
    font-weight: 600;
}

.recommendation-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.recommendation-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.recommended-voice {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.confidence-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.confidence-high {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.confidence-medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.confidence-low {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alternatives-section {
    margin-top: 1.5rem;
}

.alternatives-title {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
}

.alternatives-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.alternative-item {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.alternative-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

/* Animation for percentage bars */
@keyframes fillBar {
    from {
        width: 0%;
    }
    to {
        width: var(--target-width);
    }
}

.percentage-fill.animate {
    animation: fillBar 1s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quiz-results {
        padding: 1.5rem;
    }
    
    .analysis-section {
        padding: 1rem;
    }
    
    .percentage-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .percentage-label {
        min-width: auto;
        text-align: center;
    }
    
    .percentage-value {
        text-align: center;
    }
} 