/* Server Card Component Styles */
.server-card {
    background: #0c1116;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    max-height: 600px;
    height: 600px;
}

.server-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.server-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.server-name {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff !important;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

/* Animated premium star next to server name */
.premium-star {
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 0.9rem;
    animation: starPulse 2s ease-in-out infinite;
    vertical-align: middle;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.6));
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.9; }
}

.server-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.server-meta i {
    font-size: 0.6rem;
    margin-right: 0.3rem;
}

.tags-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem 0.2rem;
    margin-bottom: 0.25rem;
    flex-direction: row;
}

.tag {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 0.68rem;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    background: #1a1d21;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tag.primary-category {
    background: #7d19ff;
    color: white;
    font-weight: 600;
    border: 1px solid rgba(125, 25, 255, 0.3);
}

.tag.more {
    background: #1e1e1e;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.68rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: default;
}

/* Content Area Wrapper */
.server-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Description styles */
.server-description {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
    min-height: 0;
    overflow: hidden;
}

.description-scrollable {
    flex: 1;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    overflow-y: auto;
    padding-right: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.description-scrollable::-webkit-scrollbar {
    width: 6px;
}

.description-scrollable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.description-scrollable::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.description-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.server-actions {
    margin-top: 0.5rem;
}

.btn-sm {
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
}

.featured-card {
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.featured-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #7d19ff;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

.new-listing-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 0 0 6px 0;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

/* NSFW cards use same styling as regular cards - NSFW shown as inline tag */
.nsfw-card {
    /* No special border styling */
}

/* Server Language Indicator */
.server-language {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    font-weight: 500;
}

.server-language i {
    font-size: 0.6rem;
    color: rgba(125, 25, 255, 0.8);
}

.notification-tab {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.notification-tab.scheduled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.notification-tab.ongoing {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.notification-tab.likes {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

/* Event tag - inline style within tags container */
.tag.event-tag {
    background: linear-gradient(135deg, #5865f2, #7289da);
    color: white;
    font-weight: 600;
    border: none;
}

.tag.event-tag i {
    font-size: 0.6rem;
}

/* NSFW tag - red style, first in tags */
.tag.nsfw-tag {
    background: #dc2626;
    color: white;
    font-weight: 700;
    border: none;
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
}

/* 18+ badge on join button for NSFW servers */
.nsfw-join-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.3rem;
    border-radius: 3px;
    line-height: 1;
}

.collab-btn.liked,
.collab-btn.scheduled,
.collab-btn.ongoing {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Activity Metrics Styles - Compact layout */
.server-metrics {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    background: transparent;
    border-radius: 0;
    padding: 0.1rem 0 0.35rem 0;
    margin-top: 0.15rem;
    margin-left: 0;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.metric-item i {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.metric-content {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.3rem;
}

.metric-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    line-height: 1;
}

.metric-name {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

/* Social Links */
.social-links-top {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.social-link-top {
    color: rgba(255,255,255,0.6);
    background: none;
    border: none;
    font-size: 1rem;
    padding: 0.2rem;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
}

.social-link-top:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.social-link-top i {
    font-size: 1.1rem;
    vertical-align: middle;
}

/* Clickable card styles */
.clickable-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

/* Preview disabled styles */
.preview-disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.social-link-top.preview-disabled {
    color: rgba(255,255,255,0.4) !important;
    background: none !important;
}

.btn.preview-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Lazy loading styles */
.lazy-load {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Card banner styles */
.card-banner {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .server-card {
        height: 500px;
        max-height: 500px;
    }
    
    .server-card .card-body {
        padding: 0.75rem !important;
    }
    
    .server-header {
        margin-bottom: 0.5rem !important;
    }
    
    .server-metrics {
        margin-bottom: 0.35rem !important;
        padding: 0.15rem 0 !important;
        gap: 0.5rem 1rem !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
    }
    
    .tags-container {
        margin-bottom: 0.5rem !important;
        gap: 0.1rem 0.15rem !important;
    }
    
    .server-description {
        margin-bottom: 0.5rem !important;
    }
    
    .server-actions {
        margin-top: 0.5rem !important;
        gap: 0.5rem !important;
    }
    
    .server-name {
        font-size: 0.9rem !important;
        margin-bottom: 0.1rem !important;
    }
    
    .server-icon {
        width: 36px !important;
        height: 36px !important;
    }
    
    .tag {
        font-size: 0.6rem !important;
        padding: 0.1rem 0.3rem !important;
    }
    
    .description-scrollable {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.75rem !important;
    }
    
    .metric-item {
        gap: 0.35rem !important;
    }
    
    .metric-item i {
        font-size: 0.7rem !important;
    }
    
    .metric-value {
        font-size: 0.8rem !important;
        font-weight: 600 !important;
    }
    
    .metric-name {
        font-size: 0.6rem !important;
        white-space: nowrap !important;
    }
}

/* ============================================
   PREMIUM CARD STYLES
   Theme-aware styling for premium servers
   ============================================ */

/* Premium Card Base - Bold gradient background */
.premium-card {
    background: linear-gradient(
        135deg, 
        color-mix(in srgb, var(--card-primary, #7d19ff) 25%, #0c1116) 0%,
        color-mix(in srgb, var(--card-secondary, #F4CA81) 18%, #0c1116) 100%
    ) !important;
    border-radius: var(--card-border-radius, 12px);
    box-shadow: 0 0 30px color-mix(in srgb, var(--card-primary, #7d19ff) 35%, transparent);
    overflow: hidden;
}

.premium-card:hover {
    border-color: var(--card-primary, #7d19ff) !important;
    box-shadow: 
        0 0 45px color-mix(in srgb, var(--card-primary, #7d19ff) 45%, transparent),
        0 8px 25px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

/* Glass Effect - Glassmorphism style */
.premium-card[data-card-style="glass"] {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--card-primary, #7d19ff) 20%, rgba(12, 17, 22, 0.85)) 0%,
        color-mix(in srgb, var(--card-secondary, #F4CA81) 15%, rgba(12, 17, 22, 0.85)) 100%
    ) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid color-mix(in srgb, var(--card-primary, #7d19ff) 40%, transparent) !important;
}

/* Neumorphism Effect - Soft embossed look */
.premium-card[data-card-style="neumorphism"] {
    background: color-mix(in srgb, var(--card-primary, #7d19ff) 8%, #0c1116) !important;
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.5),
        -4px -4px 12px color-mix(in srgb, var(--card-primary, #7d19ff) 15%, transparent);
    border: none !important;
}

.premium-card[data-card-style="neumorphism"]:hover {
    box-shadow: 
        10px 10px 20px rgba(0, 0, 0, 0.6),
        -6px -6px 16px color-mix(in srgb, var(--card-primary, #7d19ff) 20%, transparent);
}

/* Sharp Style - No border radius */
.premium-card[data-card-style="sharp"] {
    border-radius: 0 !important;
}

.premium-card[data-card-style="sharp"] .card-banner {
    border-radius: 0 !important;
}

/* Neon Glow Shadow */
.premium-card[data-card-shadow="neon"] {
    box-shadow: 
        0 0 20px color-mix(in srgb, var(--card-primary, #7d19ff) 50%, transparent),
        0 0 40px color-mix(in srgb, var(--card-primary, #7d19ff) 30%, transparent),
        inset 0 0 30px color-mix(in srgb, var(--card-primary, #7d19ff) 8%, transparent);
}

.premium-card[data-card-shadow="neon"]:hover {
    box-shadow: 
        0 0 30px color-mix(in srgb, var(--card-primary, #7d19ff) 60%, transparent),
        0 0 60px color-mix(in srgb, var(--card-primary, #7d19ff) 40%, transparent),
        inset 0 0 40px color-mix(in srgb, var(--card-primary, #7d19ff) 10%, transparent);
}

/* Strong Shadow */
.premium-card[data-card-shadow="strong"] {
    box-shadow: 
        0 0 30px color-mix(in srgb, var(--card-primary, #7d19ff) 30%, transparent),
        0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Subtle Shadow */
.premium-card[data-card-shadow="subtle"] {
    box-shadow: 
        0 0 15px color-mix(in srgb, var(--card-primary, #7d19ff) 15%, transparent),
        0 4px 12px rgba(0, 0, 0, 0.3);
}

/* No Shadow */
.premium-card[data-card-shadow="none"] {
    box-shadow: none;
}

/* Primary Category Tag Uses Theme Color */
.premium-card .tag.primary-category {
    background: var(--card-primary, #7d19ff) !important;
    border-color: color-mix(in srgb, var(--card-primary, #7d19ff) 60%, transparent) !important;
}

/* Premium Card Banner with Theme Tint Overlay */
.premium-card .card-banner {
    position: relative;
}

.premium-card .card-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 40%,
        color-mix(in srgb, var(--card-primary, #7d19ff) 40%, transparent) 100%
    );
    pointer-events: none;
    border-radius: 12px 12px 0 0;
}

/* Adjust banner overlay for sharp style */
.premium-card[data-card-style="sharp"] .card-banner::after {
    border-radius: 0;
}

/* Premium Card Icon Border */
.premium-card .server-icon {
    border-color: color-mix(in srgb, var(--card-primary, #7d19ff) 50%, transparent) !important;
}

/* Premium Card Metric Icons */
.premium-card .metric-item i {
    color: var(--card-primary, #7d19ff);
}

/* Premium Card Server Name Subtle Glow */
.premium-card .server-name {
    text-shadow: 0 0 20px color-mix(in srgb, var(--card-primary, #7d19ff) 30%, transparent);
}

/* Premium Card Action Buttons */
.premium-card .btn-primary,
.premium-card .btn-outline-primary {
    border-color: var(--card-primary, #7d19ff);
    background: var(--card-primary, #7d19ff);
}

.premium-card .btn-outline-primary {
    background: transparent;
    color: var(--card-primary, #7d19ff);
}

.premium-card .btn-outline-primary:hover {
    background: var(--card-primary, #7d19ff);
    color: white;
}

/* Premium Card Join Button Animation - Shimmer effect */
.premium-card .join-server-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        90deg,
        var(--card-primary, #7d19ff) 0%,
        color-mix(in srgb, var(--card-primary, #7d19ff) 80%, var(--card-secondary, #F4CA81)) 50%,
        var(--card-primary, #7d19ff) 100%
    );
    background-size: 200% 100%;
    animation: premiumButtonShimmer 3s ease-in-out infinite;
    border: none;
    box-shadow: 0 0 15px color-mix(in srgb, var(--card-primary, #7d19ff) 40%, transparent);
}

.premium-card .join-server-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: premiumButtonShine 3s ease-in-out infinite;
}

.premium-card .join-server-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px color-mix(in srgb, var(--card-primary, #7d19ff) 60%, transparent);
}

@keyframes premiumButtonShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes premiumButtonShine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}


