﻿/* =========================================================
   Personality Types — Premium Index
   Targets: .ptypesP page
   ========================================================= */

.ptypesP {
    max-width: 1120px;
    margin: 18px auto 80px;
    padding: 0 16px;
    color: var(--text-main);
    font-family: var(--font-sans);
}

    /* HERO */
    .ptypesP .ptypesP-hero {
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 18px 16px;
        box-shadow: var(--shadow-sm);
        margin: 12px 0 16px;
    }

    /* Breadcrumb */
    .ptypesP .ptypesP-bc {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
        font-size: 13px;
        color: var(--text-muted);
        margin: 4px 0 12px;
    }

        .ptypesP .ptypesP-bc a {
            color: var(--text-muted);
            text-decoration: none;
            border-bottom: 1px solid transparent;
        }

            .ptypesP .ptypesP-bc a:hover {
                border-bottom-color: var(--text-muted);
            }

        .ptypesP .ptypesP-bc span {
            opacity: .7;
        }

    /* Title + lead */
    .ptypesP .ptypesP-hero h1 {
        font-family: var(--font-serif);
        font-size: 30px;
        font-weight: 400;
        letter-spacing: -0.01em;
        margin: 0 0 10px;
    }

    .ptypesP .ptypesP-lead {
        font-size: 15px;
        line-height: 1.8;
        color: var(--text-body);
        margin: 0 0 14px;
    }

    /* Toolbar */
    .ptypesP .ptypesP-toolbar {
        display: grid;
        gap: 12px;
        margin-top: 10px;
    }

    .ptypesP .ptypesP-search {
        position: relative;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .ptypesP #typeSearch {
        width: 100%;
        border: 1px solid var(--border);
        background: rgba(15,23,42,.03);
        border-radius: 16px;
        padding: 12px 46px 12px 14px;
        font-size: 14px;
        outline: none;
        transition: border-color .12s ease, background .12s ease, transform .12s ease;
    }

        .ptypesP #typeSearch:focus {
            border-color: rgba(15,23,42,.22);
            background: rgba(15,23,42,.04);
            transform: translateY(-1px);
        }

    .ptypesP .ptypesP-kbd {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 12px;
        color: var(--text-muted);
        border: 1px solid rgba(15,23,42,.14);
        background: rgba(255,255,255,.65);
        padding: 4px 8px;
        border-radius: 10px;
        user-select: none;
    }

    /* Filter chips */
    .ptypesP .ptypesP-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .ptypesP .chip {
        border: 1px solid rgba(15,23,42,.12);
        background: rgba(15,23,42,.03);
        color: var(--text-main);
        padding: 8px 10px;
        border-radius: 999px;
        font-size: 13px;
        cursor: pointer;
        transition: transform .12s ease, background .12s ease, border-color .12s ease;
    }

        .ptypesP .chip:hover {
            transform: translateY(-1px);
            background: rgba(15,23,42,.05);
            border-color: rgba(15,23,42,.18);
        }

        .ptypesP .chip.active {
            background: rgba(15,23,42,.10);
            border-color: rgba(15,23,42,.22);
            font-weight: 700;
        }

    /* GRID */
    .ptypesP .ptypesP-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 14px;
    }

        /* Optional counter (uses grid.dataset.count) */
        .ptypesP .ptypesP-grid::before {
            content: attr(data-count) " nəticə";
            display: block;
            color: var(--text-muted);
            font-size: 12px;
            margin: 4px 0 2px;
        }

    /* Card */
    .ptypesP .tcard {
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 16px 14px;
        box-shadow: var(--shadow-sm);
        transition: transform .12s ease, border-color .12s ease;
    }

        .ptypesP .tcard:hover {
            transform: translateY(-2px);
            border-color: rgba(15,23,42,.18);
        }

    /* Card top row */
    .ptypesP .tcard-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 10px;
    }

    .ptypesP .tcode {
        font-size: 12px;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: #64748b;
        padding: 6px 10px;
        border-radius: 999px;
        border: 1px solid rgba(15,23,42,.10);
        background: rgba(15,23,42,.03);
    }

    .ptypesP .tgroup {
        font-size: 12px;
        color: var(--text-muted);
    }

    /* Title + desc */
    .ptypesP .ttitle {
        font-family: var(--font-serif);
        font-size: 18px;
        font-weight: 400;
        margin: 0 0 8px;
    }

    .ptypesP .tdesc {
        font-size: 14px;
        line-height: 1.75;
        color: var(--text-body);
        margin: 0 0 14px;
    }

    /* Actions */
    .ptypesP .tcard-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .ptypesP .tlink {
        color: var(--accent);
        text-decoration: none;
        border-bottom: 1px solid var(--accent);
        padding-bottom: 2px;
        font-size: 14px;
    }

        .ptypesP .tlink:hover {
            filter: brightness(.9);
        }

    .ptypesP .tmini {
        font-size: 13px;
        text-decoration: none;
        padding: 8px 10px;
        border-radius: 999px;
        border: 1px solid rgba(15,23,42,.14);
        background: rgba(15,23,42,.03);
        color: var(--text-main);
        transition: transform .12s ease, background .12s ease;
    }

        .ptypesP .tmini:hover {
            transform: translateY(-1px);
            background: rgba(15,23,42,.05);
        }

    /* SEO section */
    .ptypesP .ptypesP-seo {
        margin-top: 18px;
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 18px 16px;
        box-shadow: var(--shadow-sm);
    }

        .ptypesP .ptypesP-seo h2 {
            font-family: var(--font-serif);
            font-size: 18px;
            font-weight: 400;
            margin: 0 0 12px;
        }

    .ptypesP .ptypesP-seoGrid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ptypesP .seoCard {
        border: 1px solid rgba(15,23,42,.10);
        background: rgba(15,23,42,.03);
        border-radius: 16px;
        padding: 14px 14px;
    }

        .ptypesP .seoCard h3 {
            font-size: 14px;
            margin: 0 0 6px;
            font-weight: 700;
        }

        .ptypesP .seoCard p {
            margin: 0;
            font-size: 13px;
            line-height: 1.7;
            color: var(--text-body);
        }

/* Responsive */
@media (min-width:600px) {
    .ptypesP {
        padding: 0 24px;
        margin-top: 22px;
    }

        .ptypesP .ptypesP-hero {
            padding: 22px 20px;
        }

            .ptypesP .ptypesP-hero h1 {
                font-size: 36px;
            }

        .ptypesP .ptypesP-toolbar {
            grid-template-columns: 1.1fr .9fr;
            align-items: start;
        }

        .ptypesP .ptypesP-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }

        .ptypesP .ptypesP-seoGrid {
            grid-template-columns: repeat(3, 1fr);
        }
}

@media (min-width:900px) {
    .ptypesP .ptypesP-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

/* Motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .ptypesP * {
        transition: none !important;
    }
}
