/* Exchange Detail Linking Styles */

/* Clickable exchange cards */
.exchange-card-clickable {
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.exchange-card-clickable:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(247, 144, 9, 0.3);
}

.exchange-card-clickable:hover .exchange-detail-link-indicator {
    opacity: 1;
    transform: translateY(0);
}

/* Detail link buttons */
.exchange-detail-link {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), #ff6b35);
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(247, 144, 9, 0.3);
}

.detail-link-btn:hover {
    background: linear-gradient(135deg, #ff6b35, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 144, 9, 0.4);
    color: white;
    text-decoration: none;
}

.detail-link-btn::after {
    content: "→";
    transition: transform 0.3s ease;
}

.detail-link-btn:hover::after {
    transform: translateX(4px);
}

/* Exchange comparison note */
.exchange-comparison-note {
    margin-top: 30px;
    padding: 20px;
    background: rgba(247, 144, 9, 0.1);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
}

.exchange-comparison-note p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.exchange-comparison-note a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.exchange-comparison-note a:hover {
    text-decoration: underline;
}

/* Detail link indicator */
.exchange-detail-link-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

.exchange-detail-link-indicator svg {
    width: 12px;
    height: 12px;
}

/* Exchange name links in text */
.exchange-name-link {
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.exchange-name-link:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.exchange-name-link:hover::after {
    content: " → View Details";
    font-size: 0.8em;
    color: var(--accent-color);
    margin-left: 4px;
}

/* Highlighted exchange on exchanges page */
.highlighted-exchange {
    animation: highlightPulse 2s ease-in-out;
    border: 2px solid var(--primary-color) !important;
    box-shadow: 0 0 20px rgba(247, 144, 9, 0.5) !important;
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(247, 144, 9, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(247, 144, 9, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(247, 144, 9, 0);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .exchange-detail-link-indicator {
        position: static;
        margin-top: 10px;
        opacity: 1;
        transform: none;
        align-self: flex-start;
    }
    
    .exchange-card-clickable:hover {
        transform: none;
    }
    
    .exchange-name-link:hover::after {
        content: "";
    }
    
    .detail-link-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }
    
    .exchange-comparison-note {
        padding: 15px;
        margin-top: 20px;
    }
}

/* Guide-specific styles */
.guide-content .exchange-card-clickable {
    margin-bottom: 20px;
}

.guide-content .exchange-name-link {
    background: linear-gradient(120deg, transparent 0%, rgba(247, 144, 9, 0.1) 100%);
    padding: 2px 4px;
    border-radius: 3px;
}

/* Dark theme adjustments */
@media (prefers-color-scheme: dark) {
    .exchange-detail-link-indicator {
        background: var(--primary-color);
        color: #000;
    }
    
    .exchange-name-link {
        color: #ffa726;
    }
    
    .exchange-name-link:hover {
        color: #ff9800;
    }
    
    .exchange-comparison-note {
        background: rgba(247, 144, 9, 0.05);
    }
}
