/**
 * BD IT Photo Card - Frontend & Modal Styles
 * Developed by: BD IT (https://bdit.com.bd | 01791163610)
 */

@import url('https://fonts.googleapis.com/css2?family=Anek+Bangla:wght@400;500;600;700;800&family=Hind+Siliguri:wght@400;500;600;700&display=swap');

/* Compact & Sleek Trigger Button on Single News Post */
.bdit-pc-btn-wrap {
    margin: 10px 0 16px 0;
    display: inline-flex;
    align-items: center;
    clear: both;
}

.bdit-pc-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0f7c39;
    color: #ffffff !important;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border-radius: 6px;
    border: 1px solid #0d6d32;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(15, 124, 57, 0.2);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1.4;
    outline: none;
}

.bdit-pc-trigger-btn:hover {
    background: #096336;
    border-color: #074e2a;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 124, 57, 0.32);
    color: #ffffff !important;
}

.bdit-pc-trigger-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(15, 124, 57, 0.2);
}

.bdit-pc-trigger-btn svg {
    flex-shrink: 0;
}

/* Modal Overlay */
.bdit-pc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-family: 'Hind Siliguri', sans-serif;
}

.bdit-pc-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content Box */
.bdit-pc-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 1050px;
    max-height: 92vh;
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bdit-pc-modal.active .bdit-pc-modal-content {
    transform: scale(1);
}

/* Modal Header */
.bdit-pc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.bdit-pc-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f7c39;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bdit-pc-close-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.bdit-pc-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Modal Body (2 Columns) */
.bdit-pc-modal-body {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    padding: 24px;
    overflow-y: auto;
    align-items: start;
}

@media (max-width: 860px) {
    .bdit-pc-modal-body {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }
}

/* Preview Column */
.bdit-pc-preview-wrap {
    background: #0f172a;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.4);
}

.bdit-pc-preview-wrap canvas {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

/* Controls Column */
.bdit-pc-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bdit-pc-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
}

.bdit-pc-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.bdit-pc-font-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bdit-pc-btn-size {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.bdit-pc-btn-size:hover {
    background: #0f7c39;
    color: #ffffff;
    border-color: #0f7c39;
}

.bdit-pc-btn-size:active {
    transform: scale(0.95);
}

.bdit-pc-slider {
    flex: 1;
    cursor: pointer;
    accent-color: #0f7c39;
}

.bdit-pc-badge {
    font-size: 13px;
    font-weight: 700;
    color: #0f7c39;
    background: #eaf6ee;
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 40px;
    text-align: center;
}

/* Action Buttons inside modal */
.bdit-pc-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.bdit-pc-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.bdit-pc-btn-download {
    background: #0f7c39;
    color: #ffffff;
}

.bdit-pc-btn-download:hover {
    background: #0a632c;
    box-shadow: 0 4px 14px rgba(15, 124, 57, 0.3);
}

.bdit-pc-btn-copy {
    background: #334155;
    color: #ffffff;
}

.bdit-pc-btn-copy:hover {
    background: #1e293b;
}

/* Modal Footer / Developer credit */
.bdit-pc-modal-footer {
    padding: 10px 24px;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bdit-pc-modal-footer a {
    color: #0f7c39;
    text-decoration: none;
    font-weight: 600;
}
