/* Post to Image Generator Styles */

#pti-content {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 1000px;
    background: #fff;
    border: var(--pti-border-width, 5px) solid var(--pti-border-color, #004d40);
    padding: 25px 30px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    box-sizing: border-box;
}

.pti-inner-border {
    border: none;
    background: transparent;
    padding: 0;
    box-sizing: border-box;
}

.pti-logo {
    text-align: center;
    margin-bottom: 15px;
}

.pti-logo img {
    max-height: 80px;
    width: auto;
    display: inline-block;
}

.pti-logo h1 {
    font-size: 28px;
    margin: 0;
    color: #222;
}

.pti-meta {
    background-color: var(--pti-meta-color, #ffeb3b);
    color: var(--pti-meta-text-color, #ffffff);
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.pti-title {
    font-family: 'Ramabhadra', sans-serif;
    font-size: 36px;
    line-height: 1.3;
    margin: 0 0 20px 0;
    color: #cc0000;
    /* Red title as in screenshot */
    text-align: center;
}

.pti-body-container {
    display: flex;
    flex-direction: column;
}

.pti-body-text {
    font-family: 'Ramabhadra', sans-serif;
    font-weight: 100;
    font-size: 20px;
    line-height: 1.4;
    color: #222;
    column-count: 3;
    column-gap: 20px;
    text-align: justify;
}

.pti-featured-image {
    text-align: center;
    margin: 0 15px 15px 0;
    border: 1px solid #ccc;
    padding: 5px;
    box-sizing: border-box;
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    page-break-inside: avoid;
}

.pti-featured-image img {
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

.pti-body-text img {
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 15px auto;
}

.pti-footer {
    margin-top: 30px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    color: #555;
    font-family: Arial, sans-serif;
}

.pti-dots {
    display: flex;
    gap: 6px;
}

.pti-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.pti-dot-cyan {
    background-color: #00bcd4;
}

.pti-dot-pink {
    background-color: #e91e63;
}

.pti-dot-yellow {
    background-color: #ffeb3b;
}

.pti-dot-black {
    background-color: #000000;
}

/* Modal Styles */
#pti-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: #eef1f5;
    /* Light gray background to match UI */
    z-index: 99999;
    flex-direction: column;
}

.pti-modal-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: relative;
}

.pti-close {
    position: absolute;
    top: 20px;
    right: 30px;
    cursor: pointer;
    font-size: 36px;
    color: #444;
    font-weight: bold;
    z-index: 100000;
    line-height: 1;
}

.pti-close:hover {
    color: #000;
}

.pti-scroll-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

#pti-canvas {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    /* Center it */
}

.pti-toolbar {
    background: #eaebef;
    padding: 20px 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #dcdcdc;
}

.pti-btn {
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    /* Pill shape */
    font-weight: bold;
    cursor: pointer;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    text-decoration: none;
    font-family: Arial, sans-serif;
}

.pti-btn:hover {
    opacity: 0.9;
    color: white;
    /* Maintain white color on hover for link */
}

.pti-btn-gray {
    background: #607d8b;
}

.pti-btn-cyan {
    background: #00adef;
    /* Cyan print button */
}

.pti-btn-green {
    background: #1dd1a1;
    /* Green download button */
}

.pti-btn-orange {
    background: #ff8c00;
    /* Orange share button */
}

.pti-caret {
    font-size: 10px;
    margin-left: 5px;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .pti-toolbar {
        padding: 15px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .pti-scroll-container {
        padding: 15px;
    }

    .pti-btn {
        padding: 10px 5px;
        font-size: 11px;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }

    .pti-close {
        top: -30px;
        right: 0px;
        font-size: 28px;
        color: #fff;
    }
}