/* サーバーアイコンとタイトルのスタイル */
.server-title-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.server-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    flex-shrink: 0;
    object-fit: cover;
    background-color: #f0f0f0;
    border: 1px solid var(--divider);
}

/* アイコンが存在しない場合のスタイル */
.server-title-with-icon:has(.server-icon[style*="display: none"]) .server-title {
    margin-left: 0;
}

.server-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
    word-break: break-word;
}

.hr1 {
    border-top: 5px solid rgb(117, 117, 117);
    width: 100%;
    
  }
/* 注目のサーバーセクションのスタイル */
.featured-servers-section {
    border-radius: 15px;

    position: relative;
    overflow: hidden;
}

.featured-servers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
}

.featured-header {
    text-align: center;
    position: relative;
    z-index: 1;
}

.featured-title {
    font-size: 2.5rem;
    font-weight: 700;
    /* color: white; */
    margin: 0;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    letter-spacing: 2px;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* サーバーヘッダーの調整 */
.server-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 10px;
}

/* サーバー説明文のスタイル */
.server-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* グリッド表示での説明文の高さ制限 */
.servers-grid .server-description {
    max-height: 4.5em; /* 約3行分 */
    overflow: hidden;
}

/* リスト表示での説明文（高さ制限なし） */
.servers-list .server-description {
    max-height: none;
    overflow: visible;
}

/* サーバーアクションボタンのスタイル調整 */
.server-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.server-actions .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .featured-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .featured-servers-section {
        margin: 2rem 0;
        padding: 1.5rem 0;
    }
    
    /* セクション区切り線のモバイル対応 */
    .section-divider {
        margin: 2.5rem 0 2rem 0;
    }
    
    .section-divider-content {
        padding: 0 1rem;
        font-size: 0.85rem;
    }
    
    /* もっと見るボタンのモバイル対応 */
    .more-btn-overlay {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .more-servers-section {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .more-servers-title {
        font-size: 1.1rem;
    }
    
    .more-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .featured-title {
        font-size: 1.5rem;
        letter-spacing: 0.5px;
    }
    
    .featured-servers-section {
        margin: 1.5rem 0;
        padding: 1rem 0;
    }
    
    .server-title-with-icon {
        gap: 6px;
    }
    
    .server-icon {
        width: 20px;
        height: 20px;
    }
    
    .server-title {
        font-size: 1.1rem;
    }
    
    .server-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .server-actions .btn {
        width: 100%;
        font-size: 0.8rem;
    }
    
    /* セクション区切り線の小画面対応 */
    .section-divider {
        margin: 2rem 0 1.5rem 0;
    }
    
    .section-divider-content {
        padding: 0 0.8rem;
        font-size: 0.8rem;
    }
    
    /* もっと見るボタンの小画面対応 */
    .more-btn-overlay {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .more-servers-section {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .more-servers-title {
        font-size: 1rem;
    }
    
    .more-servers-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .more-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    /* フェードカードの小画面対応 */
    .fade-card {
        height: 280px;
    }
}

