/* ============================================================
   Photo Card Builder — Premium Redesign (3-Column App Layout)
   Card visual design, category themes, frame templates, admin UI
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+Bengali:wght@400;500;600;700;800;900&family=Noto+Serif+Bengali:wght@400;500;600;700;800;900&family=Hind+Siliguri:wght@400;500;600;700&family=Anek+Bangla:wght@400;500;600;700;800&family=Tiro+Bangla&display=swap');
@import url('https://fonts.maateen.me/solaiman-lipi/font.css');
@import url('https://fonts.maateen.me/kalpurush/font.css');
@import url('https://fonts.maateen.me/siyam-rupali/font.css');

@font-face {
    font-family: 'SolaimanLipi';
    src: url('../fonts/solaiman-lipi.eot');
    src: url('../fonts/solaiman-lipi.eot?#iefix') format('embedded-opentype'),
         url('../fonts/solaiman-lipi.woff') format('woff'),
         url('../fonts/solaiman-lipi.ttf') format('truetype'),
         url('../../frontend/assests/fonts/solaiman-lipi.ttf') format('truetype'),
         url('../../frontend/print/fonts.maateen.me/solaiman-lipi/SolaimanLipi.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SolaimanLipi';
    src: url('../fonts/solaiman-lipi.eot');
    src: url('../fonts/solaiman-lipi.eot?#iefix') format('embedded-opentype'),
         url('../fonts/solaiman-lipi.woff') format('woff'),
         url('../fonts/solaiman-lipi.ttf') format('truetype'),
         url('../../frontend/assests/fonts/solaiman-lipi.ttf') format('truetype'),
         url('../../frontend/print/fonts.maateen.me/solaiman-lipi/SolaimanLipi.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SolaimanLipiNormal';
    src: url('../fonts/solaiman-lipi.eot');
    src: url('../fonts/solaiman-lipi.eot?#iefix') format('embedded-opentype'),
         url('../fonts/solaiman-lipi.woff') format('woff'),
         url('../fonts/solaiman-lipi.ttf') format('truetype'),
         url('../../frontend/assests/fonts/solaiman-lipi.ttf') format('truetype'),
         url('../../frontend/print/fonts.maateen.me/solaiman-lipi/SolaimanLipi.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Bengali card text stack. SolaimanLipi is first so exported photo-card
   headlines visually match common Bangla news-card typography 100%. */
:root {
    --pc-bengali-font-stack: 'SolaimanLipi', 'SolaimanLipiNormal', 'Kalpurush', 'Siyam Rupali', 'Nikosh', 'Noto Sans Bengali', 'Hind Siliguri', Arial, sans-serif;
}

/* ============================================================
   GLOBAL & FULLSCREEN LAYOUT
   ============================================================ */
.pc-fullscreen-mode {
    height: calc(100vh - 80px); /* Adjust based on your admin header */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent page scrolling */
}

.pc-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 52, 96, 0.2);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.pc-page-header-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #B30F0F, #7a0e0e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.pc-page-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.pc-page-header p {
    color: rgba(255,255,255,0.65);
    font-size: 12px;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* ============================================================
   APP LAYOUT GRID
   ============================================================ */
.pc-app-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr) 340px;
    gap: 16px;
    flex: 1;
    min-height: 0; /* Important for flex children scrolling */
}

@media (max-width: 1199px) {
    .pc-app-layout {
        grid-template-columns: 280px minmax(0, 1fr) 300px;
    }
}

@media (max-width: 991px) {
    .pc-fullscreen-mode {
        height: auto;
        overflow: visible;
    }
    .pc-app-layout {
        grid-template-columns: minmax(0, 1fr);
        display: flex;
        flex-direction: column;
    }
    .pc-panel-body {
        overflow-y: visible !important;
    }
}

/* ============================================================
   PANELS
   ============================================================ */
.pc-panel {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8eaf0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(16, 24, 40, 0.04);
    min-height: 0;
}

.pc-panel-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e8eaf0;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pc-panel-header i {
    color: #B30F0F;
}

.pc-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.pc-panel-body::-webkit-scrollbar {
    width: 6px;
}
.pc-panel-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.pc-panel-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.pc-panel-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.pc-panel-footer {
    padding: 12px 16px;
    border-top: 1px solid #e8eaf0;
    background: #fff;
    border-radius: 0 0 12px 12px;
    flex-shrink: 0;
    display: flex;
    gap: 10px;
}

/* ============================================================
   COMPACT FORM ELEMENTS
   ============================================================ */
.pc-section {
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.pc-section-title {
    padding: 10px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
}

.pc-section-content {
    padding: 12px;
}

.pc-form-group {
    margin-bottom: 12px;
}
.pc-form-group:last-child {
    margin-bottom: 0;
}

.pc-form-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    font-size: 11.5px;
    color: #374151;
    font-family: 'Inter', sans-serif;
}

.pc-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12.5px;
    box-sizing: border-box;
    background: #fff;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
}

.pc-input:focus {
    outline: none;
    border-color: #B30F0F;
    box-shadow: 0 0 0 2px rgba(179, 15, 15, 0.1);
}

textarea.pc-input {
    resize: vertical;
    min-height: 50px;
}

.pc-row {
    display: flex;
    gap: 10px;
}
.pc-col {
    flex: 1;
    min-width: 0;
}

/* ============================================================
   CENTER PANEL (PREVIEW)
   ============================================================ */
.pc-center-panel {
    background: #f1f5f9;
}

.pc-stage-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden; /* Ensure it stays within bounds */
    position: relative;
}

.pc-stage {
    background: radial-gradient(circle at 30% 20%, #2b2f36, #0d0f12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    position: relative;
    /* Scale logic handled in JS, but we give it a safe container */
    width: 100%;
    height: 100%;
}

/* ============================================================
   CONTROLS (CROP / SLIDERS)
   ============================================================ */
.pc-slider-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.pc-slider-row:last-child {
    margin-bottom: 0;
}

.pc-slider-label {
    flex: 0 0 50px;
    font-size: 10.5px;
    font-weight: 600;
    color: #64748b;
    font-family: 'Inter', sans-serif;
}

.pc-slider-val {
    flex: 0 0 35px;
    font-size: 10.5px;
    font-weight: 700;
    color: #B30F0F;
    text-align: right;
    font-family: 'Inter', sans-serif;
}

input[type="range"].pc-range {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    outline: none;
}
input[type="range"].pc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #B30F0F;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ============================================================
   COLOR PICKERS
   ============================================================ */
.pc-color-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px;
}

.pc-color-picker {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    padding: 0;
    cursor: pointer;
}
.pc-color-picker::-webkit-color-swatch-wrapper { padding: 0; }
.pc-color-picker::-webkit-color-swatch { border: none; border-radius: 4px; }

.pc-color-hex {
    font-size: 11px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #475569;
}

/* ============================================================
   FRAME TEMPLATES GRID (Compact)
   ============================================================ */
.pc-tpl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.pc-tpl-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.pc-tpl-btn:hover {
    border-color: #B30F0F;
}
.pc-tpl-btn.active {
    border-color: #B30F0F;
    background: rgba(179, 15, 15, 0.05);
}

.pc-tpl-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 4px;
}

.pc-tpl-label {
    font-size: 9px;
    font-weight: 600;
    text-align: center;
    color: #475569;
    font-family: 'Inter', sans-serif;
    line-height: 1.1;
}

.pc-tpl-thumb-default { background: linear-gradient(to bottom, #1a1a2e 60%, #111 100%); }
.pc-tpl-thumb-politics { background: linear-gradient(135deg, #7a0e0e 0%, #3d0707 100%); }
.pc-tpl-thumb-sports { background: linear-gradient(135deg, #ff6a00 0%, #1a1a2e 100%); }
.pc-tpl-thumb-entertainment { background: linear-gradient(135deg, #7928ca 0%, #ff0080 100%); }
.pc-tpl-thumb-national { background: linear-gradient(135deg, #0b3d91 0%, #0e4d3d 100%); }
.pc-tpl-thumb-international { background: linear-gradient(135deg, #1a1a2e 0%, #d4af37 100%); }
.pc-tpl-thumb-blue-campaign { background: linear-gradient(135deg, #0f3460 0%, #16213e 40%, #1565C0 100%); }
.pc-tpl-thumb-bd-flag { background: linear-gradient(135deg, #006a4e 40%, #f42a41 100%); }
.pc-tpl-thumb-gold-premium { background: linear-gradient(135deg, #1a1a2e 0%, #d4af37 50%, #1a1a2e 100%); }
.pc-tpl-thumb-minimal-white { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); border: 1px solid #e2e8f0; }
.pc-tpl-thumb-gradient-campaign { background: linear-gradient(135deg, #B30F0F 0%, #e01f1f 40%, #ff6a00 100%); }
.pc-tpl-thumb-royal-headline { background: linear-gradient(to bottom, #f8fafc 0 58%, #06192d 58% 100%); }
.pc-tpl-thumb-crimson-headline { background: linear-gradient(to bottom, #ffffff 0 58%, #8f111d 58% 100%); }
.pc-tpl-thumb-golden-headline { background: linear-gradient(to bottom, #fff 0 58%, #101820 58% 100%); position: relative; }

/* ============================================================
   BUTTONS
   ============================================================ */
.pc-btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.pc-btn-primary {
    background: #B30F0F;
    color: #fff;
    flex: 1;
}
.pc-btn-primary:hover {
    background: #990c0c;
}
.pc-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}
.pc-btn-secondary:hover {
    background: #e2e8f0;
}

/* ============================================================
   THE CARD ITSELF
   ============================================================ */
.pc-card {
    position: relative;
    overflow: hidden;
    background: #111;
    font-family: var(--pc-bengali-font-stack);
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    --pc-accent: #B30F0F;
    --pc-accent-soft: rgba(179, 15, 15, 0.85);
    /* Frame designer variables */
    --pc-frame-top-bg: #1a1a2e;
    --pc-frame-bottom-bg: #0d0f1a;
    --pc-frame-border-color: rgba(255,255,255,0.15);
    --pc-frame-border-width: 0px;
    --pc-frame-radius: 0px;
    --pc-frame-shadow: none;
    --pc-image-top: 90px;
    --pc-image-bottom: 120px;
    --pc-image-padding: 0px;
    --pc-image-size: 640px;
    --pc-bg-shape: none;
    width: 1000px;
    height: 1000px;
    border-radius: 6px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.pc-scale-wrap {
    transform-origin: top left;
}

.pc-card-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pc-card-bg-shape { position: absolute; inset: 0; pointer-events: none; z-index: 1; }

.pc-card-brand { position: absolute; top: 28px; right: 32px; display: flex; align-items: center; gap: 10px; z-index: 20; }
.pc-card-brand img { height: 50px; display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }
.pc-card-brand-text { color: #fff; font-weight: 800; font-size: 26px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); letter-spacing: 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

.pc-card-category { display: none !important; }

.pc-card-frame-area { position: absolute; left: 50%; transform: translateX(-50%); top: var(--pc-image-top); z-index: 10; display: flex; align-items: center; justify-content: center; padding: var(--pc-image-padding); box-sizing: border-box; }
.pc-card-frame-border { border: var(--pc-frame-border-width) solid var(--pc-frame-border-color); border-radius: var(--pc-frame-radius); box-shadow: var(--pc-frame-shadow); overflow: hidden; width: var(--pc-image-size); height: var(--pc-image-size); position: relative; background: #ffffff; flex-shrink: 0; }
.pc-card-image { position: absolute; inset: 0; width: 100%; height: 100%; background-color: transparent; background-repeat: no-repeat; background-position: center; background-size: cover; border-radius: inherit; }

.pc-card-gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.65) 30%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0) 100%); z-index: 5; }

.pc-card-text { position: absolute; left: 0; right: 0; bottom: 0px; padding: 36px 48px 44px; z-index: 15; }
.pc-card-shoulder { display: inline-block; color: #ffe3e3; background: rgba(255, 255, 255, 0.14); border-left: 5px solid var(--pc-accent); padding: 6px 16px; font-size: 24px; font-weight: 700; margin-bottom: 14px; border-radius: 3px; max-width: 100%; max-height: 42px; overflow: hidden; box-sizing: border-box; letter-spacing: normal; word-spacing: normal; }
.pc-card-heading { color: #fff; font-size: 60px; line-height: 1.3; font-weight: 800; margin: 0 0 14px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.75), 0 4px 12px rgba(0, 0, 0, 0.5); word-break: normal; overflow-wrap: normal; white-space: normal; text-align: center; letter-spacing: normal; word-spacing: normal; font-family: var(--pc-bengali-font-stack); }
.pc-card-heading-line1 { color: inherit; font-weight: 800; }
.pc-card-heading-line2 { color: #ffd000; font-weight: 800; }
.pc-card-heading-line3 { color: #ffd000; font-weight: 800; }
.pc-card-hanger { color: #eaeaea; font-size: 26px; line-height: 1.4; margin: 0 0 12px; font-weight: 500; max-height: 76px; overflow: hidden; letter-spacing: normal; word-spacing: normal; }
.pc-card-content { color: #d8d8d8; font-size: 22px; line-height: 1.5; margin: 0 0 14px; max-height: 95px; overflow: hidden; letter-spacing: normal; word-spacing: normal; }

.pc-card-date-bar { display: flex; align-items: center; gap: 0; padding: 0; background: transparent; }
.pc-card-date { color: rgba(255,255,255,0.75); font-size: 20px; font-weight: 600; letter-spacing: normal; word-spacing: normal; padding: 8px 0 0; border-top: 1px solid rgba(255,255,255,0.2); display: inline-block; }

/* ============================================================
   FIXED FOOTER BAR — mandatory on every card/theme.
   Single line, bottom-aligned: "বিস্তারিত কমেন্টে" is the primary
   text, always bottom-center; "www.dhakaprobe.com" is the secondary
   text, always bottom-right, never wraps. The empty spacer on the
   left is sized by JS (syncFooterSpacer) to exactly match the right
   badge's width so the primary text is truly centered across the
   full card without ever overlapping the domain.
   The bar itself is flush with the card's edges (left/right/bottom: 0)
   and carries the red background, so .pc-card's own overflow:hidden +
   border-radius automatically clips its bottom corners to match the
   card — no separate radius rule needed here.
   ============================================================ */
.pc-card-footer-note {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    box-sizing: border-box;
    padding: 14px 20px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    background: linear-gradient(135deg, #d81f1f 0%, #b30f0f 55%, #8a0b0b 100%);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.pc-card-footer-spacer {
    flex: 0 0 auto;
}
.pc-card-footer-primary {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    font-family: var(--pc-bengali-font-stack);
    font-size: 19px;
    font-weight: 900;
    line-height: 1.3;
    color: #ffffff;
    letter-spacing: normal;
    word-spacing: normal;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
    hyphens: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.pc-card-footer-right {
    flex: 0 0 auto;
    text-align: right;
    font-family: 'Inter', var(--pc-bengali-font-stack);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* THEMES */
/* ============================================================
   DEFAULT THEME (Dhaka Post Style)
   ============================================================ */
.pc-theme-default {
    background: var(--pc-bg-top, #ffffff) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
}
.pc-theme-default .pc-card-bg,
.pc-theme-default .pc-card-bg-shape,
.pc-theme-default .pc-card-gradient {
    display: none !important;
}

/* Header bar elements */
.pc-theme-default .pc-card-brand {
    top: 25px !important;
    right: 40px !important;
    z-index: 50 !important;
}
.pc-theme-default .pc-card-brand img {
    height: 40px !important;
    filter: none !important;
}
.pc-theme-default .pc-card-brand-text {
    color: #0b3d91 !important;
    text-shadow: none !important;
    font-size: 36px !important;
}

.pc-theme-default .pc-card-text {
    position: static !important;
    padding: 0 !important;
}
.pc-theme-default .pc-card-date-bar {
    position: absolute !important;
    top: 30px !important;
    left: 40px !important;
    z-index: 50 !important;
}
.pc-theme-default .pc-card-date {
    color: var(--pc-date-color, #444) !important;
    border: none !important;
    padding: 0 !important;
    font-size: 24px !important;
    font-weight: 600 !important;
}

/* Full width image */
.pc-theme-default .pc-card-frame-area {
    top: 85px !important;
    left: 0 !important;
    transform: none !important;
    padding: 0 !important;
    width: 1000px !important;
    height: 550px !important; /* adjust height to leave room for text below */
    background: transparent !important;
}
.pc-theme-default .pc-card-frame-border {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Heading block */
.pc-theme-default .pc-card-heading {
    position: absolute !important;
    top: 700px !important;
    left: 50px !important;
    right: 50px !important;
    text-align: center !important;
    color: var(--pc-heading-color, #ff0000) !important;
    text-shadow: none !important;
    font-size: 52px;
    line-height: 1.3;
    font-weight: 800 !important;
    margin: 0 !important;
    z-index: 50 !important;
}

.pc-theme-default .pc-card-heading-line2,
.pc-theme-default .pc-card-heading-line3 {
    color: #000000 !important;
    font-weight: 900 !important;
}

/* Footer / Content / Hanger area */
.pc-theme-default .pc-card-content,
.pc-theme-default .pc-card-hanger {
    position: absolute !important;
    bottom: 56px !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--pc-bg-bottom, #ffffff) !important; /* default white */
    color: var(--pc-hanger-color, #000000) !important;
    margin: 0 !important;
    padding: 25px 40px !important;
    text-align: center !important;
    font-size: 32px !important;
    font-weight: 600 !important;
    max-height: none !important;
    z-index: 50 !important;
}
.pc-theme-politics { --pc-accent: #7a0e0e; }
.pc-theme-politics .pc-card-bg { background: linear-gradient(160deg, #3d0707 0%, #1a1a2e 50%, #111 100%); }
.pc-theme-sports { --pc-accent: #ff6a00; }
.pc-theme-sports .pc-card-bg { background: linear-gradient(160deg, #1a1a2e 0%, #0d1117 50%, #1a0a00 100%); }
.pc-theme-entertainment { --pc-accent: #a3126e; }
.pc-theme-entertainment .pc-card-bg { background: linear-gradient(160deg, #0d0015 0%, #1a0030 50%, #1a002a 100%); }
.pc-theme-national { --pc-accent: #0b3d91; }
.pc-theme-national .pc-card-bg { background: linear-gradient(160deg, #0b1f4a 0%, #0d1a35 50%, #091425 100%); }
.pc-theme-international { --pc-accent: #6b2b0a; }
.pc-theme-international .pc-card-bg { background: linear-gradient(160deg, #1a1a2e 0%, #111 50%, #0d0f12 100%); }
.pc-theme-blue-campaign { --pc-accent: #1565C0; --pc-frame-border-color: #1565C0; --pc-frame-border-width: 6px; --pc-frame-radius: 20px; --pc-frame-shadow: 0 0 0 12px rgba(21, 101, 192, 0.18), 0 16px 48px rgba(0,0,0,0.6); }
.pc-theme-blue-campaign .pc-card-bg { background: linear-gradient(175deg, #0f3460 0%, #16213e 45%, #0a1628 100%); }
.pc-theme-bd-flag { --pc-accent: #006a4e; --pc-frame-border-color: #f42a41; --pc-frame-border-width: 8px; --pc-frame-radius: 50%; --pc-frame-shadow: 0 0 0 14px rgba(244, 42, 65, 0.2), 0 0 0 16px rgba(0, 106, 78, 0.15), 0 16px 48px rgba(0,0,0,0.5); }
.pc-theme-bd-flag .pc-card-bg { background: linear-gradient(160deg, #004a37 0%, #005c45 40%, #003a2c 100%); }
.pc-theme-gold-premium { --pc-accent: #c9a227; --pc-frame-border-color: #d4af37; --pc-frame-border-width: 10px; --pc-frame-radius: 8px; --pc-frame-shadow: 0 0 0 3px #1a1a2e, 0 0 0 13px rgba(212, 175, 55, 0.3), 0 20px 60px rgba(0,0,0,0.6); }
.pc-theme-gold-premium .pc-card-bg { background: linear-gradient(160deg, #0d0d1a 0%, #1a1a2e 45%, #0a0a14 100%); }
.pc-theme-minimal-white { --pc-accent: #1f2937; --pc-frame-border-color: #e5e7eb; --pc-frame-border-width: 6px; --pc-frame-radius: 16px; --pc-frame-shadow: 0 4px 30px rgba(0,0,0,0.18), 0 0 0 2px rgba(0,0,0,0.06); }
.pc-theme-minimal-white .pc-card-bg { background: linear-gradient(160deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%); }
.pc-theme-minimal-white .pc-card-heading { color: #fff; }
.pc-theme-minimal-white .pc-card-brand-text { color: #1f2937; text-shadow: none; }
.pc-theme-gradient-campaign { --pc-accent: #B30F0F; --pc-frame-border-color: rgba(255,255,255,0.6); --pc-frame-border-width: 6px; --pc-frame-radius: 50%; --pc-frame-shadow: 0 0 0 12px rgba(255,255,255,0.1), 0 20px 50px rgba(0,0,0,0.6); }
.pc-theme-gradient-campaign .pc-card-bg { background: linear-gradient(145deg, #B30F0F 0%, #d63031 25%, #e01f1f 50%, #ff6a00 100%); }

/* ============================================================
   PREMIUM PORTRAIT HEADLINE TEMPLATES (Article Photo Card)
   ============================================================ */
.pc-theme-royal-headline,
.pc-theme-crimson-headline,
.pc-theme-golden-headline {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
}

.pc-theme-royal-headline .pc-card-bg,
.pc-theme-royal-headline .pc-card-bg-shape,
.pc-theme-royal-headline .pc-card-gradient,
.pc-theme-crimson-headline .pc-card-bg,
.pc-theme-crimson-headline .pc-card-bg-shape,
.pc-theme-crimson-headline .pc-card-gradient,
.pc-theme-golden-headline .pc-card-bg,
.pc-theme-golden-headline .pc-card-bg-shape,
.pc-theme-golden-headline .pc-card-gradient {
    display: none !important;
}

.pc-theme-royal-headline .pc-card-brand,
.pc-theme-crimson-headline .pc-card-brand,
.pc-theme-golden-headline .pc-card-brand {
    top: 25px !important;
    right: 40px !important;
    z-index: 80 !important;
}

.pc-theme-royal-headline .pc-card-brand img,
.pc-theme-crimson-headline .pc-card-brand img,
.pc-theme-golden-headline .pc-card-brand img {
    height: 40px !important;
    filter: none !important;
}

.pc-theme-royal-headline .pc-card-date-bar,
.pc-theme-crimson-headline .pc-card-date-bar,
.pc-theme-golden-headline .pc-card-date-bar {
    position: absolute !important;
    top: 30px !important;
    left: 40px !important;
    z-index: 80 !important;
}

.pc-theme-royal-headline .pc-card-date,
.pc-theme-crimson-headline .pc-card-date,
.pc-theme-golden-headline .pc-card-date {
    border: none !important;
    color: #30343b !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    padding: 0 !important;
}

.pc-theme-royal-headline .pc-card-text,
.pc-theme-crimson-headline .pc-card-text,
.pc-theme-golden-headline .pc-card-text {
    position: static !important;
    padding: 0 !important;
}

.pc-theme-royal-headline .pc-card-frame-area,
.pc-theme-crimson-headline .pc-card-frame-area,
.pc-theme-golden-headline .pc-card-frame-area {
    top: 85px !important;
    left: 0 !important;
    transform: none !important;
    width: 1000px !important;
    height: 590px !important;
    padding: 0 !important;
    background: transparent !important;
}

.pc-theme-royal-headline .pc-card-frame-border,
.pc-theme-crimson-headline .pc-card-frame-border,
.pc-theme-golden-headline .pc-card-frame-border {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.pc-theme-royal-headline .pc-card-heading,
.pc-theme-crimson-headline .pc-card-heading,
.pc-theme-golden-headline .pc-card-heading {
    position: absolute !important;
    top: 714px !important;
    left: 34px !important;
    right: 34px !important;
    margin: 0 !important;
    text-align: center !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.75), 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    font-size: 58px;
    line-height: 1.25;
    font-weight: 800 !important;
    font-family: var(--pc-bengali-font-stack) !important;
    z-index: 70 !important;
    letter-spacing: normal;
    word-spacing: normal;
}

.pc-theme-royal-headline .pc-card-content,
.pc-theme-royal-headline .pc-card-hanger,
.pc-theme-crimson-headline .pc-card-content,
.pc-theme-crimson-headline .pc-card-hanger,
.pc-theme-golden-headline .pc-card-content,
.pc-theme-golden-headline .pc-card-hanger {
    display: none !important;
}

.pc-theme-royal-headline::after,
.pc-theme-crimson-headline::after,
.pc-theme-golden-headline::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 56px;
    height: 275px;
    z-index: 40;
}

/* 1. Royal Navy Template */
.pc-theme-royal-headline::after {
    background: linear-gradient(180deg, #0b1e36 0%, #061220 100%);
    border-top: 6px solid #d91f2a;
}

.pc-theme-royal-headline .pc-card-heading,
.pc-theme-royal-headline .pc-card-heading-line1 {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.pc-theme-royal-headline .pc-card-heading-line2,
.pc-theme-royal-headline .pc-card-heading-line3 {
    color: #ffd000 !important;
    font-weight: 800 !important;
}

/* 2. Crimson Spotlight Template (Matches Reference Image) */
.pc-theme-crimson-headline::after {
    background: linear-gradient(145deg, #870b16 0%, #630710 55%, #3e0409 100%);
    border-top: 6px solid #ffffff;
    box-shadow: inset 0 16px 0 rgba(255,255,255,0.06);
}

.pc-theme-crimson-headline .pc-card-heading,
.pc-theme-crimson-headline .pc-card-heading-line1 {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.pc-theme-crimson-headline .pc-card-heading-line2,
.pc-theme-crimson-headline .pc-card-heading-line3 {
    color: #ffd000 !important;
    font-weight: 800 !important;
}

/* 3. Golden Portrait Template */
.pc-theme-golden-headline::after {
    background: linear-gradient(160deg, #101820 0%, #182637 58%, #0d1117 100%);
    border-top: 6px solid #d4af37;
}

.pc-theme-golden-headline .pc-card-heading,
.pc-theme-golden-headline .pc-card-heading-line1 {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.pc-theme-golden-headline .pc-card-heading-line2,
.pc-theme-golden-headline .pc-card-heading-line3 {
    color: #ffd000 !important;
    font-weight: 800 !important;
}

/* ============================================================
   DOWNLOAD PAGE STYLES
   ============================================================ */
.pc-download-theme-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 10px 0 14px;
}

.pc-download-theme-btn {
    background: #ffffff;
    border: 1px solid #d9dde5;
    border-radius: 999px;
    color: #1f2937;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    transition: all 0.18s ease;
}

.pc-download-theme-btn:hover,
.pc-download-theme-btn.active {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.pc-download-page .product-area {
    max-width: 760px;
    margin: 0 auto;
}

.pc-preview-panel-head-standalone {
    max-width: 520px;
    margin: 0 auto;
}

.pc-download-stage {
    width: 100%;
    max-width: 520px;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    padding: 10px;
    border-radius: 10px;
}

.pc-download-stage .pc-card {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

@media (max-width: 575px) {
    .pc-download-page .product-area {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .pc-download-stage {
        max-width: 92vw;
        padding: 6px;
    }
}
