/* Garden of Wealth Custom Styles */

/* Custom Variables */
:root {
    --garden-green: #22c55e;
    --garden-yellow: #fbbf24;
    --garden-orange: #f97316;
    --garden-brown: #92400e;
    --garden-sage: #84cc16;
    --roots-color: #15803d;
    --blooms-color: #f59e0b;
    --sun-exposure-color: #dc2626;
}

/* Garden Animations */
@keyframes grow {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes bloom {
    0% { transform: rotate(0deg) scale(0.8); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes sunRays {
    0% { transform: rotate(0deg); opacity: 0.7; }
    100% { transform: rotate(360deg); opacity: 1; }
}

@keyframes pulse-grow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Garden Animation Classes */
.garden-animation {
    animation: grow 2s ease-in-out;
}

.garden-animation i:nth-child(1) {
    animation: float 3s ease-in-out infinite;
}

.garden-animation i:nth-child(2) {
    animation: sunRays 8s linear infinite;
}

.garden-animation i:nth-child(3) {
    animation: bloom 4s ease-in-out infinite;
    animation-delay: 1s;
}

/* Score Circle Animation */
.garden-score-animation {
    animation: grow 1.5s ease-out;
}

.score-circle {
    width: 150px;
    height: 150px;
    border: 8px solid var(--garden-green);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.2));
    position: relative;
    animation: pulse-grow 2s ease-in-out infinite;
}

.score-circle::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 50%;
    animation: pulse-grow 2s ease-in-out infinite reverse;
}

.score-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--garden-green);
    line-height: 1;
}

.score-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 1px;
}

/* Asset Category Styles */
.roots-theme {
    background: linear-gradient(135deg, rgba(21, 128, 61, 0.1), rgba(21, 128, 61, 0.2));
    border-left: 4px solid var(--roots-color);
}

.blooms-theme {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.2));
    border-left: 4px solid var(--blooms-color);
}

.sun-exposure-theme {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.2));
    border-left: 4px solid var(--sun-exposure-color);
}

/* Interactive Elements */
.answer-option:hover {
    border-color: var(--garden-green);
    background-color: rgba(34, 197, 94, 0.05);
    transform: translateX(4px);
    transition: all 0.3s ease;
}

.answer-option input[type="radio"]:checked ~ span {
    color: var(--garden-green);
    font-weight: 600;
}

.answer-option input[type="radio"]:checked {
    accent-color: var(--garden-green);
}

/* Question Cards */
.question-card {
    transition: all 0.5s ease-in-out;
    animation: grow 0.5s ease-out;
}

/* Progress Bar Enhancements */
.progress-container {
    position: relative;
    background: linear-gradient(90deg, #e5e7eb, #f3f4f6);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-enhanced {
    background: linear-gradient(90deg, var(--garden-green), var(--garden-sage));
    border-radius: 9999px;
    position: relative;
    overflow: hidden;
}

.progress-bar-enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Garden Background Patterns */
.garden-bg {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
}

/* Loading Animations */
.loading-garden {
    display: inline-block;
    animation: grow 1s ease-in-out infinite alternate;
}

.loading-dots::after {
    content: '';
    animation: dots 2s infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Responsive Garden Elements */
@media (max-width: 768px) {
    .garden-animation i {
        font-size: 2rem;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
    
    .score-value {
        font-size: 2rem;
    }
}

/* Chart Container Enhancements */
.chart-container {
    position: relative;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.9));
    border-radius: 0.75rem;
    padding: 1rem;
}

/* Garden Icon Styles */
.garden-icon {
    display: inline-block;
    transition: all 0.3s ease;
}

.garden-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-badge.conservative {
    background-color: rgba(21, 128, 61, 0.1);
    color: var(--roots-color);
}

.status-badge.moderate {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--blooms-color);
}

.status-badge.aggressive {
    background-color: rgba(220, 38, 38, 0.1);
    color: var(--sun-exposure-color);
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::before {
    opacity: 1;
}

/* Form Enhancements */
.form-field-enhanced {
    position: relative;
}

.form-field-enhanced input:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.form-field-enhanced label {
    transition: all 0.3s ease;
}

.form-field-enhanced input:focus + label {
    color: var(--garden-green);
}

/* Button Enhancements */
.btn-garden {
    background: linear-gradient(135deg, var(--garden-green), var(--garden-sage));
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-garden::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-garden:hover::before {
    left: 100%;
}

.btn-garden:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(34, 197, 94, 0.3);
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .answer-option {
        border-width: 2px;
    }
    
    .score-circle {
        border-width: 4px;
    }
}

/* Print Styles */
@media print {
    .garden-animation,
    .loading-garden,
    .btn-garden {
        animation: none !important;
        transform: none !important;
    }
    
    .card-hover:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}
