/* Al Adaq - Luxury Gold & Aubergine Share Modal & Card Styles */

@font-face {
    font-family: 'Roboto Mono';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/roboto-mono-v31-latin-700.woff2') format('woff2');
}

.prayer-share-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.btn-share-prayer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 26px;
    border-radius: 50px;
    background: linear-gradient(135deg, #2A1433 0%, #190C1C 100%);
    color: #D4AF37;
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(42, 20, 51, 0.25);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    text-decoration: none;
}

.btn-share-prayer:hover {
    background: linear-gradient(135deg, #371A43 0%, #221027 100%);
    border-color: rgba(212, 175, 55, 0.9);
    color: #F3E5AB;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(212, 175, 55, 0.25);
}

.btn-share-prayer:active {
    transform: translateY(0);
}

/* App Hero & Footer Share Buttons */
.share-app-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 16px;
    background: rgba(212, 175, 55, 0.12);
    border: 1.5px solid rgba(212, 175, 55, 0.45);
    color: #D4AF37;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    text-decoration: none;
}

.share-app-hero-btn:hover {
    background: rgba(212, 175, 55, 0.22);
    border-color: #D4AF37;
    color: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.share-app-hero-btn:active {
    transform: translateY(0);
}

.share-app-bottom-btn {
    background: #FFFFFF;
    color: var(--brand-primary, #301934);
    border: 1.5px solid rgba(48, 25, 52, 0.15);
}

.share-app-bottom-btn:hover {
    background: #F8F5FA;
    color: var(--brand-primary, #301934);
    border-color: var(--brand-primary, #301934);
    box-shadow: 0 8px 20px rgba(48, 25, 52, 0.15);
}

/* Share Modal Overlay & Dialog */
.aladaq-share-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 7, 18, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.aladaq-share-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.aladaq-share-modal-dialog {
    width: 100%;
    max-width: 460px;
    max-height: 94vh;
    overflow-y: auto;
    background: linear-gradient(160deg, #24142B 0%, #17091B 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.45);
    border-radius: 26px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(212, 175, 55, 0.12);
    padding: 20px;
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
}

.aladaq-share-modal-overlay.active .aladaq-share-modal-dialog {
    transform: scale(1);
}

.aladaq-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.aladaq-modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #D4AF37;
}

.aladaq-modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
}

.aladaq-modal-close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #FFF;
    transform: rotate(90deg);
}

/* Canvas Preview Container */
.aladaq-canvas-preview-box {
    position: relative;
    margin: 14px 0;
    border-radius: 18px;
    overflow: hidden;
    background: #150A18;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

#shareCardCanvas {
    width: 100%;
    height: auto;
    max-height: 50vh;
    display: block;
    object-fit: contain;
}

.canvas-loading {
    position: absolute;
    inset: 0;
    background: rgba(23, 9, 27, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
}

.canvas-loading .spinner {
    width: 42px;
    height: 42px;
    border: 3.5px solid rgba(212, 175, 55, 0.2);
    border-top-color: #D4AF37;
    border-radius: 50%;
    animation: aladaq-spin 0.8s linear infinite;
}

@keyframes aladaq-spin {
    to { transform: rotate(360deg); }
}

/* Action Buttons Grid */
.aladaq-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.aladaq-modal-actions .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}

.aladaq-modal-actions .btn-native-share {
    grid-column: span 2;
    background: linear-gradient(135deg, #E5C358 0%, #AA820A 100%);
    color: #1A0D1E;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.aladaq-modal-actions .btn-native-share:hover {
    background: linear-gradient(135deg, #F3D368 0%, #BA921A 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
}

.aladaq-modal-actions .btn-download {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.aladaq-modal-actions .btn-download:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.aladaq-modal-actions .btn-copy {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.aladaq-modal-actions .btn-copy:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.aladaq-modal-actions .btn-whatsapp {
    grid-column: span 2;
    background: #25D366;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.aladaq-modal-actions .btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

/* Toast Notification */
.aladaq-share-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: #D4AF37;
    color: #1A0D1E;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.aladaq-share-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
