/* ══════════════════════════════════════
   Greeting Card Woo — card.css v1.0
   ══════════════════════════════════════ */

/* ── PRODUCT PAGE FORM ── */
.gcw-form-wrap {
    margin: 1.4rem 0 1rem;
    padding: 1.4rem 1.6rem;
    background: #1a0a1e;
    border: 1px solid rgba(212,83,126,0.25);
    border-radius: 14px;
}
.gcw-field { margin-bottom: 1rem; }
.gcw-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #c09ab0;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.gcw-field input,
.gcw-field textarea {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    font-size: 15px;
    color: #fff;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color .22s;
    box-sizing: border-box;
}
.gcw-field input::placeholder,
.gcw-field textarea::placeholder { color: #6a4a5a; }
.gcw-field input:focus,
.gcw-field textarea:focus { border-color: #c9923a; }

.gcw-preview-btn {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, #c0193a 0%, #e8547a 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s;
    margin-top: .3rem;
}
.gcw-preview-btn:hover { opacity: .86; }

/* ── MODAL ── */
.gcw-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.7);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gcwFadeIn .3s ease;
}
@keyframes gcwFadeIn { from{opacity:0} to{opacity:1} }

.gcw-modal-inner {
    width: min(96vw, 500px);
    border-radius: 18px;
    overflow: hidden;
}
.gcw-modal-bg {
    position: relative;
    width: 100%;
    height: 420px;
    background: linear-gradient(160deg, #1a0a1e 0%, #2d0d1e 60%, #1a0a12 100%);
    overflow: hidden;
}
.gcw-scene-ui {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

/* ── 3-D CARD ── */
#gcw-card-wrap { perspective: 900px; cursor: pointer; }
#gcw-card3d {
    width: 280px;
    height: 182px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform .85s cubic-bezier(.4,0,.2,1);
    animation: gcwFloat 4s ease-in-out infinite;
}
#gcw-card3d.gcw-flipped {
    transform: rotateY(180deg);
    animation: gcwFloatF 4s ease-in-out infinite;
}
@keyframes gcwFloat  { 0%,100%{transform:translateY(0)}      50%{transform:translateY(-10px)} }
@keyframes gcwFloatF { 0%,100%{transform:rotateY(180deg) translateY(0)} 50%{transform:rotateY(180deg) translateY(-10px)} }

.gcw-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 20px;
    text-align: center;
}
.gcw-card-front {
    background: linear-gradient(135deg, #4b1528 0%, #8d2a4a 50%, #4b1528 100%);
    border: 1.5px solid rgba(212,83,126,.7);
    box-shadow: 0 8px 40px rgba(192,25,58,.4);
}
.gcw-card-back {
    background: linear-gradient(135deg, #1a1a3e 0%, #2d2d5a 50%, #1a1a3e 100%);
    border: 1.5px solid rgba(127,119,221,.6);
    transform: rotateY(180deg);
    box-shadow: 0 8px 40px rgba(100,80,200,.35);
}
.gcw-deco  { font-size: 26px; }
.gcw-title { font-size: 20px; font-weight: 700; color: #F4C0D1; letter-spacing: 1px; }
.gcw-name  { font-size: 16px; font-style: italic; color: #ffeef5; }
.gcw-wish  { font-size: 13px; font-style: italic; color: #EEEDFE; line-height: 1.7; }
.gcw-hint  { font-size: 11px; color: rgba(245,196,179,.65); margin-top: 3px; }

/* Rose petals */
.gcw-rose {
    position: absolute;
    pointer-events: none;
    animation: gcwRise linear infinite;
}
@keyframes gcwRise {
    0%   { transform: translateY(110%) rotate(-5deg); opacity: 0; }
    8%   { opacity: 1; }
    88%  { opacity: .7; }
    100% { transform: translateY(-15%) rotate(15deg); opacity: 0; }
}
.gcw-sparkle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: gcwTwinkle ease-in-out infinite;
}
@keyframes gcwTwinkle {
    0%,100%{opacity:0;transform:scale(.4)}
    50%    {opacity:1;transform:scale(1.6)}
}

/* Modal bottom */
.gcw-modal-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.gcw-modal-note { font-size: 12px; color: rgba(255,200,220,.55); }
.gcw-close-btn {
    padding: 10px 28px;
    background: linear-gradient(135deg, #8a5a10, #c9923a, #f0c060);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s;
}
.gcw-close-btn:hover { opacity: .86; }

/* ── THANK-YOU PAGE ── */
.gcw-thankyou-wrap {
    margin: 2rem 0;
    padding: 2rem;
    background: #1a0a1e;
    border: 1px solid rgba(212,83,126,.25);
    border-radius: 18px;
}
.gcw-thankyou-wrap h3 {
    font-size: 20px;
    color: #f0c060;
    margin-bottom: .5rem;
    text-align: center;
}
.gcw-ty-scene {
    position: relative;
    width: 100%;
    height: 340px;
    background: linear-gradient(160deg, #1a0a1e 0%, #2d0d1e 60%, #1a0a12 100%);
    border-radius: 12px;
    overflow: hidden;
    margin: 1.2rem 0;
}
.gcw-ty-scene .gcw-scene-ui { gap: 14px; }
#gcw-ty-card3d {
    width: 260px;
    height: 168px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform .85s cubic-bezier(.4,0,.2,1);
    animation: gcwFloat 4s ease-in-out infinite;
    cursor: pointer;
}
#gcw-ty-card3d.gcw-flipped {
    transform: rotateY(180deg);
    animation: gcwFloatF 4s ease-in-out infinite;
}

/* ── SHARE BUTTONS (thank-you) ── */
.gcw-share-label {
    font-size: 12px;
    color: #9a7a8a;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    margin-bottom: .6rem;
}
.gcw-share-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.gcw-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    border-radius: 11px;
    border: 1px solid;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    background: none;
    text-decoration: none;
    transition: opacity .2s, transform .15s;
}
.gcw-share-btn:hover  { opacity: .82; }
.gcw-share-btn:active { transform: scale(.96); }
.gcw-share-btn .gcw-ic { font-size: 18px; }
.gcw-share-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.gcw-sh-native  { grid-column: 1/-1; background: rgba(201,146,58,.18); border-color: rgba(201,146,58,.5); color: #f0c060; }
.gcw-sh-viber   { background: rgba(115,96,242,.15); border-color: rgba(115,96,242,.4); color: #c8a0f5; }
.gcw-sh-wa      { background: rgba(37,211,102,.12); border-color: rgba(37,211,102,.35); color: #6fe8a0; }
.gcw-sh-sms     { background: rgba(90,160,255,.12); border-color: rgba(90,160,255,.3); color: #90c8ff; }
.gcw-sh-copy    { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #c0b0d0; }
