/* Steam Community Page Styles */

/* Community Header */
.community-header {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.community-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: #66c0f4;
    margin-bottom: 20px;
}

.community-header p {
    font-size: 20px;
    color: #c7d5e0;
    max-width: 600px;
    margin: 0 auto;
}

/* Community Navigation */
.community-nav {
    background: #2a475e;
    border-bottom: 1px solid #316282;
    position: sticky;
    top: 80px;
    z-index: 100;
}

.community-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    overflow-x: auto;
}

.community-menu li a {
    display: block;
    padding: 20px 25px;
    color: #c7d5e0;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.community-menu li a:hover,
.community-menu li a.active {
    color: #66c0f4;
    background: #316282;
    border-bottom-color: #66c0f4;
}

/* Community Content Layout */
.community-content {
    padding: 40px 0;
    background: #1b2838;
}

.community-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* Community Main Content */
.community-main {
    background: #1b2838;
    border-radius: 8px;
}

/* Featured Discussions */
.featured-discussions {
    margin-bottom: 50px;
}

.featured-discussions h2 {
    color: #66c0f4;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2a475e;
}

.discussion-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.discussion-item {
    background: #2a475e;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.discussion-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.discussion-avatar {
    flex-shrink: 0;
}

.discussion-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.discussion-content {
    flex: 1;
    min-width: 0;
}

.discussion-content h3 {
    color: #c7d5e0;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.discussion-content p {
    color: #8f98a0;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.discussion-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
    color: #8f98a0;
}

.discussion-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.discussion-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.upvotes {
    background: #5c7e10;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* Community Highlights */
.community-highlights {
    margin-bottom: 50px;
}

.community-highlights h2 {
    color: #66c0f4;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2a475e;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.highlight-card {
    background: #2a475e;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.highlight-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.highlight-content {
    padding: 20px;
}

.highlight-content h3 {
    color: #c7d5e0;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.highlight-content p {
    color: #8f98a0;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.highlight-stats {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #8f98a0;
}

.highlight-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Trending Groups */
.trending-groups {
    margin-bottom: 50px;
}

.trending-groups h2 {
    color: #66c0f4;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2a475e;
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.group-card {
    background: #2a475e;
    border-radius: 8px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.group-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.group-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.group-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.group-info h3 {
    color: #c7d5e0;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.group-info p {
    color: #66c0f4;
    font-size: 14px;
    font-weight: 500;
}

.group-card p {
    color: #8f98a0;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.join-group {
    background: #5c7e10;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.join-group:hover {
    background: #6b8f12;
}

/* Community Sidebar */
.community-sidebar {
    background: #2a475e;
    border-radius: 8px;
    padding: 25px;
    position: sticky;
    top: 200px;
    height: fit-content;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 30px;
}

.quick-actions h3 {
    color: #66c0f4;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid #316282;
    padding-bottom: 8px;
}

.action-btn {
    width: 100%;
    background: #316282;
    color: #c7d5e0;
    border: none;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-btn:hover {
    background: #66c0f4;
    color: #1b2838;
    transform: translateY(-2px);
}

/* Community Stats */
.community-stats {
    margin-bottom: 30px;
}

.community-stats h3 {
    color: #66c0f4;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid #316282;
    padding-bottom: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #316282;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: #8f98a0;
    font-size: 14px;
}

.stat-value {
    color: #66c0f4;
    font-size: 18px;
    font-weight: 600;
}

/* Recent Activity */
.recent-activity {
    margin-bottom: 30px;
}

.recent-activity h3 {
    color: #66c0f4;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid #316282;
    padding-bottom: 8px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #316282;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    color: #66c0f4;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.activity-text {
    color: #c7d5e0;
    font-size: 13px;
    flex: 1;
    line-height: 1.4;
}

.activity-time {
    color: #8f98a0;
    font-size: 11px;
    white-space: nowrap;
}

/* Friends Section */
.friends-online {
    margin-bottom: 40px;
}

.friends-online h2 {
    color: #c7d5e0;
    margin-bottom: 20px;
    font-size: 24px;
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.friend-item {
    background: #2a475e;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.friend-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.friend-avatar {
    position: relative;
}

.friend-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #1b2838;
}

.status-indicator.online {
    background: #5c7e10;
}

.status-indicator.away {
    background: #c7d5e0;
}

.status-indicator.offline {
    background: #8f98a0;
}

.friend-info {
    flex: 1;
}

.friend-info h3 {
    color: #c7d5e0;
    margin: 0 0 5px 0;
    font-size: 16px;
}

.friend-status {
    color: #8f98a0;
    margin: 0;
    font-size: 14px;
}

.friend-actions {
    display: flex;
    gap: 10px;
}

.message-btn, .profile-btn {
    background: #316282;
    color: #c7d5e0;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.message-btn:hover, .profile-btn:hover {
    background: #66c0f4;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .community-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .community-sidebar {
        position: static;
        order: 2;
    }
    
    .community-main {
        order: 1;
    }
}

@media (max-width: 768px) {
    .community-header h1 {
        font-size: 36px;
    }
    
    .community-header p {
        font-size: 16px;
    }
    
    .community-menu {
        justify-content: flex-start;
        padding: 0 20px;
    }
    
    .community-menu li a {
        padding: 15px 20px;
        font-size: 13px;
    }
    
    .discussion-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .discussion-stats {
        align-self: flex-end;
    }
    
    .highlights-grid,
    .groups-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .community-header h1 {
        font-size: 28px;
    }
    
    .community-menu li a {
        padding: 12px 15px;
        font-size: 12px;
    }
    
    .discussion-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .highlight-stats {
        flex-direction: column;
        gap: 8px;
    }
}

/* Animations */
.discussion-item,
.highlight-card,
.group-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.discussion-item:nth-child(1) { animation-delay: 0.1s; }
.discussion-item:nth-child(2) { animation-delay: 0.2s; }
.discussion-item:nth-child(3) { animation-delay: 0.3s; }

.highlight-card:nth-child(1) { animation-delay: 0.4s; }
.highlight-card:nth-child(2) { animation-delay: 0.5s; }
.highlight-card:nth-child(3) { animation-delay: 0.6s; }

.group-card:nth-child(1) { animation-delay: 0.7s; }
.group-card:nth-child(2) { animation-delay: 0.8s; }
.group-card:nth-child(3) { animation-delay: 0.9s; }

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

/* Hover Effects */
.discussion-item:hover .discussion-content h3 {
    color: #66c0f4;
}

.highlight-card:hover .highlight-content h3 {
    color: #66c0f4;
}

.group-card:hover .group-info h3 {
    color: #66c0f4;
}

/* Loading States */
.community-main.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    color: #66c0f4;
    font-size: 24px;
}
