/**
 * Copyright & Dynamic Date Widget
 * 7 Premium Skins for Legal Footer Sections
 *
 * @package Bith_Core
 * @since 1.0.0
 */

/* ============================================
   BASE STYLES
   ============================================ */
.bith-copyright-date {
    width: 100%;
    font-family: var(--bith-widget-font-primary);
}

.bith-copyright-date__container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--bith-widget-space-5);
}

.bith-copyright-date__text {
    font-size: var(--bith-widget-text-sm);
    color: var(--bith-widget-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.bith-copyright-date a {
    color: var(--bith-widget-primary);
    text-decoration: none;
    transition: color var(--bith-widget-transition-fast);
}

.bith-copyright-date a:hover {
    color: var(--bith-widget-primary-hover);
}

/* ============================================
   SKIN 1: Standard Centered
   ============================================ */
.bith-copyright-date--skin-1 .bith-copyright-date__container {
    text-align: center;
}

.bith-copyright-date--skin-1 .bith-copyright-date__text {
    letter-spacing: 0.02em;
    transition: color var(--bith-widget-transition-normal);
}

.bith-copyright-date--skin-1 .bith-copyright-date__text:hover {
    color: var(--bith-widget-text-heading);
}

/* ============================================
   SKIN 2: Split Layout (Flex)
   ============================================ */
.bith-copyright-date--skin-2 .bith-copyright-date__container--split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--bith-widget-space-4);
}

.bith-copyright-date__legal-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.bith-copyright-date__link {
    font-size: var(--bith-widget-text-xs);
    color: var(--bith-widget-text-secondary);
    padding: var(--bith-widget-space-1) var(--bith-widget-space-3);
    transition: color var(--bith-widget-transition-fast);
}

.bith-copyright-date__link:hover {
    color: var(--bith-widget-primary);
}

.bith-copyright-date__separator {
    width: 1px;
    height: 14px;
    background: var(--bith-widget-border);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .bith-copyright-date--skin-2 .bith-copyright-date__container--split {
        flex-direction: column;
        text-align: center;
    }

    .bith-copyright-date__legal-nav {
        justify-content: center;
    }
}

/* ============================================
   SKIN 3: With Payment Badges
   ============================================ */
.bith-copyright-date--skin-3 .bith-copyright-date__container--payment {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--bith-widget-space-5);
}

.bith-copyright-date__payment-badges {
    display: flex;
    align-items: center;
    gap: var(--bith-widget-space-3);
    flex-wrap: wrap;
}

.bith-copyright-date__payment-icon {
    width: 48px;
    height: 32px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--bith-widget-transition-normal);
    border-radius: 4px;
    object-fit: contain;
}

.bith-copyright-date__payment-icon:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-2px);
}

.bith-copyright-date__payment-icon--custom {
    max-height: 32px;
    width: auto;
}

@media (max-width: 640px) {
    .bith-copyright-date--skin-3 .bith-copyright-date__container--payment {
        flex-direction: column;
        text-align: center;
    }

    .bith-copyright-date__payment-badges {
        justify-content: center;
    }
}

/* ============================================
   SKIN 4: Made with Love
   ============================================ */
.bith-copyright-date--skin-4 .bith-copyright-date__container--love {
    text-align: center;
}

.bith-copyright-date--skin-4 .bith-copyright-date__text {
    margin-bottom: var(--bith-widget-space-2);
}

.bith-copyright-date__made-with {
    font-size: var(--bith-widget-text-sm);
    color: var(--bith-widget-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
}

.bith-copyright-date__heart {
    display: inline-flex;
    color: #ef4444;
    animation: bith-heartbeat 1.2s ease-in-out infinite;
}

.bith-copyright-date__heart svg {
    width: 16px;
    height: 16px;
}

@keyframes bith-heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.15);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.15);
    }

    70% {
        transform: scale(1);
    }
}

.bith-copyright-date__author-link {
    color: var(--bith-widget-primary);
    font-weight: var(--bith-widget-font-medium);
    position: relative;
}

.bith-copyright-date__author-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--bith-widget-primary);
    transition: width var(--bith-widget-transition-normal);
}

.bith-copyright-date__author-link:hover::after {
    width: 100%;
}

/* ============================================
   SKIN 5: Dynamic Range
   ============================================ */
.bith-copyright-date--skin-5 .bith-copyright-date__container--range {
    text-align: center;
}

.bith-copyright-date--skin-5 .bith-copyright-date__text {
    margin-bottom: var(--bith-widget-space-1);
}

.bith-copyright-date__year-range {
    font-weight: var(--bith-widget-font-semibold);
    color: var(--bith-widget-text-heading);
    position: relative;
}

.bith-copyright-date__year-range::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--bith-widget-primary), var(--bith-widget-secondary));
    border-radius: 1px;
}

.bith-copyright-date__tagline {
    font-size: var(--bith-widget-text-xs);
    color: var(--bith-widget-text-muted);
    font-style: italic;
    margin: var(--bith-widget-space-1) 0 0;
}

/* ============================================
   SKIN 6: Social Footer
   ============================================ */
.bith-copyright-date--skin-6 .bith-copyright-date__container--social {
    text-align: center;
}

.bith-copyright-date--skin-6 .bith-copyright-date__text {
    margin-bottom: var(--bith-widget-space-5);
}

.bith-copyright-date__social-icons {
    display: flex;
    justify-content: center;
    gap: var(--bith-widget-space-3);
    flex-wrap: wrap;
}

.bith-copyright-date__social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bith-widget-surface);
    color: var(--bith-widget-text-secondary);
    text-decoration: none;
    box-shadow: var(--bith-widget-shadow-sm);
    transition: all var(--bith-widget-transition-bounce);
    border: 1px solid var(--bith-widget-border);
}

.bith-copyright-date__social-icon svg,
.bith-copyright-date__social-icon i {
    width: 18px;
    height: 18px;
    font-size: 18px;
    transition: transform var(--bith-widget-transition-bounce);
}

.bith-copyright-date__social-icon:hover {
    background: var(--bith-widget-primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px -4px rgba(79, 209, 197, 0.4);
    border-color: var(--bith-widget-primary);
}

.bith-copyright-date__social-icon:hover svg,
.bith-copyright-date__social-icon:hover i {
    transform: scale(1.1);
}

/* Social network specific hover colors */
.bith-copyright-date__social-icon--facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 8px 20px -4px rgba(24, 119, 242, 0.4);
}

.bith-copyright-date__social-icon--twitter:hover {
    background: #000;
    border-color: #000;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.4);
}

.bith-copyright-date__social-icon--instagram:hover {
    background: linear-gradient(135deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
    border-color: #dc2743;
    box-shadow: 0 8px 20px -4px rgba(220, 39, 67, 0.4);
}

.bith-copyright-date__social-icon--linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
    box-shadow: 0 8px 20px -4px rgba(10, 102, 194, 0.4);
}

.bith-copyright-date__social-icon--youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 8px 20px -4px rgba(255, 0, 0, 0.4);
}

.bith-copyright-date__social-icon--tiktok:hover {
    background: #000;
    border-color: #000;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.4);
}

.bith-copyright-date__social-icon--pinterest:hover {
    background: #e60023;
    border-color: #e60023;
    box-shadow: 0 8px 20px -4px rgba(230, 0, 35, 0.4);
}

.bith-copyright-date__social-icon--whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    box-shadow: 0 8px 20px -4px rgba(37, 211, 102, 0.4);
}

.bith-copyright-date__social-icon--telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
    box-shadow: 0 8px 20px -4px rgba(0, 136, 204, 0.4);
}

/* Custom social icon hover - uses CSS variable */
.bith-copyright-date__social-icon--custom:hover {
    background: var(--custom-hover-color, #6366F1);
    border-color: var(--custom-hover-color, #6366F1);
    box-shadow: 0 8px 20px -4px color-mix(in srgb, var(--custom-hover-color, #6366F1) 40%, transparent);
}

/* ============================================
   SKIN 7: Neumorphic Bar
   ============================================ */
.bith-copyright-date--skin-7 .bith-copyright-date__container--neumorphic {
    display: flex;
    justify-content: center;
}

.bith-copyright-date__neumorphic-bar {
    background: #e8ecef;
    border-radius: var(--bith-widget-radius-xl);
    padding: var(--bith-widget-space-4) var(--bith-widget-space-10);
    box-shadow: inset 6px 6px 12px #d1d5db, inset -6px -6px 12px #ffffff;
    transition: box-shadow var(--bith-widget-transition-slow);
}

.bith-copyright-date__neumorphic-bar:hover {
    box-shadow: 8px 8px 16px #d1d5db, -8px -8px 16px #ffffff;
}

.bith-copyright-date--skin-7 .bith-copyright-date__text {
    color: #64748b;
    font-weight: var(--bith-widget-font-medium);
    text-align: center;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    .bith-copyright-date *,
    .bith-copyright-date *::before,
    .bith-copyright-date *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.bith-copyright-date a:focus-visible {
    outline: 2px solid var(--bith-widget-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-contrast: high) {
    .bith-copyright-date__text {
        color: #1a1a1a;
    }

    .bith-copyright-date__link,
    .bith-copyright-date__author-link {
        text-decoration: underline;
    }
}