/**
 * 版权声明模块样式
 * 与七夸主题设计风格保持一致的版权声明样式
 * 
 * @package PixelShare
 * @author 猫大大
 * @version 1.0.0
 * @since 2024
 */

/* 版权模块基础样式 */
.pixelshare-copyright-module {
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    /* 明确的间距设置，确保与周围模块有适当间隔 */
    margin: 24px 0 20px 0 !important;
}

/* 确保与标签模块有明确分离 */
.pixelshare-copyright-module + .article-tags,
.pixelshare-copyright-module + .tags,
.pixelshare-copyright-module + [class*="tag"],
.pixelshare-copyright-module + [class*="tags"] {
    margin-top: 16px !important;
}

/* 确保与下载模块有明确分离 */
.article-download + .pixelshare-copyright-module,
[class*="download"] + .pixelshare-copyright-module {
    margin-top: 20px !important;
}

/* 版权内容容器 */
.pixelshare-copyright-module .copyright-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 24px;
}

/* 版权图标样式 */
.pixelshare-copyright-module .copyright-icon {
    font-size: 16px;
    flex-shrink: 0;
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* 版权文本样式 */
.pixelshare-copyright-module .copyright-text {
    flex: 1;
    text-align: center;
    word-break: break-word;
    hyphens: auto;
}

/* 悬停效果 */
.pixelshare-copyright-module:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.pixelshare-copyright-module:hover .copyright-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* 深色模式适配 */
[data-theme="dark"] .pixelshare-copyright-module,
.dark-theme .pixelshare-copyright-module,
body.dark-theme .pixelshare-copyright-module,
html[data-theme="dark"] .pixelshare-copyright-module {
    background-color: var(--bg-muted-color, #1f2937) !important;
    border-color: var(--border-color-base, #374151) !important;
    color: var(--color-text-regular, #d1d5db) !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .pixelshare-copyright-module .copyright-icon,
.dark-theme .pixelshare-copyright-module .copyright-icon,
body.dark-theme .pixelshare-copyright-module .copyright-icon,
html[data-theme="dark"] .pixelshare-copyright-module .copyright-icon {
    color: var(--color-text-secondary, #9ca3af) !important;
}

/* 深色模式悬停效果 */
[data-theme="dark"] .pixelshare-copyright-module:hover,
.dark-theme .pixelshare-copyright-module:hover,
body.dark-theme .pixelshare-copyright-module:hover,
html[data-theme="dark"] .pixelshare-copyright-module:hover {
    background-color: var(--bg-hover-color, #111827) !important;
    border-color: var(--border-color-hover, #4b5563) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3) !important;
}

/* 深色模式链接样式 */
[data-theme="dark"] .pixelshare-copyright-module .copyright-text a,
.dark-theme .pixelshare-copyright-module .copyright-text a,
body.dark-theme .pixelshare-copyright-module .copyright-text a,
html[data-theme="dark"] .pixelshare-copyright-module .copyright-text a {
    color: var(--color-primary, #60a5fa) !important;
}

[data-theme="dark"] .pixelshare-copyright-module .copyright-text a:hover,
.dark-theme .pixelshare-copyright-module .copyright-text a:hover,
body.dark-theme .pixelshare-copyright-module .copyright-text a:hover,
html[data-theme="dark"] .pixelshare-copyright-module .copyright-text a:hover {
    color: var(--color-primary-hover, #93c5fd) !important;
}

/* 强制深色模式样式覆盖 */
.pixelshare-copyright-module.copyright-dark-theme {
    background-color: var(--bg-muted-color, #1f2937) !important;
    border-color: var(--border-color-base, #374151) !important;
    color: var(--color-text-regular, #d1d5db) !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2) !important;
}

.pixelshare-copyright-module.copyright-dark-theme .copyright-icon {
    color: var(--color-text-secondary, #9ca3af) !important;
}

.pixelshare-copyright-module.copyright-dark-theme:hover {
    background-color: var(--bg-hover-color, #111827) !important;
    border-color: var(--border-color-hover, #4b5563) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3) !important;
}

/* 系统深色模式支持 */
@media (prefers-color-scheme: dark) {
    .pixelshare-copyright-module:not(.copyright-dark-theme) {
        background-color: var(--bg-muted-color, #1f2937) !important;
        border-color: var(--border-color-base, #374151) !important;
        color: var(--color-text-regular, #d1d5db) !important;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2) !important;
    }
    
    .pixelshare-copyright-module:not(.copyright-dark-theme) .copyright-icon {
        color: var(--color-text-secondary, #9ca3af) !important;
    }
    
    .pixelshare-copyright-module:not(.copyright-dark-theme):hover {
        background-color: var(--bg-hover-color, #111827) !important;
        border-color: var(--border-color-hover, #4b5563) !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3) !important;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pixelshare-copyright-module {
        margin: 20px 16px 16px 16px !important;
        padding: 14px 16px !important;
    }
    
    .pixelshare-copyright-module .copyright-content {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    
    .pixelshare-copyright-module .copyright-icon {
        font-size: 14px;
    }
    
    .pixelshare-copyright-module .copyright-text {
        font-size: 13px !important;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .pixelshare-copyright-module {
        margin: 16px 12px 12px 12px !important;
        padding: 12px 14px !important;
    }
    
    .pixelshare-copyright-module .copyright-content {
        gap: 4px;
    }
    
    .pixelshare-copyright-module .copyright-text {
        font-size: 12px !important;
    }
}

/* 动画效果 */
.pixelshare-copyright-module {
    animation: copyrightFadeIn 0.5s ease-out;
}

@keyframes copyrightFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 悬停时的微动画 */
.pixelshare-copyright-module:hover .copyright-content {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

/* 图标旋转动画 */
.pixelshare-copyright-module:hover .copyright-icon {
    animation: iconRotate 0.6s ease-in-out;
}

@keyframes iconRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1.1);
    }
}

/* 文本链接样式 */
.pixelshare-copyright-module .copyright-text a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: all 0.3s ease;
}

.pixelshare-copyright-module .copyright-text a:hover {
    text-decoration-thickness: 2px;
    text-underline-offset: 1px;
}

/* 强调文本样式 */
.pixelshare-copyright-module .copyright-text strong {
    font-weight: 600;
    color: inherit;
}

.pixelshare-copyright-module .copyright-text em {
    font-style: italic;
    color: inherit;
}

/* 换行处理 */
.pixelshare-copyright-module .copyright-text br {
    display: block;
    content: "";
    margin: 4px 0;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .pixelshare-copyright-module {
        border-width: 2px;
        box-shadow: none;
    }
    
    .pixelshare-copyright-module .copyright-text a {
        text-decoration-thickness: 2px;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .pixelshare-copyright-module,
    .pixelshare-copyright-module * {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* 打印样式 */
@media print {
    .pixelshare-copyright-module {
        background: none !important;
        border: 1px solid #000 !important;
        color: #000 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    .pixelshare-copyright-module .copyright-icon {
        display: none;
    }
}

/* JavaScript增强样式 */
.copyright-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.copyright-hovered {
    background: linear-gradient(135deg, var(--bg-color, #F9FAFB) 0%, var(--bg-hover-color, #F3F4F6) 100%) !important;
}

.copyright-hovered .copyright-icon {
    transform: scale(1.2) rotate(5deg);
}

.icon-animated {
    animation: iconBounce 0.6s ease-in-out;
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* 波纹效果 */
.copyright-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

.ripple-active {
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 主题切换动画 */
.theme-transitioning {
    transition: all 0.3s ease !important;
}

.copyright-dark-theme {
    background-color: var(--bg-muted-color) !important;
    border-color: var(--border-color-base) !important;
    color: var(--color-text-regular) !important;
}

/* 响应式类 */
.copyright-mobile .copyright-content {
    flex-direction: column;
    gap: 6px;
}

.copyright-tablet .copyright-content {
    gap: 8px;
}

/* 视口可见性类 */
.copyright-in-viewport {
    animation-play-state: running;
}

.copyright-in-viewport:not(.copyright-visible) {
    animation-play-state: paused;
}

/* 动画增强类 */
.copyright-animated {
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.copyright-animated .copyright-icon {
    animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
} 