/* Newsletter Success Message */
.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.success-message.active {
    opacity: 1;
    transform: translateY(0);
}

.success-message i {
    font-size: 3rem;
    color: var(--accent-color-1);
    margin-bottom: 1rem;
    animation: success-pulse 2s infinite;
}

.success-message p {
    color: var(--text-primary);
    font-size: 1.1rem;
}

@keyframes success-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Tooltip for better UI feedback */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--tertiary-bg);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

[data-tooltip]::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--tertiary-bg) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 101;
}

[data-tooltip]:hover::after,
[data-tooltip]:hover::before,
[data-tooltip]:focus::after,
[data-tooltip]:focus::before {
    opacity: 1;
    visibility: visible;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Focus Visible for Better Keyboard Navigation */
:focus-visible {
    outline: 2px solid var(--accent-color-1);
    outline-offset: 2px;
}

/* Color Contrast for Accessibility */
.light-theme .accent-text {
    color: #0051cc; /* Darker blue for better contrast in light mode */
}

/* Add smooth transitions for theme changes */
body {
    transition: background 0.3s ease, color 0.3s ease;
}

/* Enhanced form inputs */
input[type="email"],
input[type="text"],
textarea {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus {
    transform: translateY(-2px);
}
    
