/* 
 * HIPAA Compliance Services Ad Styles
 * File: ad-styles.css
 * Version: 1.1
 * 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 for Live Training Ad */
@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;
    }
}

/* ==========================================================================
   Cybersecurity Awareness Training Ad - Dark Cyber Style (Pattern: Binary)
   ========================================================================== */

/* Dark Card Base */
.cyber-ad-dark {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cyber-ad-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.4);
}

/* Binary Pattern Overlay */
.cyber-ad-dark.pattern-binary::before {
    content: '01001101 01100001 01110100 01110010 01101001 01111000 00100000 01001101 01100001 01110100 01110010 01101001 01111000 00101101 00101101 01001101 01100001 01110100 01110010 01101001 01111000';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.6;
    color: rgba(16, 185, 129, 0.06);
    word-break: break-all;
    overflow: hidden;
    padding: 8px;
    pointer-events: none;
}

/* Top Row: Shield + Label */
.cyber-ad-dark .cyber-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.cyber-ad-dark .cyber-shield {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cyber-ad-dark .cyber-shield svg {
    width: 32px;
    height: 32px;
    fill: #10b981;
}

.cyber-ad-dark .cyber-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #10b981;
}

/* Title */
.cyber-ad-dark .cyber-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    color: white;
}

/* Description */
.cyber-ad-dark .cyber-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #94a3b8;
    margin: 0 0 16px 0;
    position: relative;
    z-index: 1;
}

.cyber-ad-dark .cert-note {
    color: #34d399;
    font-weight: 600;
}

/* CTA Button */
.cyber-ad-dark .cyber-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #10b981;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.cyber-ad-dark .cyber-btn:hover {
    background: #34d399;
    gap: 10px;
    text-decoration: none;
    color: #0f172a;
}

.cyber-ad-dark .cyber-btn-arrow {
    transition: transform 0.2s ease;
}

.cyber-ad-dark .cyber-btn:hover .cyber-btn-arrow {
    transform: translateX(3px);
}

/* Cybersecurity Ad Responsive */
@media (max-width: 768px) {
    .cyber-ad-dark {
        padding: 1.25rem;
    }

    .cyber-ad-dark .cyber-shield {
        width: 36px;
        height: 36px;
    }

    .cyber-ad-dark .cyber-shield svg {
        width: 28px;
        height: 28px;
    }

    .cyber-ad-dark .cyber-title {
        font-size: 1rem;
    }

    .cyber-ad-dark .cyber-desc {
        font-size: 0.8rem;
    }

    .cyber-ad-dark .cyber-btn {
        padding: 9px 16px;
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .cyber-ad-dark {
        padding: 1rem;
    }

    .cyber-ad-dark .cyber-shield {
        width: 32px;
        height: 32px;
    }

    .cyber-ad-dark .cyber-shield svg {
        width: 24px;
        height: 24px;
    }

    .cyber-ad-dark .cyber-title {
        font-size: 0.95rem;
    }

    .cyber-ad-dark .cyber-desc {
        font-size: 0.78rem;
        margin-bottom: 14px;
    }

    .cyber-ad-dark .cyber-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}
