/* 
 * HIPAA Compliance Services Ad Styles
 * File: ad-styles.css
 * Version: 1.0
 * Prefix: All classes use "ad-" prefix to avoid conflicts
 */

/* Main Ad Container */
.ad-hipaa-container {
    background-color: white;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 0;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ad-hipaa-container:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
    border-color: #2563eb;
}

/* Ad Label */
.ad-label {
    display: inline-block;
    background-color: #10b981;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Headlines Section */
.ad-headlines {
    margin-bottom: 0.75rem;
}

.ad-headline {
    color: #1e40af;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    display: block;
}

.ad-headline:hover {
    border-bottom-color: #2563eb;
    color: #1e40af;
}

.ad-headline:visited {
    color: #1e40af;
}

/* Ad Copy Text */
.ad-copy {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Call to Action Button */
.ad-cta {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
    font-family: inherit;
}

.ad-cta:hover {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.4);
}

.ad-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

/* Urgent Badge */
.ad-urgent-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    transform: rotate(15deg);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    animation: ad-pulse 2s infinite;
    z-index: 10;
}

@keyframes ad-pulse {
    0%, 100% { 
        transform: rotate(15deg) scale(1); 
    }
    50% { 
        transform: rotate(15deg) scale(1.05); 
    }
}

/* Trust Indicators */
.ad-trust-indicators {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.ad-trust-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ad-trust-icon {
    width: 12px;
    height: 12px;
    background-color: #10b981;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.ad-trust-icon::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 8px;
    font-weight: bold;
}

/* Loading State */
.ad-hipaa-container.ad-loading {
    opacity: 0.7;
    pointer-events: none;
}

.ad-hipaa-container.ad-loading .ad-cta {
    background: #9ca3af;
    cursor: not-allowed;
}

.ad-hipaa-container.ad-loading .ad-cta:hover {
    background: #9ca3af;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ad-hipaa-container {
        padding: 1rem;
    }
    
    .ad-headline {
        font-size: 1rem;
    }
    
    .ad-copy {
        font-size: 0.85rem;
    }
    
    .ad-trust-indicators {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .ad-urgent-badge {
        font-size: 0.65rem;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .ad-hipaa-container {
        padding: 0.875rem;
    }
    
    .ad-headline {
        font-size: 0.95rem;
    }
    
    .ad-copy {
        font-size: 0.8rem;
    }
    
    .ad-cta {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}