/* Tool Title Link Styling */
.tool-title-link {
    color: inherit;
    text-decoration: none;
}

.tool-title-link:hover {
    text-decoration: underline;
    color: #dc2626;
}

/* Affiliate Link Styling */
.affiliate-cta {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    border: 1px solid #B91C1C;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.affiliate-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.affiliate-cta:hover::before {
    left: 100%;
}

.affiliate-link {
    display: inline-block;
    background: #F7FAFC;
    color: #DC2626 !important;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    margin-bottom: 0.5rem;
}

.affiliate-link:hover {
    background: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    border-color: #DC2626;
}

.affiliate-badge {
    display: inline-block;
    background: rgba(247,250,252,0.9);
    color: #DC2626;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
    border: 1px solid rgba(247,250,252,0.3);
}

.affiliate-badge.premium {
    background: linear-gradient(135deg, #FB923C 0%, #F56500 100%);
    color: #F7FAFC;
    border-color: #F56500;
}

/* Affiliate indicators in lists */
.tool-card.has-affiliate {
    position: relative;
}

.tool-card.has-affiliate::after {
    content: '💰';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Secondary affiliate links in content */
.affiliate-link-inline {
    color: #DC2626;
    text-decoration: none;
    border-bottom: 1px dashed #DC2626;
    transition: all 0.3s ease;
}

.affiliate-link-inline:hover {
    color: #B91C1C;
    border-bottom-style: solid;
    background: rgba(220, 38, 38, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

/* Affiliate disclosure */
.affiliate-disclosure {
    background: #F7FAFC;
    border-left: 4px solid #DC2626;
    padding: 1rem;
    margin: 2rem 0;
    font-size: 0.9rem;
    color: #718096;
    border-radius: 0 4px 4px 0;
}

.affiliate-disclosure strong {
    color: #4A5568;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .affiliate-cta {
        margin: 1.5rem -15px;
        padding: 1rem 15px;
        border-radius: 0;
    }
    
    .affiliate-link {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Analytics tracking styles */
.affiliate-link[data-tracked="true"] {
    position: relative;
}

.affiliate-link[data-tracked="true"]::after {
    content: '📊';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
    opacity: 0.5;
}