/**
 * Converter Enhancements Styles
 * CSS for all enhancement features
 * Version: 1.0.0
 */

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-btn {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #475569;
    color: #f8fafc;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: #1e293b;
    border-color: #06b6d4;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 12px;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 12px 16px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #334155;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

.lang-option.active {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    font-weight: 600;
}

/* Economic Calendar */
.economic-calendar {
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
}

.calendar-title {
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    color: #f8fafc;
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.calendar-event {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.calendar-event:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: #06b6d4;
    transform: translateX(5px);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 10px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 8px;
}

.event-day {
    font-weight: 700;
    color: #06b6d4;
    font-size: 0.95rem;
}

.event-time {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 4px;
}

.event-details {
    flex: 1;
}

.event-name {
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 8px;
}

.event-meta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.event-expected {
    color: #94a3b8;
    font-size: 0.85rem;
}

.event-impact {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.impact-high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.impact-medium {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.impact-low {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.calendar-link {
    display: inline-block;
    margin-top: 20px;
    color: #06b6d4;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.calendar-link:hover {
    color: #0891b2;
    transform: translateX(5px);
}

/* Enhanced Quick Comparison */
.comparison-subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 400;
}

.trend-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.trend-up {
    color: #10b981;
}

.trend-down {
    color: #ef4444;
}

/* Enhanced Recent Conversions */
.conversion-item-enhanced {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.conversion-time {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.conversion-main {
    font-weight: 600;
    color: #f8fafc;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.conversion-analysis {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid #334155;
}

.rate-then, .rate-now {
    font-size: 0.9rem;
    color: #94a3b8;
}

.rate-diff {
    font-weight: 600;
    margin-left: 8px;
}

.rate-diff.positive {
    color: #10b981;
}

.rate-diff.negative {
    color: #ef4444;
}

.rate-insight {
    color: #fbbf24;
    font-size: 0.9rem;
    font-weight: 500;
}

.export-history-btn {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid #06b6d4;
    color: #06b6d4;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.export-history-btn:hover {
    background: rgba(6, 182, 212, 0.25);
}

/* Rate Alert System */
.rate-alert-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #334155;
}

.alert-title {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    color: #f8fafc;
}

.alert-description {
    color: #94a3b8;
    margin-bottom: 20px;
}

.alert-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.alert-input-group label {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.alert-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #475569;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
}

.alert-input:focus {
    border-color: #06b6d4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.alert-submit-btn {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.alert-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.alert-note {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 10px;
}

/* Historical Comparison */
.historical-comparison {
    margin-top: 30px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 12px;
}

.comparison-title {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    color: #f8fafc;
}

.comparison-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 6px;
}

.stat-diff {
    font-size: 0.9rem;
    font-weight: 600;
}

.stat-diff.positive {
    color: #10b981;
}

.stat-diff.negative {
    color: #ef4444;
}

.stat-diff.neutral {
    color: #94a3b8;
}

.comparison-insight {
    margin-top: 15px;
    padding: 12px;
    background: rgba(251, 191, 36, 0.1);
    border-left: 3px solid #fbbf24;
    border-radius: 6px;
    color: #fbbf24;
    font-size: 0.9rem;
}

/* Fee Comparison */
.fee-comparison {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #334155;
}

.fee-title {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #f8fafc;
}

.fee-baseline {
    color: #94a3b8;
    margin-bottom: 20px;
}

.fee-baseline strong {
    color: #f8fafc;
}

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

.fee-provider {
    padding: 15px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.fee-provider:hover {
    border-color: #06b6d4;
    transform: translateY(-2px);
}

.fee-provider.recommended {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.provider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.provider-name {
    font-weight: 600;
    color: #f8fafc;
}

.provider-badge {
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.provider-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #06b6d4;
    margin-bottom: 4px;
}

.provider-diff {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.provider-diff.positive {
    color: #10b981;
}

.provider-diff.negative {
    color: #ef4444;
}

.provider-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #94a3b8;
    font-size: 0.8rem;
}

.provider-note {
    margin-top: 8px;
    padding: 6px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 4px;
    color: #fbbf24;
    font-size: 0.75rem;
}

.fee-insight {
    margin-top: 20px;
    padding: 12px;
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid #10b981;
    border-radius: 6px;
    color: #10b981;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .comparison-stats {
        grid-template-columns: 1fr;
    }
    
    .fee-providers {
        grid-template-columns: 1fr;
    }
    
    .calendar-event {
        flex-direction: column;
    }
    
    .event-date {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
}

/* Fee Comparison Inline (inside converter card) */
.fee-comparison-inline {
    margin-top: 25px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid #334155;
    border-radius: 12px;
}

.fee-title-small {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #f8fafc;
}

.fee-baseline-small {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.fee-baseline-small strong {
    color: #f8fafc;
}

.fee-providers-compact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fee-provider-compact {
    padding: 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.fee-provider-compact:hover {
    border-color: #06b6d4;
    transform: translateX(3px);
}

.fee-provider-compact.recommended {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.provider-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.provider-name-small {
    font-weight: 600;
    color: #f8fafc;
    font-size: 0.9rem;
}

.badge-small {
    background: #10b981;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.provider-amount-small {
    font-size: 1.1rem;
    font-weight: 700;
    color: #06b6d4;
}

.provider-diff-small {
    font-size: 0.8rem;
    font-weight: 600;
}

.provider-diff-small.positive {
    color: #10b981;
}

.provider-diff-small.negative {
    color: #ef4444;
}

.provider-details-small {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-top: 4px;
}

/* Mobile adjustments for inline fee comparison */
@media (max-width: 768px) {
    .fee-comparison-inline {
        padding: 15px;
        margin-top: 20px;
    }
    
    .provider-amount-small {
        font-size: 1rem;
    }
}
