/* QuantStrategy App Link Converter Styles */

.qs-app-link-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 25px 30px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.qs-app-link-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.qs-app-link-message {
    display: flex;
    align-items: center;
    flex: 1;
    margin-right: 20px;
}

.qs-icon {
    font-size: 32px;
    margin-right: 15px;
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.qs-app-link-message p {
    margin: 0;
    font-size: 17px;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.qs-app-link-button {
    display: inline-block;
    background: #ffffff;
    color: #667eea;
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.qs-app-link-button:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: #667eea;
    text-decoration: none;
}

/* Contextual links in content */
.qs-app-link-contextual {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-left: 5px solid #667eea;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.qs-app-link-contextual:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.qs-app-link-contextual-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.qs-app-link-contextual-inner p {
    margin: 0;
    font-size: 16px;
    color: #2c3e50;
    flex: 1;
    margin-right: 20px;
    font-weight: 500;
}

.qs-app-link-contextual .qs-app-link-button {
    padding: 10px 28px;
    font-size: 14px;
    background: #667eea;
    color: #ffffff;
}

.qs-app-link-contextual .qs-app-link-button:hover {
    background: #5a67d8;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .qs-app-link-container {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }
    
    .qs-app-link-message {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .qs-app-link-button {
        text-align: center;
        width: 100%;
    }
    
    .qs-app-link-contextual-inner {
        flex-direction: column;
        align-items: stretch;
    }
    
    .qs-app-link-contextual-inner p {
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .qs-app-link-contextual .qs-app-link-button {
        text-align: center;
        width: 100%;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .qs-app-link-container {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
        border-color: rgba(255,255,255,0.05);
    }
    
    .qs-app-link-message p {
        color: #e2e8f0;
    }
    
    .qs-app-link-contextual {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        border-left-color: #667eea;
    }
    
    .qs-app-link-contextual-inner p {
        color: #e2e8f0;
    }
    
    .qs-app-link-button {
        background: #667eea;
        color: #ffffff;
    }
    
    .qs-app-link-button:hover {
        background: #5a67d8;
        color: #ffffff;
    }
    
    .qs-app-link-contextual .qs-app-link-button {
        background: #667eea;
        color: #ffffff;
    }
    
    .qs-app-link-contextual .qs-app-link-button:hover {
        background: #5a67d8;
        color: #ffffff;
    }
}

/* Animation for new content */
.qs-app-link-container,
.qs-app-link-contextual {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}