/* ============================================================
   Golden Card Widget — Dr. Rezvani Vet Clinic
   Extracted from includes/footer.php inline styles
   ============================================================ */

/* ------------------------------------------------------------
   1) Floating Action Button
   ------------------------------------------------------------ */
.vet-fab {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 9990;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37, #f0a500);
    color: #002f6c;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(212,175,55,.8), 0 8px 25px rgba(0,0,0,.4);
    transition: transform .3s ease, box-shadow .3s ease;
    animation: fabPulse 2.5s infinite;
    padding: 0;
}

.vet-fab:hover,
.vet-fab:focus-visible {
    transform: scale(1.15);
    box-shadow: 0 0 40px rgba(255,213,79,1);
    outline: none;
}

.vet-fab:active { transform: scale(1.05); }

@keyframes fabPulse {
    0%   { box-shadow: 0 0 0 0 rgba(212,175,55,.8); }
    50%  { box-shadow: 0 0 0 20px rgba(212,175,55,0); }
    100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); }
}

/* ------------------------------------------------------------
   2) Toast Notification
   ------------------------------------------------------------ */
.vet-toast {
    position: fixed;
    bottom: 150px;
    right: 20px;
    z-index: 9989;
    width: 260px;
    background: linear-gradient(145deg, #0b1120 0%, #1e293b 100%);
    color: #fff;
    border-radius: 24px;
    padding: 1.2rem;
    box-shadow: 0 25px 45px rgba(0,0,0,.5), 0 0 35px rgba(212,175,55,.5);
    border: 2px solid rgba(212,175,55,.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
    display: none;
}

.vet-toast.active {
    display: block;
    animation: toastIn .6s cubic-bezier(.34,1.56,.64,1) forwards;
}

.vet-toast .toast-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fff;
    color: #0b1120;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    border: 2px solid #D4AF37;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    padding: 0;
}

.vet-toast .toast-cta {
    background: linear-gradient(135deg, #ffd54f, #f0a500);
    color: #002f6c;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    margin-top: 12px;
    cursor: pointer;
    font-size: 1rem;
    transition: filter .2s ease, transform .2s ease;
}

.vet-toast .toast-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(30px) scale(.9); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ------------------------------------------------------------
   3) Modal
   ------------------------------------------------------------ */
.vet-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
}

.vet-modal.active { display: flex; }

.vet-modal-card {
    background: #fff;
    border-radius: 32px;
    padding: 2.5rem 2rem;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 40px 60px rgba(0,0,0,.4);
    text-align: center;
    position: relative;
    animation: modalIn .5s ease;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(60px); }
    to   { opacity: 1; transform: translateY(0); }
}

.vet-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    transition: color .2s ease;
}

.vet-modal-close:hover { color: #000; }

.vet-modal-card h2 {
    color: #0b1120;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.vet-modal-card input[type="text"] {
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    width: 80%;
    margin: 12px auto;
    text-align: center;
    font-size: 1rem;
    outline: none;
    display: block;
    transition: border-color .2s ease;
}

.vet-modal-card input[type="text"]:focus { border-color: #D4AF37; }

/* ------------------------------------------------------------
   4) Upload / Preview
   ------------------------------------------------------------ */
.vet-upload-label {
    display: inline-block;
    padding: 12px 24px;
    background: #f8fafc;
    border: 2px dashed #D4AF37;
    border-radius: 14px;
    cursor: pointer;
    margin: 12px 0;
    font-size: .95rem;
    transition: background .2s ease;
}

.vet-upload-label:hover { background: #fff8e1; }

#vet-pet-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #D4AF37;
    display: none;
    margin: 10px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* ------------------------------------------------------------
   5) Options / Buttons
   ------------------------------------------------------------ */
.vet-option-btn {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 14px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
    font-family: inherit;
    color: inherit;
}

.vet-option-btn:hover {
    background: #fff8e1;
    border-color: #D4AF37;
    transform: translateY(-2px);
}

.vet-primary-btn {
    background: linear-gradient(135deg, #0b1120, #1e293b);
    color: #ffd54f;
    border: none;
    padding: 14px 36px;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1.2rem;
    text-decoration: none;
    display: inline-block;
    font-size: 1.1rem;
    transition: filter .2s ease, transform .2s ease;
}

.vet-primary-btn:hover { filter: brightness(1.2); transform: translateY(-1px); }

/* ------------------------------------------------------------
   6) Share Buttons
   ------------------------------------------------------------ */
.vet-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 30px;
    border: none;
    color: #fff;
    font-weight: 700;
    margin: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform .2s ease, filter .2s ease;
    font-family: inherit;
}

.vet-share-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }

.vet-share-btn.instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.vet-share-btn.whatsapp  { background: #25D366; }
.vet-share-btn.telegram  { background: #0088cc; }
.vet-share-btn.bale      { background: #2ecc71; }
.vet-share-btn.eitaa     { background: #f48120; }
.vet-share-btn.rubika    { background: #f5c542; color: #000; }
.vet-share-btn.copy      { background: #475569; }

/* ------------------------------------------------------------
   7) Result Image
   ------------------------------------------------------------ */
#vet-result-img {
    width: 100%;
    border-radius: 24px;
    margin: 1.5rem 0;
    box-shadow: 0 15px 35px rgba(0,0,0,.25);
}

/* ------------------------------------------------------------
   8) Responsive
   ------------------------------------------------------------ */
@media (max-width: 520px) {
    .vet-modal-card { padding: 2rem 1.25rem; border-radius: 24px; }
    .vet-modal-card h2 { font-size: 1.6rem; }
    .vet-toast { width: calc(100vw - 40px); right: 20px; bottom: 140px; }
    .vet-fab   { bottom: 70px; right: 16px; }
    .vet-share-btn { padding: 10px 16px; font-size: .9rem; margin: 6px; }
}

/* ------------------------------------------------------------
   9) Reduced Motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .vet-fab,
    .vet-toast.active,
    .vet-modal-card,
    .vet-option-btn,
    .vet-primary-btn,
    .vet-share-btn {
        animation: none !important;
        transition: none !important;
    }
}