/* ============================================
   Site Detail Page Styles
   ============================================ */

.site-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 24px 48px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .sep {
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* Site Hero Card */
.site-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.site-hero-logo {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-hover);
}

.site-hero-info {
    flex: 1;
    min-width: 0;
}

.site-hero-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.site-hero-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 4px;
}

.site-hero-domain {
    font-size: 13px;
    color: var(--text-muted);
}

.site-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.btn-visit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-visit:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--bg-body);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-back:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Content Sections */
.site-section-content {
    margin-bottom: 28px;
}

.site-section-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-section-content h2 .section-emoji {
    font-size: 20px;
}

.site-section-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.site-section-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.site-section-content ul li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    padding: 4px 0 4px 20px;
    position: relative;
}

.site-section-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
}

/* Tags */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    padding: 5px 14px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.tag-item:hover {
    background: var(--primary);
    color: #fff;
}

/* Related Sites */
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.related-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    color: inherit;
}

.related-card img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-hover);
}

.related-card-info {
    min-width: 0;
    flex: 1;
}

.related-card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-card-desc {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Info Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.info-table tr {
    border-bottom: 1px solid var(--border-light);
}

.info-table td {
    padding: 10px 0;
    vertical-align: top;
}

.info-table td:first-child {
    width: 100px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.info-table td:last-child {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .site-hero {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .site-hero-actions {
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .site-detail {
        padding: 16px 16px 32px;
    }

    .site-hero-name {
        font-size: 20px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}
