/* Author Social Links Plugin Styles */

.author-social-links-container {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.author-name-section {
    margin-bottom: 15px;
}

.author-name {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    font-weight: 600;
}

.author-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-name a:hover {
    color: #007cba;
    text-decoration: underline;
}

/* BuddyPress活跃时间样式 */
.author-last-activity {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.activity-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #28a745;
    display: inline-block;
    animation: pulse 2s infinite;
}

.author-last-activity.inactive .activity-indicator {
    background-color: #6c757d;
    animation: none;
}

.activity-text {
    font-weight: 500;
}

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

.social-links-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
}

.social-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
}

/* SVG图标特殊处理 */
.social-icon[src$=".svg"] {
    filter: none;
    transition: filter 0.3s ease;
}

/* 悬停时的SVG图标效果 */
.onlyfans-link:hover .social-icon[src$=".svg"] {
    filter: brightness(0) invert(1);
}

.fansly-link:hover .social-icon[src$=".svg"] {
    filter: brightness(0) invert(1);
}

.social-text {
    font-weight: 500;
    font-size: 14px;
}

/* OnlyFans specific styling */
.onlyfans-link {
    border-color: #00AFF0;
    color: #00AFF0;
}

.onlyfans-link:hover {
    background: #00AFF0;
    color: white;
    border-color: #00AFF0;
}

/* Fansly specific styling */
.fansly-link {
    border-color: #FF6B6B;
    color: #FF6B6B;
}

.fansly-link:hover {
    background: #FF6B6B;
    color: white;
    border-color: #FF6B6B;
}

/* Style variations */

/* Minimal style */
.author-social-links-container.minimal {
    background: transparent;
    border: none;
    padding: 10px 0;
}

.minimal .social-link {
    background: transparent;
    border: 1px solid #ddd;
    padding: 8px 12px;
    box-shadow: none;
}

.minimal .social-link:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Card style */
.author-social-links-container.card {
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: none;
    padding: 20px;
}

.card .author-name {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.card .social-links-wrapper {
    justify-content: center;
}

/* Inline style */
.author-social-links-container.inline {
    background: transparent;
    border: none;
    padding: 5px 0;
}

.inline .author-name-section {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 0;
}

.inline .author-name {
    margin: 0;
    font-size: 1em;
}

.inline .social-links-wrapper {
    display: inline-flex;
    gap: 10px;
}

.inline .social-link {
    padding: 5px 10px;
    border-radius: 15px;
}

/* Size variations */

/* Small size */
.size-small .social-icon {
    width: 18px;
    height: 18px;
}

.size-small .social-text {
    font-size: 12px;
}

.size-small .social-link {
    padding: 6px 10px;
    gap: 6px;
}

.size-small .author-name {
    font-size: 1em;
}

.size-small .author-last-activity {
    font-size: 10px;
}

.size-small .activity-indicator {
    width: 6px;
    height: 6px;
}

/* Medium size (default) */
.size-medium .social-icon {
    width: 24px;
    height: 24px;
}

.size-medium .social-text {
    font-size: 14px;
}

.size-medium .social-link {
    padding: 10px 15px;
    gap: 8px;
}

/* Large size */
.size-large .social-icon {
    width: 32px;
    height: 32px;
}

.size-large .social-text {
    font-size: 16px;
}

.size-large .social-link {
    padding: 12px 18px;
    gap: 12px;
}

.size-large .author-name {
    font-size: 1.4em;
}

.size-large .author-last-activity {
    font-size: 14px;
}

.size-large .activity-indicator {
    width: 10px;
    height: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
    .social-links-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .social-link {
        justify-content: center;
        text-align: center;
    }
    
    .inline .social-links-wrapper {
        flex-direction: row;
        align-items: center;
    }
    
    .inline .author-name-section {
        display: block;
        margin-bottom: 10px;
        margin-right: 0;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .author-social-links-container {
        background: #0D0E19;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .author-name a {
        color: #e2e8f0;
    }
    
    .author-name a:hover {
        color: #63b3ed;
    }
    
    .social-link {
        background: #4a5568;
        color: #e2e8f0;
    }
    
    .minimal .social-link {
        background: transparent;
        border-color: #4a5568;
    }
    
    .card {
        background: #0D0E19;
    }
}

/* Animation for loading */
.author-social-links-container {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility improvements */
.social-link:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* DMCA版权提示样式 */
.dmca-notice {
    margin-top: 15px;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
}

.dmca-text {
    margin: 0;
    color: #6c757d;
    text-align: center;
}

.dmca-text a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.dmca-text a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* 不同样式下的DMCA提示适配 */
.author-social-links-container.minimal .dmca-notice {
    background-color: transparent;
    border: 1px solid #e0e0e0;
    padding: 10px;
}

.author-social-links-container.card .dmca-notice {
    margin-top: 20px;
    border-radius: 8px;
}

.author-social-links-container.inline .dmca-notice {
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 11px;
}

/* DMCA提示响应式设计 */
@media (max-width: 768px) {
    .dmca-notice {
        padding: 10px 12px;
        font-size: 11px;
    }
    
    .dmca-text {
        line-height: 1.3;
    }
}

/* DMCA提示深色模式支持 */
@media (prefers-color-scheme: dark) {
    .dmca-notice {
        background-color: #3c3c3c;
        border-color: #555555;
    }
    
    .dmca-text {
        color: #b0b0b0;
    }
    
    .dmca-text a {
        color: #66b3ff;
    }
    
    .dmca-text a:hover {
        color: #4da6ff;
    }
    
    /* BuddyPress活跃时间深色模式 */
    .author-last-activity {
        color: #b0b0b0;
    }
    
    .author-last-activity.inactive {
        color: #888;
    }
}

.social-link:focus:not(:focus-visible) {
    outline: none;
}

/* Print styles */
@media print {
    .author-social-links-container {
        background: transparent !important;
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
    
    .social-link {
        background: transparent !important;
        border: 1px solid #000 !important;
        color: #000 !important;
    }
    
    .social-link:after {
        content: " (" attr(href) ")";
        font-size: 12px;
    }
}
