/* Property Calculator Styles */

/* Mode selection buttons */
.mode-btn {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #e5e7eb;
}

.mode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.mode-btn.border-primary {
    background-color: rgba(59, 130, 246, 0.05);
    border-color: var(--color-primary) !important;
}

/* Calculator form animations */
#calculatorForm {
    animation: slideIn 0.5s ease-out;
}

#resultsSection {
    animation: slideIn 0.5s ease-out;
}

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

/* Input field enhancements */
.calculator-input:focus {
    transform: scale(1.01);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Results styling */
#resultTitle {
    animation: bounceIn 0.6s ease-out;
}

#resultValue {
    animation: bounceIn 0.8s ease-out;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    70% {
        transform: scale(0.9);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Email capture section */
.email-capture-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.email-capture-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    animation: shimmer 3s infinite;
}

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

/* Button hover effects */
.calculator-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.calculator-btn:active {
    transform: translateY(0);
}

/* Success/Error states */
.input-success {
    border-color: var(--color-accent) !important;
    background-color: rgba(16, 185, 129, 0.05);
}

.input-error {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.05);
}

/* Loading spinner for calculator */
.calculator-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .mode-btn {
        padding: 1rem;
    }
    
    .mode-btn .text-2xl {
        font-size: 1.5rem;
    }
    
    #resultValue {
        font-size: 1.75rem;
    }
    
    .grid.grid-cols-2 {
        gap: 0.75rem;
    }
}

/* Calculator progress indicator */
.progress-indicator {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Tooltip styles */
.calculator-tooltip {
    position: relative;
    cursor: help;
}

.calculator-tooltip::after {
    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.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.calculator-tooltip:hover::after {
    opacity: 1;
}

/* Calculation result cards */
.result-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

/* Reset button styling */
.reset-btn {
    color: #6b7280;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    color: var(--color-primary);
    transform: translateX(-4px);
}

.reset-btn::before {
    content: '←';
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.reset-btn:hover::before {
    transform: translateX(-2px);
}