/* css/exchange-styles.css - Exchange rendszer stílusai */

.exchange-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Rates Display */
.rates-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.rate-item {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rate-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.rate-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #1f2937;
}

.rate-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.rate-icon.cafe {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.rate-icon.restaurant {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.rate-icon.shop {
    background: linear-gradient(135deg, #059669, #10b981);
}

.rate-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.rate-value {
    font-weight: 600;
    color: #059669;
}

/* Quick Exchange */
.quick-exchange-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.quick-exchange-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.quick-exchange-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Exchange Form */
.exchange-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.form-input {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input:invalid {
    border-color: #ef4444;
}

/* Exchange Preview */
.exchange-preview {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
}

.exchange-preview h4 {
    margin: 0 0 0.75rem 0;
    color: #065f46;
    font-size: 1rem;
}

.preview-summary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    font-size: 0.875rem;
}

.preview-row:last-child {
    border-bottom: none;
}

.preview-value {
    font-weight: 600;
    color: #065f46;
}

.preview-value.highlight {
    color: #059669;
    font-size: 1rem;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.preview-value.discount {
    color: #dc2626;
}

.preview-value.premium {
    color: #059669;
}

.preview-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(239, 68, 68, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.875rem;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #047857, #059669);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563, #6b7280);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

/* Exchange History */
.exchange-history-item {
    background: rgba(249, 250, 251, 0.8);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: background-color 0.2s ease;
}

.exchange-history-item:hover {
    background: rgba(243, 244, 246, 0.8);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.history-type {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.history-time {
    color: #6b7280;
    font-size: 0.75rem;
}

.history-details {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.history-meta {
    color: #6b7280;
    font-size: 0.75rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .exchange-container {
        padding: 0 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .rates-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-exchange-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .preview-row {
        font-size: 0.8rem;
    }
    
    .rate-item {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .quick-exchange-grid {
        grid-template-columns: 1fr;
    }
    
    .rate-header {
        font-size: 0.875rem;
    }
    
    .rate-row {
        font-size: 0.8rem;
    }
}