/* profile.html: profil sahifasi (barcha sinflar "pf_" bilan boshlanadi) */

/* profil kartasi */
.pf_card {
    background-color: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 20px;
}

.pf_cover {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: linear-gradient(135deg, #25272b, #3a3d44 55%, #2b3a4c);
}

.pf_head {
    display: flex;
    align-items: flex-end;
    gap: 22px;
    padding: 10px 26px 15px 26px;
}

.pf_avatar {
    flex-shrink: 0;
    width: 112px;
    height: 112px;
    margin-top: -56px;
    border-radius: 50%;
    border: 5px solid var(--panel);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--on-accent);
    font-size: 40px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.pf_id {
    flex: 1;
    min-width: 0;
    padding-top: 14px;
}

.pf_name {
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
}

.pf_handle {
    color: var(--muted);
    font-size: 13px;
    margin-top: 3px;
}

.pf_bio {
    color: var(--accent-text);
    opacity: 0.85;
    font-size: 13.5px;
    line-height: 1.6;
    margin-top: 10px;
    max-width: 620px;
}

.pf_actions {
    display: flex;
    gap: 10px;
    padding-bottom: 4px;
}

.pf_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background-color: var(--panel-2);
    color: var(--text);
    font-family: Montserrat;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.pf_btn:hover {
    background-color: #2a2b2f;
}

.pf_btn_main {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}

.pf_btn_main:hover {
    background-color: var(--accent-2);
}

.pf_btn_icon {
    width: 40px;
    padding: 0;
}

/* raqamlar */
.pf_numbers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}

.pf_number {
    padding: 16px 10px;
    text-align: center;
}

.pf_number + .pf_number {
    border-left: 1px solid var(--line);
}

.pf_number b {
    display: block;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
}

.pf_number span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

/* bo'limlar (tablar) */
.pf_tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.pf_tab {
    position: relative;
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--muted);
    font-family: Montserrat;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s ease;
}

.pf_tab:hover {
    color: var(--text);
}

.pf_tab.active {
    color: var(--text);
    font-weight: 600;
}

.pf_tab.active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--text);
}

.pf_panel[hidden] {
    display: none;
}

/* chip ichidagi son */
#pfFilters .filter_chip {
    font-family: Montserrat;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chip_count {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
    background-color: #ffffff12;
}

/* video kartalari */
.pf_video .video_info {
    padding: 14px 0 16px;
}

.pf_meta {
    color: var(--muted);
    font-size: 12px;
    margin-top: 6px;
}

.pf_status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 11.5px;
    margin-top: 5px;
}

.pf_status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #5a9a3a;
}

.pf_status.is_draft::before {
    background-color: #a86a2d;
}

.pf_add {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px 10px;
    border: 1px dashed #ffffff26;
    border-radius: 15px;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pf_add:hover {
    background-color: var(--panel);
    color: var(--text);
}

.pf_add i {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--panel-2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf_empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: var(--muted);
    font-size: 13.5px;
    background-color: var(--panel);
    border: 1px dashed #ffffff1c;
    border-radius: 16px;
}

/* umumiy quti */
.pf_box {
    background-color: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px 22px;
}

.pf_box_title {
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
}

/* haqida */
.pf_about {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
}

.pf_about[hidden] {
    display: none;
}

.pf_about_text {
    color: var(--accent-text);
    opacity: 0.85;
    font-size: 13.5px;
    line-height: 1.7;
}

.pf_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.pf_tags span {
    padding: 6px 12px;
    border-radius: 8px;
    background-color: var(--panel-2);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 12.5px;
}

.pf_info {
    list-style: none;
}

.pf_info li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    font-size: 13px;
}

.pf_info li + li {
    border-top: 1px solid var(--line);
}

.pf_info span {
    color: var(--muted);
}

.pf_info b {
    color: var(--text);
    font-weight: 500;
    text-align: right;
}

/* statistika */
.pf_stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.pf_stat {
    background-color: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 18px;
}

.pf_stat span {
    display: block;
    color: var(--text);
    font-size: 19px;
    font-weight: 700;
}

.pf_stat p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.pf_stats_cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
}

.pf_chart {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    height: 200px;
    padding-top: 10px;
}

.pf_bar {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.pf_bar i {
    display: block;
    width: 100%;
    max-width: 46px;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    transition: filter 0.15s ease;
}

.pf_bar:hover i {
    filter: brightness(1.3);
}

.pf_bar b {
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.pf_bar span {
    color: var(--muted);
    font-size: 11.5px;
}

.pf_top {
    list-style: none;
}

.pf_top li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.pf_top li + li {
    border-top: 1px solid var(--line);
}

.pf_top em {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background-color: var(--panel-2);
    color: var(--accent-text);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf_top div {
    flex: 1;
    min-width: 0;
}

.pf_top p {
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf_top span {
    color: var(--muted);
    font-size: 11.5px;
}

/* tahrirlash oynasi */
.pf_modal {
    position: fixed;
    z-index: 300;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pf_modal[hidden] {
    display: none;
}

.pf_modal_box {
    width: 100%;
    max-width: 460px;
    background-color: var(--panel);
    border: 1px solid #ffffff1a;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.pf_modal_box h2 {
    color: var(--text);
    font-size: 17px;
    margin-bottom: 18px;
}

.pf_field {
    display: block;
    margin-bottom: 14px;
}

.pf_field span {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.pf_field em {
    font-style: normal;
}

.pf_field input,
.pf_field textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background-color: var(--bg);
    color: var(--text);
    font-family: Montserrat;
    font-size: 13.5px;
    resize: none;
    transition: border-color 0.15s ease;
}

.pf_field input:focus,
.pf_field textarea:focus {
    border-color: #ffffff40;
}

.pf_field.has_error input {
    border-color: #b5524a;
}

.pf_error {
    color: #e08a82;
    font-size: 12.5px;
    margin-bottom: 12px;
}

.pf_error[hidden] {
    display: none;
}

.pf_modal_actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
}

/* bildirishnoma */
.pf_toast {
    position: fixed;
    z-index: 400;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 12px;
    background-color: #2a2b2f;
    border: 1px solid #ffffff1a;
    color: var(--text);
    font-size: 13px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.pf_toast[hidden] {
    display: none;
}

/* moslashuvchanlik */
@media (max-width: 1250px) {
    #pfGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .pf_head {
        flex-wrap: wrap;
    }

    .pf_about,
    .pf_stats_cols {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    #pfGrid {
        grid-template-columns: 1fr;
    }

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

    .pf_number:nth-child(3) {
        border-left: none;
    }

    .pf_number:nth-child(n+3) {
        border-top: 1px solid var(--line);
    }
}