/* 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;
}

.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.5rem;
    left: 0.5rem;
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

/* NSFW Badge and Card Styling */
.nsfw-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 0 0 4px 0;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

/* Position NSFW badge to the right of New badge when both exist */
.server-card:has(.new-listing-badge) .nsfw-badge {
    left: 3.5rem;
    border-radius: 0 0 4px 0;
}

.nsfw-card {
    border: 1px solid rgba(220, 38, 38, 0.5) !important;
}

.nsfw-card:hover {
    border-color: rgba(220, 38, 38, 0.7) !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* 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-indicator-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 3;
    background: linear-gradient(135deg, #5865f2, #7289da);
    color: white;
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.4);
    display: flex;
    align-items: center;
}

.event-indicator-badge i {
    font-size: 0.7rem;
}

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

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

.metric-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.metric-item i {
    font-size: 1rem;
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.6);
}

.metric-content {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.metric-name {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* 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.5rem !important;
        padding: 0.25rem 0 !important;
        gap: 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.5rem !important;
    }
    
    .metric-item i {
        font-size: 0.85rem !important;
        margin-top: 0.1rem !important;
    }
    
    .metric-value {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
    }
    
    .metric-name {
        font-size: 0.62rem !important;
        white-space: nowrap !important;
    }
}

