/* ==========================================================================
   Syed Hassan Contact Directory - Digital Visiting Cards Styles
   ========================================================================== */

.wptd-card-viewer-wrap {
    width: 100%;
    margin: 16px 0;
}

/* 3D Perspective Stage */
.wptd-card-stage {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 8px 0 16px 0;
}

.wptd-card-container {
    width: 100%;
    max-width: 480px;
    height: 275px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 16px;
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    text-align: left;
    user-select: none;
}

.wptd-card-container.flipped {
    transform: rotateY(180deg);
}

.wptd-card-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    padding: 20px 22px;
    justify-content: space-between;
}

.wptd-card-back {
    transform: rotateY(180deg);
}

/* --------------------------------------------------------------------------
   Themes / Templates
   -------------------------------------------------------------------------- */

/* 1. Corporate Sapphire */
.wptd-card-container.theme-corporate .wptd-card-front {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 2.5px solid #2563eb;
    color: #0f172a;
}
.wptd-card-container.theme-corporate .wptd-card-back {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    border: 2.5px solid #3b82f6;
    color: #ffffff;
}

/* 2. Executive Obsidian & Gold */
.wptd-card-container.theme-executive .wptd-card-front {
    background: linear-gradient(135deg, #090d16 0%, #1e293b 100%);
    border: 2.5px solid #eab308;
    color: #ffffff;
}
.wptd-card-container.theme-executive .wptd-card-back {
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    border: 2.5px solid #ca8a04;
    color: #ffffff;
}

/* 3. Prestige Emerald */
.wptd-card-container.theme-emerald .wptd-card-front {
    background: linear-gradient(135deg, #022c22 0%, #065f46 100%);
    border: 2.5px solid #10b981;
    color: #ffffff;
}
.wptd-card-container.theme-emerald .wptd-card-back {
    background: linear-gradient(135deg, #011c15 0%, #064e3b 100%);
    border: 2.5px solid #34d399;
    color: #ffffff;
}

/* 4. Minimalist Silver */
.wptd-card-container.theme-minimal .wptd-card-front {
    background: #ffffff;
    border: 2px solid #cbd5e1;
    color: #0f172a;
}
.wptd-card-container.theme-minimal .wptd-card-back {
    background: #f8fafc;
    border: 2px solid #94a3b8;
    color: #0f172a;
}

/* --------------------------------------------------------------------------
   Front Face Elements
   -------------------------------------------------------------------------- */
.wptd-card-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.wptd-card-biz-name {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.wptd-card-subline {
    font-size: 11px;
    opacity: 0.85;
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

.wptd-card-verified-badge {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: 1px solid currentColor;
    padding: 2px 7px;
    border-radius: 12px;
    white-space: nowrap;
    opacity: 0.9;
}

.wptd-card-midrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0;
    gap: 12px;
}

.wptd-card-contact-list {
    font-size: 11.5px;
    line-height: 1.6;
    flex: 1;
    min-width: 0;
}

.wptd-card-item {
    margin: 1px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wptd-card-qr-box {
    text-align: center;
    background: #ffffff;
    padding: 4px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.wptd-card-qr-img {
    width: 66px;
    height: 66px;
    display: block;
    border-radius: 3px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.wptd-card-qr-label {
    font-size: 7.5px;
    font-weight: 700;
    color: #0f172a;
    display: block;
    margin-top: 2px;
    letter-spacing: 0.04em;
}

.wptd-card-footrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 9px;
    opacity: 0.78;
    border-top: 1px solid rgba(125, 125, 125, 0.2);
    padding-top: 6px;
}

.wptd-card-site-credit {
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    opacity: 0.85;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Back Face Elements
   -------------------------------------------------------------------------- */
.wptd-card-back-content {
    text-align: center;
    margin: auto;
    width: 100%;
}

.wptd-card-initial-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.wptd-card-initial-badge span {
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
}

.wptd-card-back-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.wptd-card-back-category {
    margin: 3px 0 0 0;
    font-size: 11px;
    opacity: 0.85;
}

.wptd-card-back-address {
    margin-top: 8px;
    font-size: 10.5px;
    opacity: 0.8;
}

.wptd-card-back-meta {
    margin-top: 14px;
    font-size: 9.5px;
    opacity: 0.7;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* --------------------------------------------------------------------------
   Toolbar Buttons & Actions
   -------------------------------------------------------------------------- */
.wptd-card-toolbar {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 14px 0 6px 0;
}

.wptd-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.2;
}

.wptd-card-btn.btn-flip {
    background: #e2e8f0;
    color: #1e293b;
}
.wptd-card-btn.btn-flip:hover {
    background: #cbd5e1;
}

.wptd-card-btn.btn-jpeg {
    background: #059669;
    color: #ffffff;
}
.wptd-card-btn.btn-jpeg:hover {
    background: #047857;
}

.wptd-card-btn.btn-pdf {
    background: #2563eb;
    color: #ffffff;
}
.wptd-card-btn.btn-pdf:hover {
    background: #1d4ed8;
}

.wptd-card-hint {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}
