/* =========================
   HAPPY PENS CORE
   PERSONAL TOP
========================= */

/* =========================
   COLLECTION DATA PANEL
========================= */

.hpc-collection-data {
    margin-top: 8px;
}

.hpc-collection-data-toggle {
    width: 100%;
    border: 1px solid rgba(176,138,82,0.28);
    background: #FAF8F5;
    color: #8E6D36;
    border-radius: 4px;
    padding: 5px 11px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-align: center;
    min-height:32px;
    max-height:32px;
}

.hpc-collection-data-body {
    display: none;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid rgba(176,138,82,0.18);
    border-radius: 6px;
    background: rgba(253,251,248,0.72);
}

.hpc-collection-data.open .hpc-collection-data-body {
    display: block;
}

.hpc-collection-rank-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hpc-collection-rank-row label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8A6A3F;
    font-weight: 700;
}

.hpc-collection-rank-row select {
    max-width: 82px;
    border: 1px solid rgba(176,138,82,0.32);
    border-radius: 6px;
    background: #fffaf3;
    color: #171411;
    padding: 6px 8px;
    font-size: 13px;
}

/* =========================
   PERSONAL TOP — SHOWCASE SETTINGS
========================= */

.hpc-pt-showcase-settings {
    margin: 0 0 24px;
}

.hpc-pt-showcase-settings-toggle {
    width: 100%;
    border: 1px solid rgba(169,120,40,.22);
    background: #fffaf3;
    color: #171411;
    border-radius: 10px;
    padding: 13px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0,0,0,.035);
}

.hpc-pt-showcase-settings-arrow {
    color: #9b6e21;
    font-size: 18px;
    line-height: 1;
    transition: transform .18s ease;
}

.hpc-pt-showcase-settings-body {
    display: none;
    margin-top: 10px;
    padding: 18px 20px;
    background: #fffaf3;
    border: 1px solid rgba(169,120,40,.22);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,.035);
}

.hpc-pt-showcase-settings.open .hpc-pt-showcase-settings-body {
    display: block;
}

.hpc-pt-showcase-settings.open .hpc-pt-showcase-settings-arrow {
    transform: rotate(180deg);
}

.hpc-pt-showcase-settings-main strong {
    display: block;
    color: #171411;
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 6px;
}

.hpc-pt-showcase-settings-main p {
    margin: 0 0 14px;
    color: #62594c;
    font-size: 13px;
    line-height: 1.45;
}

.hpc-pt-showcase-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(253,251,248,.72);
    border: 1px solid rgba(169,120,40,.16);
    border-radius: 9px;
    cursor: pointer;
}

.hpc-pt-showcase-toggle input {
    width: 18px;
    height: 18px;
    accent-color: #9b6e21;
}

.hpc-pt-showcase-toggle span {
    color: #171411;
    font-size: 14px;
    font-weight: 700;
}

.hpc-pt-showcase-note {
    margin-top: 10px;
    color: #7a6b58;
    font-size: 12px;
    line-height: 1.45;
}

/* =========================
   HAPPY PENS CORE — PERSONAL TOP
========================= */

.hpc-pt-page {
    background: transparent;
    padding: 0;
}

.hpc-pt-top-one {
    width: 100%;
    margin: 0 0 24px;
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    background: #fffaf3;
    border: 1px solid rgba(169,120,40,.22);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.hpc-pt-top-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.hpc-pt-top-image img,
.hpc-pt-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hpc-pt-ribbon,
.hpc-pt-small-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    background: linear-gradient(180deg, #c49a45, #9b6e21);
    color: #fff;
    font-family: Georgia, serif;
    border-radius: 0 6px 6px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hpc-pt-ribbon {
    width: 54px;
    height: 54px;
    font-size: 32px;
}

.hpc-pt-small-ribbon {
    width: 38px;
    height: 38px;
    font-size: 20px;
}

.hpc-pt-top-info {
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.hpc-pt-top-info h2 {
    font-size: 25px;
    line-height: 1.18;
    margin: 0 0 16px;
}

.hpc-pt-top-info h2 a,
.hpc-pt-card-body h3 a {
    color: #111;
    text-decoration: none;
}

.hpc-pt-meta {
    color: #62594c;
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 14px;
}

.hpc-personal-top-note {
    width: 100%;
    min-height: 76px;
    resize: vertical;
    border: 1px solid rgba(169,120,40,.18);
    border-radius: 8px;
    background: rgba(255,250,243,.72);
    color: #4a4036;
    font-size: 13px;
    line-height: 1.45;
    padding: 10px 12px;
    margin-top: auto;
}

.hpc-pt-top-one .hpc-personal-top-note {
    min-height: 110px;
}

.hpc-pt-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(169,120,40,.16);
    padding-top: 12px;
}

.hpc-pt-rank-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hpc-pt-rank-control span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9b6e21;
    white-space: nowrap;
}

.hpc-personal-top-rank-select {
    max-width: 76px;
    padding: 5px 8px;
    border: 1px solid rgba(169,120,40,.32);
    border-radius: 6px;
    background: #fffaf3;
    color: #111;
    font-size: 13px;
}

.hpc-pt-view-pen {
    color: #9b6e21;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.hpc-pt-grid {
    width: 100%;
    margin: 0 0 18px;
    display: grid;
    gap: 16px;
}

.hpc-pt-grid-three {
    grid-template-columns: repeat(3, 1fr);
}

.hpc-pt-grid-last {
    grid-template-columns: repeat(4, 1fr);
}

.hpc-pt-card {
    background: #fffaf3;
    border: 1px solid rgba(0,0,0,.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,.035);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hpc-pt-card-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    flex-shrink: 0;
}

.hpc-pt-card-body {
    padding: 14px 15px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hpc-pt-card-body h3 {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.25;
}

.hpc-pt-grid-last .hpc-pt-card-body {
    padding: 12px 12px 14px;
}

.hpc-pt-grid-last .hpc-pt-card-body h3 {
    font-size: 14px;
    line-height: 1.22;
}

.hpc-pt-grid-last .hpc-pt-meta,
.hpc-pt-grid-last .hpc-personal-top-note {
    font-size: 11px;
}

.hpc-pt-grid-last .hpc-pt-small-ribbon {
    width: 34px;
    height: 34px;
    font-size: 18px;
}

.hpc-pt-locked {
    text-align: center;
    margin-top: 26px;
    background: #fffaf3;
    border: 1px solid rgba(169,120,40,.22);
    border-radius: 12px;
    padding: 26px 20px;
}

.hpc-pt-locked a {
    display: inline-block;
    background: #111;
    color: #fff;
    padding: 13px 34px;
    border-radius: 7px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-size: 12px;
    font-weight: 700;
}

.hpc-pt-locked p {
    color: #6b5738;
    margin: 14px auto 0;
    font-size: 13px;
    max-width: 560px;
}

.hpc-pt-empty {
    background: #fffaf3;
    border: 1px solid rgba(169,120,40,.22);
    border-radius: 10px;
    padding: 22px;
    color: #62594c;
    text-align: center;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
    .hpc-pt-top-one {
        grid-template-columns: 1fr;
    }

    .hpc-pt-grid-three,
    .hpc-pt-grid-last {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .hpc-pt-grid-three,
    .hpc-pt-grid-last {
        grid-template-columns: 1fr;
    }

    .hpc-pt-top-info {
        padding: 22px;
    }

    .hpc-pt-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hpc-pt-view-pen {
        text-align: center;
    }
}

/* =========================
   PERSONAL TOP — SHOWCASE SETTINGS FIELDS
========================= */

.hpc-pt-showcase-field{
    margin-top:14px;
}

.hpc-pt-showcase-field label{
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    gap:12px;
    margin:0 0 6px;
    color:#8A6A3F;
    font-size:11px;
    font-weight:700;
    line-height:1.2;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.hpc-pt-showcase-field label span{
    color:#9B8C78;
    font-size:10px;
    font-weight:600;
    letter-spacing:.04em;
    text-transform:none;
}

.hpc-pt-showcase-field select,
.hpc-pt-showcase-field textarea{
    width:100%;
    border:1px solid rgba(169,120,40,.24);
    border-radius:8px;
    background:rgba(253,251,248,.82);
    color:#171411;
    font-size:13px;
    line-height:1.45;
}

.hpc-pt-showcase-field select{
    min-height:38px;
    padding:7px 10px;
}

.hpc-pt-showcase-field textarea{
    min-height:72px;
    resize:vertical;
    padding:10px 12px;
}

.hpc-pt-showcase-field textarea:focus,
.hpc-pt-showcase-field select:focus{
    outline:none;
    border-color:rgba(176,138,82,.55);
    box-shadow:0 0 0 3px rgba(176,138,82,.10);
}

.hpc-pt-showcase-notes-wrap{
    margin-top:18px;
    padding-top:18px;
    border-top:1px solid rgba(169,120,40,.16);
}

.hpc-pt-showcase-notes-wrap .hpc-pt-showcase-settings-main{
    margin-bottom:4px;
}