/**
 * Email Protection Styles
 * Styling for protected email elements
 */

/* Protected email links */
.protected-email-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f0f0f0;
    border: 2px solid #1A1A1A;
    border-radius: 6px;
    text-decoration: none;
    color: #1A1A1A;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.protected-email-link:hover {
    background: #FFEB99;
    transform: translateY(-2px);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
}

.protected-email-link i {
    color: #FFCC00;
}

.email-text {
    font-size: 0.95rem;
}

/* Click to reveal button */
.reveal-email-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reveal-email-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.reveal-email-btn i {
    font-size: 1.1rem;
}

.email-display {
    margin-left: 10px;
}

.email-display a {
    color: #1A1A1A;
    text-decoration: none;
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 4px;
    border: 2px solid #1A1A1A;
}

.email-display a:hover {
    background: #FFEB99;
}

/* Contact form button */
.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #FFCC00;
    color: #1A1A1A;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    border: 3px solid #1A1A1A;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background: #1A1A1A;
    color: #FFEB99;
    transform: translateY(-3px);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.2);
}

/* Email links (after decoding) */
.email-link {
    color: #1A1A1A;
    text-decoration: none;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-block;
}

.email-link:hover {
    background: #FFEB99;
    transform: translateX(2px);
}

/* Image-based email (CSS fallback) */
.email-image {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    user-select: all;
}

.email-image span {
    display: inline-block;
}

/* Noscript fallback styling */
noscript {
    color: #666;
    font-style: italic;
}

/* Loading state */
.protected-email:empty::before,
.cf-protected-email:empty::before,
.rot13-email:empty::before {
    content: 'Loading...';
    color: #999;
    font-style: italic;
}

/* Accessibility improvements */
.protected-email-link:focus,
.reveal-email-btn:focus,
.email-link:focus {
    outline: 3px solid #FFCC00;
    outline-offset: 2px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .protected-email-link {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }
    
    .reveal-email-btn {
        width: 100%;
        justify-content: center;
    }
    
    .contact-button {
        width: 100%;
        justify-content: center;
    }
}

/* Anti-bot honeypot hiding (extra security) */
input[name="email_verify"],
input[tabindex="-1"][autocomplete="off"] {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
