/* =========================================
   BartaBazarNews — Photocard Styles
   Preview: Responsive Square (max 720px)
   Export: 1080 × 1080px (scale 1.5x of preview)
========================================= */

/* Base */
.bbn-photocard-widget,
.bbn-photocard-widget * {
    box-sizing: border-box;
}

.bbn-photocard-widget {
    width: 100%;
    margin: 20px auto;
}

/* =========================================
   Action Buttons
========================================= */

.bbn-photocard-widget .bbn-photocard-generate,
.bbn-photocard-widget .bbn-photocard-download {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid #03466d !important;
    border-radius: 5px;
    background: #055b8c !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.bbn-photocard-widget .bbn-photocard-generate:hover,
.bbn-photocard-widget .bbn-photocard-download:hover,
.bbn-photocard-widget .bbn-photocard-generate:focus-visible,
.bbn-photocard-widget .bbn-photocard-download:focus-visible {
    background: #03466d !important;
    border-color: #023650 !important;
    color: #fff !important;
}

.bbn-photocard-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 16px auto 0;
}

.bbn-photocard-status {
    margin-top: 10px;
    color: #555;
    font-size: 13px;
    text-align: center;
}

/* =========================================
   Preview
========================================= */

.bbn-photocard-preview {
    width: 100%;
    margin-top: 18px;
}

.bbn-photocard-preview[hidden] {
    display: none !important;
}

/* =========================================
   Main Photocard
========================================= */

.bbn-photocard-canvas {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 720px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    background-color: #fa0101;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: #fff;
    font-family: inherit;
}

/* =========================================
   Header
========================================= */

.bbn-pc-header {
    position: relative;
    z-index: 5;
    display: flex;
    flex: 0 0 13%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 0;
    margin-bottom: 12px;
    padding: 2% 4%;
    overflow: hidden;
    background: #fff0f0;
}

.bbn-pc-logo {
    display: block;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    max-width: 90px;
    max-height: 40px;
    object-fit: contain;
    object-position: left center;
}

.bbn-pc-meta {
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
    color: #171717;
    text-align: right;
}

.bbn-pc-category {
    font-size: 18px;
    font-weight: 600;
}

.bbn-pc-separator {
    font-size: 22px;
    line-height: 1;
}

.bbn-pc-category,
.bbn-pc-meta time {
    color: #171717;
    line-height: 1.15;
}

.bbn-pc-meta time {
    font-size: 20px;
    font-weight: 400;
}

/* =========================================
   Featured Image Area
========================================= */

.bbn-pc-visual {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 45%;
    align-items: stretch;
    justify-content: center;
    min-height: 0;
    margin: 0;
    padding: 0 4.5%;
    overflow: visible;
    background: transparent;
}

/* Background Image Behind Headline */

.bbn-pc-bulletin {
    position: absolute;
    z-index: 0;
    top: 30%;
    right: 0;
    bottom: -40%;
    left: 0;
    background-repeat: no-repeat;
    background-position: center 15%;
    background-size: cover;
    pointer-events: none;
}

/* Featured Image Frame */

.bbn-pc-featured {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.85);
    border-radius: 32px 0;
    background: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.18);
}

.bbn-pc-featured img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
}

/* =========================================
   Headline
========================================= */

.bbn-pc-headline {
    position: relative;
    z-index: 3;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    min-height: 0;
    padding: 2% 7% 1%;
    overflow: hidden;
    background: transparent;
    text-align: left;
}

.bbn-pc-headline h2 {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    color: #fff;
    font-family: inherit;
    font-size: 32px !important;
    font-weight: 600;
    line-height: 1.16;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* =========================================
   Details / Comment
   Transparent Red Glass
========================================= */

.bbn-photocard-widget .bbn-pc-comment {
    position: relative !important;
    z-index: 10 !important;
    display: block !important;
    flex: 0 0 auto;
    width: 100% !important;
    max-width: none !important;
    margin: 20px 0 0 !important;
    padding: 16px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: rgba(250, 1, 1, 0.35) !important;
    background-color: rgba(250, 1, 1, 0.35) !important;
    background-image: none !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.bbn-photocard-widget .bbn-pc-comment * {
    color: #fff !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* =========================================
   Footer Banner
========================================= */

.bbn-pc-footer-banner {
    position: relative;
    z-index: 6;
    display: block;
    flex: 0 0 12%;
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    line-height: 0;
}

.bbn-pc-footer-banner img {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: fill;
    object-position: center;
}

/* =========================================
   Export — Fixed 1080 × 1080px
   Preview max = 720px  →  scale = 1.5x
   (every px value below = preview px × 1.5)
========================================= */

.bbn-photocard-canvas.bbn-pc-export {
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    width: 1080px !important;
    min-width: 1080px !important;
    max-width: none !important;
    height: 1080px !important;
    min-height: 1080px !important;
    max-height: 1080px !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    font-family: inherit;
}

/* Header */

.bbn-pc-export .bbn-pc-header {
    flex: 0 0 13% !important;
    margin-bottom: 18px !important;
    padding: 2% 4% !important;
    gap: 18px !important;
}

.bbn-pc-export .bbn-pc-logo {
    max-width: 135px !important;
    max-height: 60px !important;
}

.bbn-pc-export .bbn-pc-meta {
    gap: 10px !important;
}

.bbn-pc-export .bbn-pc-category {
    font-size: 27px !important;
}

.bbn-pc-export .bbn-pc-separator {
    font-size: 33px !important;
}

.bbn-pc-export .bbn-pc-meta time {
    font-size: 30px !important;
}

/* Featured image */

.bbn-pc-export .bbn-pc-visual {
    flex: 0 0 45% !important;
    padding: 0 4.5% !important;
}

.bbn-pc-export .bbn-pc-featured {
    border-width: 7px !important;
    border-radius: 48px 0 !important;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.18) !important;
}

/* Headline */

.bbn-pc-export .bbn-pc-headline {
    flex: 1 1 auto !important;
    padding: 2% 7% 1% !important;
}

.bbn-pc-export .bbn-pc-headline h2 {
    font-size: 48px !important;
    font-weight: 600 !important;
    line-height: 1.16 !important;
    text-align: center !important;
}

/* Details — backdrop-filter export e kaj kore na, tai solid-ish color */

.bbn-photocard-widget .bbn-pc-export .bbn-pc-comment {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 30px 0 0 !important;
    padding: 24px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(180, 0, 0, 0.55) !important;
    background-color: rgba(180, 0, 0, 0.55) !important;
    background-image: none !important;
    color: #fff !important;
    font-size: 21px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Footer */

.bbn-pc-export .bbn-pc-footer-banner {
    flex: 0 0 12% !important;
    width: 100% !important;
    padding: 0 !important;
}

.bbn-pc-export .bbn-pc-footer-banner img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: fill !important;
    object-position: center !important;
}