/* tag.php */

.tag-page {
    max-width: 920px;
    margin: 28px auto 64px;
    padding: 0 16px;
}

.tag-hero {
    margin-bottom: 24px;
    padding: 22px 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.12), rgba(188, 19, 254, 0.08));
    border: 1px solid rgba(124, 77, 255, 0.18);
}

.tag-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.tag-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 3vw, 1.95rem);
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.tag-hero p {
    margin: 0;
    color: #b4b4be;
    line-height: 1.55;
    max-width: 640px;
}

.tag-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #ece7f5;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.tag-btn.primary {
    border-color: rgba(188, 19, 254, 0.35);
    background: linear-gradient(135deg, rgba(188, 19, 254, 0.28), rgba(124, 77, 255, 0.18));
    color: #fff;
}

.tag-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 12px;
    color: #8f849f;
}

.tag-breadcrumb a {
    color: #c9b8e8;
    text-decoration: none;
    font-weight: 700;
}

.tag-breadcrumb a:hover {
    color: #fff;
}

.tag-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(124, 77, 255, 0.14);
    border: 1px solid rgba(124, 77, 255, 0.28);
    color: #d8c4ff;
    font-weight: 800;
    font-size: 13px;
}

.tag-count-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.22);
    color: #b8ffd8;
    font-size: 12px;
    font-weight: 800;
}

.tag-section-title {
    margin: 0 0 14px;
    font-size: 1.05rem;
    color: #fff;
    font-weight: 900;
}

.tag-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.tag-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #d4c4e8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.tag-tab:hover {
    border-color: rgba(188, 19, 254, 0.35);
    background: rgba(188, 19, 254, 0.08);
}

.tag-tab.is-active {
    border-color: rgba(188, 19, 254, 0.55);
    background: linear-gradient(145deg, rgba(188, 19, 254, 0.28), rgba(124, 77, 255, 0.16));
    color: #fff;
}

.tag-tab-count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
}

.tag-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tag-row {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    background: #1a1a1f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tag-row:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 77, 255, 0.35);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.tag-row img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tag-row-body {
    min-width: 0;
}

.tag-row h3 {
    margin: 0 0 4px;
    font-size: 17px;
    color: #fff;
    line-height: 1.25;
}

.tag-row-seek {
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 800;
    color: #bc13fe;
}

.tag-row-desc {
    font-size: 13px;
    color: #9494a3;
    line-height: 1.45;
}

.tag-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    font-size: 12px;
    color: #9494a3;
}

.tag-row-meta i {
    margin-right: 4px;
    color: #7c4dff;
}

.tag-row.woman {
    border-left: 3px solid rgba(255, 105, 180, 0.55);
}

.tag-row.man {
    border-left: 3px solid rgba(96, 165, 250, 0.55);
}

.tag-row.couple {
    border-left: 3px solid rgba(167, 139, 250, 0.55);
}

.tag-empty {
    text-align: center;
    padding: 42px 20px;
    border-radius: 20px;
    background: #1a1a1f;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    color: #9494a3;
    line-height: 1.55;
}

.tag-empty-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.tag-empty-links a {
    color: #bc13fe;
    font-weight: 800;
    text-decoration: none;
}

.tag-pagination {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-pagination a,
.tag-pagination span {
    padding: 10px 14px;
    border-radius: 12px;
    background: #1a1a1f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e0e0e6;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

.tag-pagination span.disabled {
    opacity: 0.35;
}

.tag-pagination .info {
    color: #9494a3;
}

.tag-related {
    margin-top: 28px;
}

.tag-related-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-related-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #d4c4e8;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.tag-related-link:hover {
    border-color: rgba(188, 19, 254, 0.35);
    color: #fff;
}

.tag-seo-copy {
    margin-top: 32px;
    padding: 20px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.tag-seo-copy p {
    margin: 0 0 12px;
    color: #9494a3;
    font-size: 14px;
    line-height: 1.65;
}

.tag-seo-copy p:last-child {
    margin-bottom: 0;
}

.tag-seo-copy a {
    color: #bc13fe;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 640px) {
    .tag-hero {
        padding: 18px 16px;
    }

    .tag-row {
        grid-template-columns: 72px 1fr;
    }

    .tag-row img {
        width: 72px;
        height: 72px;
    }

    .tag-tabs {
        gap: 6px;
    }

    .tag-tab {
        font-size: 12px;
        padding: 0 12px;
    }
}
