/* ========================================================
   NEWS PHOTO CARD STYLES
   ======================================================== */

.btn-share.photocard {
    background: linear-gradient(135deg, #0d9488, #059669);
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.3);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-share.photocard:hover {
    background: linear-gradient(135deg, #0f766e, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.4);
}

.btn-meta-photocard {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    padding: 4px 11px;
    border-radius: 16px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.btn-meta-photocard:hover {
    background: #d1fae5;
    border-color: #6ee7b7;
    transform: translateY(-1px);
}

/* Modal Backdrop */
.photocard-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.photocard-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Dialog Box */
.photocard-modal-dialog {
    background: #ffffff;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transform: scale(0.96);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.photocard-modal-backdrop.active .photocard-modal-dialog {
    transform: scale(1);
}

/* Modal Header */
.photocard-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #0f172a;
    color: #ffffff;
    border-bottom: 1px solid #1e293b;
}

.photocard-modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.photocard-modal-header h3 i {
    color: #38bdf8;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.btn-close-modal:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Modal Body */
.photocard-modal-body {
    padding: 16px;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8fafc;
}

/* Preview Canvas Container */
.photocard-preview-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 440px;
}

.photocard-preview-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.28);
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
    background: #062621;
}

.photocard-preview-box canvas {
    width: 100%;
    height: auto;
    display: block;
}

/* Modal Footer */
.photocard-modal-footer {
    padding: 14px 18px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.photocard-actions-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.btn-card-download {
    background: #0d9488;
    color: #ffffff;
}

.btn-card-download:hover {
    background: #0f766e;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.btn-card-facebook {
    background: #1877f2;
    color: #ffffff;
}

.btn-card-facebook:hover {
    background: #0d65d9;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.btn-card-copy {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.btn-card-copy:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-card-cancel {
    background: transparent;
    color: #64748b;
    border: 1px solid transparent;
}

.btn-card-cancel:hover {
    color: #0f172a;
    background: #f1f5f9;
}

/* Toast message */
.photocard-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #0f172a;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.86rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.photocard-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 540px) {
    .photocard-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .photocard-actions-primary {
        flex-direction: column;
        width: 100%;
    }
    .photocard-actions-primary button {
        width: 100%;
    }
    .btn-card-cancel {
        width: 100%;
    }
}
