/* 圈圈詳情頁面樣式 */
.circle-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* 頁面標題樣式 - 參考 form.blade.php */
.page-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f7fafc;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.back-btn:hover {
    background: #edf2f7;
    color: #2d3748;
    transform: translateX(-2px);
}

.back-btn i {
    font-size: 1.1rem;
}

.page-header h1 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    flex: 1;
    text-align: center;
}

/* 標題區域樣式 - 模仿貼文內頁 */
.title-section {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.title-section h1 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
}

/* 圈圈統計資訊樣式 - 完全模仿貼文內頁的 view-stats */
.circle-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary, #718096);
}

.circle-meta i {
    font-size: 0.7rem;
    opacity: 0.7;
}

.circle-meta .member-count,
.circle-meta .post-count {
    font-weight: 500;
    color: var(--text-primary, #2d3748);
}

.circle-meta .member-label,
.circle-meta .post-label {
    opacity: 0.8;
}

.circle-meta .separator {
    opacity: 0.6;
    margin: 0 0.125rem;
}

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

/* 追蹤按鈕樣式 - 完全模仿貼文的收藏按鈕 */
.btn-circle-action {
    /* 基礎樣式 */
    color: #8e8e8e;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

/* 未收藏狀態 - 灰色 */
.btn-circle-action:not(.saved) {
    color: #8e8e8e;
}

.btn-circle-action:not(.saved) i {
    color: #8e8e8e;
}

/* 已收藏狀態 - 橙色 */
.btn-circle-action.saved {
    color: #E55555;
}

.btn-circle-action.saved i {
    color: #E55555;
}

/* Font Awesome 類別樣式覆蓋 - 確保顏色正確 */
.btn-circle-action i.far {
    color: #8e8e8e !important;
}

.btn-circle-action i.fas {
    color: #E55555 !important;
}

/* 懸停效果 */
.btn-circle-action:hover {
    transform: scale(1.1);
}

.btn-circle-action:not(.saved):hover {
    color: #E55555;
}

.btn-circle-action:not(.saved):hover i {
    color: #E55555;
}

/* 確保圖標顏色正確 */
.btn-circle-action i {
    transition: color 0.3s ease;
}

/* 載入狀態指示器 */
.loading-indicator {
    text-align: center;
    padding: 2rem 1rem;
    margin: 1rem 0;
}

.loading-spinner {
    margin-bottom: 1rem;
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--primary, #667eea);
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--text-secondary, #718096);
    font-size: 0.9rem;
}

/* 沒有更多資料提示 */
.no-more-data {
    text-align: center;
    padding: 2rem 1rem;
    margin: 1rem 0;
    color: var(--text-light, #a0aec0);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.no-more-icon {
    margin-bottom: 1rem;
}

.no-more-icon i {
    font-size: 2rem;
    color: var(--success, #48bb78);
}

/* Hover 效果 */
.no-more-data:hover {
    opacity: 1;
}

.no-more-text {
    font-size: 0.9rem;
}



/* 新載入貼文的動畫效果 */
.new-item-animation {
    animation: slideInUp 0.6s ease-out;
}

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

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 貼文區域樣式 - 與首頁保持一致 */
.posts-section {
    padding: 0 20px 20px;
}



.posts-section .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 20px 0;
}

.posts-section .empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
    color: #667eea;
}

.posts-section .empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #4a5568;
}

.posts-section .empty-state p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.posts-section .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.posts-section .btn-primary {
    background: #667eea;
    color: white;
}

.posts-section .btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}



/* 響應式設計 */
@media (max-width: 768px) {
    .circle-detail-container {
        padding: 0;
    }
    
    .page-header {
        padding: 12px 15px;
    }
    
    .page-header h1 {
        font-size: 1.1rem;
    }
    
    .posts-section {
        padding: 0 15px 15px;
    }
    
    .posts-section .section-title {
        font-size: 1.1rem;
    }
    
    .posts-section .empty-state {
        padding: 40px 15px;
        margin: 15px 0;
    }
    
    .posts-section .empty-state i {
        font-size: 2.5rem;
    }
    
    .posts-section .empty-state h3 {
        font-size: 1.1rem;
    }
}

/* 動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.circle-detail-container {
    animation: fadeInUp 0.5s ease-out;
}

.posts-section {
    animation: fadeInUp 0.7s ease-out;
} 