/* ==================================================
   Photocard Page Styles
================================================== */
body.photocard-page {
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    font-family: 'Kalpurush', sans-serif;
}

.photocard-container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.photocard-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.photocard-header h1 {
    margin: 0 0 20px 0;
    font-size: 26px;
    color: #333;
}

.photocard-templates-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.pc-tab-btn {
    padding: 10px 30px;
    background: #f1f1f1;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s;
    font-family: inherit;
    color: #555;
}

.pc-tab-btn.active, .pc-tab-btn:hover {
    background: #1877f2; /* A nice default blue, or var(--primary-color) if available */
    color: #fff;
}

.photocard-body {
    padding: 40px 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    overflow-x: auto;
}

.photocard-footer {
    padding: 25px;
    border-top: 1px solid #eee;
    text-align: center;
    background: #fff;
}

.pc-download-btn {
    background: #198754;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pc-download-btn:hover {
    background: #157347;
}

.pc-template-wrapper {
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.pc-template-wrapper.active {
    display: block;
}

/* -------------------------------------
   Template Base
-------------------------------------- */
.pc-card {
    width: 640px;
    background: #fff;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.pc-card * {
    box-sizing: border-box;
}

/* Template 1 - White/Cyan */
.pc-style-1 {
    display: flex;
    flex-direction: column;
}

.pc-header-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #fff;
}

.pc-logo-1 img {
    height: 50px;
    object-fit: contain;
}

.pc-date-1 {
    background: #e6f6f3;
    color: #032b21;
    font-weight: bold;
    padding: 10px 20px;
    border-left: 4px solid #168a71;
    font-size: 18px;
}

.pc-image-1 {
    width: 100%;
    height: 400px;
}

.pc-image-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pc-content-1 {
    background: #f2faf8;
    padding: 50px 40px 70px 40px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.pc-title-1 {
    font-size: 34px;
    line-height: 1.5;
    color: #111;
    margin: 0;
    font-weight: 700;
}

.pc-footer-1 {
    background: linear-gradient(180deg, #8ad1c4 0%, #64c2b1 100%);
    text-align: center;
    padding: 20px;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
}

/* Template 2 - Dark Overlay */
.pc-style-2 {
    height: 800px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.pc-overlay-2 {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0.95) 100%);
    z-index: 1;
}

.pc-logo-2 {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 2;
    background: #fff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.pc-logo-2 img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.pc-content-2 {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 30px;
}

.pc-meta-2 {
    display: inline-block;
    background: rgba(121, 15, 19, 0.9);
    color: #fff;
    padding: 8px 20px;
    border-radius: 3px;
    font-size: 16px;
    margin-bottom: 25px;
}

.pc-title-2 {
    color: #ffde00;
    font-size: 38px;
    line-height: 1.4;
    font-weight: bold;
    margin: 0 0 20px 0;
}

.pc-subtitle-2 {
    color: #ffde00;
    font-size: 20px;
    margin: 0 0 20px 0;
    position: relative;
    display: inline-block;
}

.pc-subtitle-2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20%;
    width: 60%;
    height: 1px;
    background: #fff;
}

.pc-domain-2 {
    color: #ccc;
    font-size: 16px;
    margin-bottom: 10px;
}

.pc-domain-2 i {
    margin-right: 5px;
}

.pc-ad-banner-2 {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100px;
    background: #111;
}

.pc-ad-banner-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Scale down preview for smaller screens */
@media (max-width: 768px) {
    .photocard-preview-container {
        transform: scale(0.5);
        transform-origin: top center;
        height: 450px;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .photocard-preview-container {
        transform: scale(0.8);
        transform-origin: top center;
        height: 650px;
    }
}
