/* ------------------------------------------------------------------ */
/* Hester Theme Library — admin styles                                  */
/* ------------------------------------------------------------------ */

/* Utility */
.hester-hidden {
    display: none !important;
}

/* Prevent body scroll when overlay is open */
html.hester-demo-preview-on,
html.hester-demo-preview-on body {
    overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* Section title row                                                     */
/* ------------------------------------------------------------------ */

div.hester-section-title {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

div.hester-section-title .hester-btn {
    margin-left: 12px;
}

.demo-search {
    margin-left: auto;
    position: relative;
}

.demo-search svg {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: 12px;
    margin-top: -8px;
    width: 16px;
    height: 16px;
    color: #72777c;
}

#hester-search-themes {
    height: 31px;
    border-radius: 2px;
    -webkit-box-shadow: none;
    box-shadow: none;
    padding: 0 31px 0 12px;
    background: transparent;
    border-color: #c7d5df;
}

#hester-search-themes:focus {
    border-color: #728191;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.hester-themes-notice {
    margin: 20px 0 0;
    color: #72777c;
    font-size: 14px;
}

/* ------------------------------------------------------------------ */
/* Theme card                                                            */
/* ------------------------------------------------------------------ */

.hester-theme {
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #d6e1e8;
    border-radius: 3px;
    overflow: hidden;
}

/* Screenshot */
.hester-theme .demo-screenshot {
    position: relative;
    overflow: hidden;
    background-color: #f0f4f7;
}

.hester-theme .demo-screenshot .text-overlay{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    justify-content: center;
    -webkit-transition: all .1s ease;
    transition: all .1s ease;
    -webkit-transform: scale(0.6);
    -ms-transform: scale(0.6);
    transform: scale(0.6);
    opacity: 0;
}

.hester-theme .demo-screenshot .text-overlay svg {
    stroke: #FFF;
    width: 50px;
    height: 50px;
}

.hester-theme .demo-screenshot .text-overlay span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 1rem;
}

.hester-theme:hover .text-overlay {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    opacity: 1;
}

.hester-theme .demo-screenshot img {
    max-width: 100%;
    display: block;
    width: 100%;
}

.hester-theme .demo-screenshot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(35, 40, 45, 0.7);
    -webkit-transition: opacity .15s ease;
    transition: opacity .15s ease;
    opacity: 0;
    z-index: 1;
}

.hester-theme:hover .demo-screenshot::after {
    opacity: 1;
}

.hester-no-screenshot {
    width: 100%;
    padding-bottom: 75%;
    background: linear-gradient(135deg, #e8edf2 25%, #d6dde5 100%);
}

/* Status badges */
.hester-theme-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 9px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    z-index: 3;
    letter-spacing: .03em;
}

.hester-theme-badge-active {
    background-color: #0daf0d;
}

.hester-theme-badge-installed {
    background-color: #0d6efd;
}

/* Meta row */
.hester-theme .demo-meta {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: relative;
    padding: 5px 15px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    height: 58px;
    background-color: #fff;
}

.hester-theme .demo-name {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: baseline;
    -ms-flex-align: baseline;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}

.hester-theme .demo-name .name {
    display: block;
    font-size: 15px;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hester-theme-version {
    font-size: 11px;
    color: #a0aab4;
    white-space: nowrap;
}

/* Action buttons */
.hester-theme .demo-actions {
    background-color: rgba(250, 250, 250, 0.95);
    border-left: 1px solid #d6e1e8;
    position: absolute;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    top: 0;
    right: 0;
    bottom: 0;
    padding: 0 15px;
    z-index: 1;
    -webkit-transition: opacity .15s ease;
    transition: opacity .15s ease;
    opacity: 0;
    gap: 7px;
}

.hester-theme:hover .demo-actions,
.hester-theme.busy .demo-actions {
    opacity: 1;
}

/* Active theme: always show Customize inline */
.hester-theme[data-theme-status="active"] .demo-actions {
    opacity: 1;
    background: transparent;
    border-left: none;
    position: relative;
    padding: 0;
    margin-left: auto;
}

/* Button states */
.hester-install-theme.updating-message,
.hester-activate-theme.updating-message {
    opacity: 0.75;
    cursor: wait;
}

.button-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ------------------------------------------------------------------ */
/* Full-screen preview overlay — base wp-full-overlay layout            */
/* ------------------------------------------------------------------ */

/* Sidebar */
.hester-theme-preview .wp-full-overlay-sidebar .wp-full-overlay-sidebar-content {
    bottom: 129px;
}

/* Header */
.hester-theme-preview .wp-full-overlay-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.hester-theme-preview .wp-full-overlay-header .hester-btn {
    margin: 7px 12px 7px auto;
    float: none;
}

/* Footer */
.hester-theme-preview .wp-full-overlay-footer {
    height: 129px;
    border-top: none;
}

/* ------------------------------------------------------------------ */
/* Sidebar content — theme info                                          */
/* ------------------------------------------------------------------ */

.hester-theme-preview .install-theme-info {
    padding-top: 0;
}

.hester-theme-preview .hester-demo-name {
    background: #fff;
    color: #555d66;
    border-bottom: 1px solid #ddd;
    margin: 0 -20px 20px -20px;
    padding: 12px 20px 15px 20px;
}

.hester-theme-preview .hester-demo-name span {
    font-size: 13px;
    line-height: 24px;
    display: block;
}

.hester-theme-preview .hester-demo-name h3 {
    font-size: 20px;
    font-weight: 200;
    line-height: 26px;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hester-theme-preview .theme-screenshot-wrap img {
    display: block;
    width: 100%;
}

/* Status pill */
.hester-theme-status-pill {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 14px;
}

.hester-theme-status-active {
    background: #e6f7e6;
    color: #0a7a0a;
}

.hester-theme-status-installed {
    background: #e8f0fe;
    color: #1a56db;
}

.hester-theme-preview .theme-description {
    display: block;
    font-size: 13px;
    line-height: 1.6;
    color: #555d66;
    margin-bottom: 20px;
}

.hester-theme-detail-meta {
    font-size: 13px;
    color: #72777c;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 4px;
}

/* Footer action button */
.hester-theme-preview .footer-import-button-wrap {
    position: relative;
    border-bottom: 1px solid #ddd;
    padding: 20px;
}

.hester-theme-preview .footer-import-button-wrap .hester-btn.large-button {
    width: 100%;
    text-align: center;
    display: block;
}