:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --accent-primary: #667eea;
    --success: #10b981;
    --error: #ef4444;
    --card-bg: rgba(30, 41, 59, 0.8);
}

.input-section {
    margin-bottom: 2rem;
}

.results-section {
    margin-top: 2rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-header h2 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.75rem;
    font-weight: 700;
}

.results-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.results-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-result-card {
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.75rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-result-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.price-result-card.expanded {
    border-color: var(--accent-primary);
    background: rgba(102, 126, 234, 0.1);
}

.price-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.price-result-main {
    flex: 1;
}

.price-result-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.price-result-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.price-result-status {
    display: inline-block;
    padding: 0.35rem 0.875rem;
    border-radius: 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.price-comparison {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.price-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 800;
}

.price-value.original {
    color: var(--text-secondary);
    text-decoration: line-through;
    font-size: 1rem;
}

.price-value.current {
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.price-change {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-change.increase {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.price-change.decrease {
    color: #10b981;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.price-change.no-change {
    color: var(--text-secondary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.expand-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.price-result-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.price-result-expanded {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.price-result-card.expanded .price-result-expanded {
    display: block;
}

.price-detail-box {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.price-detail-box:hover {
    border-color: var(--accent-primary);
    background: rgba(102, 126, 234, 0.05);
}

.price-detail-box h4 {
    font-size: 0.9rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-detail-box p {
    color: var(--text-secondary);
    word-break: break-all;
    font-size: 0.95rem;
    line-height: 1.6;
}

.price-detail-box a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s;
}

.price-detail-box a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.price-detail-box strong {
    color: var(--text-primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .price-result-header {
        flex-direction: column;
    }

    .price-comparison {
        flex-direction: column;
        align-items: flex-start;
    }
}
