/* ============================================================
   Astrology & Energy Waves 3D Reviews Styling
   Modern Glassmorphism & Cosmic Aesthetics
   ============================================================ */

:root {
    --font-heading: 'Cinzel Decorative', 'Cinzel', 'Outfit', serif;
    --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    --color-bg-dark: #070913;
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-gold: #f59e0b;
    --color-gold-glow: #ffd700;
    --color-purple: #a855f7;
    --color-cyan: #38bdf8;
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 85, 247, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Background Canvas */
#energyCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: auto;
}

/* Page Overlay for Depth */
.cosmos-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Main Container */
.portal-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    padding: 40px 20px 30px 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header Section & Logo */
.portal-header {
    text-align: center;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.logo-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-aura {
    position: absolute;
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.45) 0%, rgba(56, 189, 248, 0.3) 40%, transparent 70%);
    animation: auraPulse 4s ease-in-out infinite alternate;
    filter: blur(12px);
    z-index: 1;
}

.logo-frame {
    position: relative;
    z-index: 2;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.7), rgba(168, 85, 247, 0.6), rgba(56, 189, 248, 0.5));
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    animation: floatGentle 5s ease-in-out infinite;
}

.logo-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(10, 15, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

@keyframes auraPulse {
    0% {
        transform: scale(0.92);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.15);
        opacity: 1;
    }
}

@keyframes floatGentle {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-6px) rotate(1deg);
    }
}

.brand-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 30%, #e2e8f0 70%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.brand-tagline {
    font-size: 14px;
    color: var(--color-text-muted);
    max-width: 380px;
    line-height: 1.5;
    font-weight: 400;
}

/* Links Container */
.links-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

/* Single Action Card / Link Button */
.link-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    text-decoration: none;
    color: var(--color-text-main);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.6s;
    pointer-events: none;
}

.link-card:hover::before {
    left: 100%;
}

.link-card:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.6), 0 0 30px rgba(168, 85, 247, 0.35);
}

.link-card:active {
    transform: translateY(-1px) scale(0.99);
}

.card-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
    transition: transform 0.35s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.link-card:hover .icon-box {
    transform: scale(1.1) rotate(4deg);
}

.card-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-subtitle {
    font-size: 12.5px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.card-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.link-card:hover .card-arrow {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateX(4px);
}

/* ============================================================
   Platform Specific Styling & Distinct Auras
   ============================================================ */

/* 1. Google Review Button (Highlighted Premier Button) */
.link-card.google-review {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(20, 24, 40, 0.8) 100%);
    border: 1.5px solid rgba(255, 215, 0, 0.35);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2), 0 0 20px rgba(255, 215, 0, 0.15);
}

.link-card.google-review:hover {
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.35), 0 0 35px rgba(255, 215, 0, 0.3);
}

.link-card.google-review .icon-box {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #facc15;
    font-size: 13px;
    margin-left: 6px;
    filter: drop-shadow(0 0 5px rgba(250, 204, 21, 0.6));
}

.badge-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 20px;
    background: linear-gradient(90deg, #f59e0b, #eab308);
    color: #000000;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.4);
}

/* 2. Instagram Button */
.link-card.instagram:hover {
    border-color: rgba(236, 72, 153, 0.6);
    box-shadow: 0 12px 35px rgba(225, 48, 108, 0.3), 0 0 25px rgba(168, 85, 247, 0.2);
}

.link-card.instagram .icon-box {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
}

/* 3. Facebook Button */
.link-card.facebook:hover {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 12px 35px rgba(24, 119, 242, 0.3), 0 0 25px rgba(59, 130, 246, 0.2);
}

.link-card.facebook .icon-box {
    background: linear-gradient(135deg, #1877f2, #0d5cbf);
    color: #ffffff;
}

/* 4. YouTube Button */
.link-card.youtube:hover {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 12px 35px rgba(255, 0, 0, 0.3), 0 0 25px rgba(239, 68, 68, 0.2);
}

.link-card.youtube .icon-box {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #ffffff;
}

/* 5. Official Website Button */
.link-card.website:hover {
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 12px 35px rgba(56, 189, 248, 0.25), 0 0 25px rgba(14, 165, 233, 0.2);
}

.link-card.website .icon-box {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #ffffff;
}

/* 6. WhatsApp Button */
.link-card.whatsapp:hover {
    border-color: rgba(37, 211, 102, 0.6);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.3), 0 0 25px rgba(37, 211, 102, 0.2);
}

.link-card.whatsapp .icon-box {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #ffffff;
}

/* 7. LinkedIn Button */
.link-card.linkedin:hover {
    border-color: rgba(10, 102, 194, 0.6);
    box-shadow: 0 12px 35px rgba(10, 102, 194, 0.3), 0 0 25px rgba(10, 102, 194, 0.2);
}

.link-card.linkedin .icon-box {
    background: linear-gradient(135deg, #0a66c2, #004182);
    color: #ffffff;
}

/* 8. Twitter / X Button */
.link-card.twitter:hover, .link-card.x:hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.2), 0 0 25px rgba(255, 255, 255, 0.1);
}

.link-card.twitter .icon-box, .link-card.x .icon-box {
    background: #000000;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Generic Custom Button Fallback */
.link-card .icon-box {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #ffffff;
}

/* Footer & Extras */
.portal-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-top: 10px;
    padding-bottom: 25px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.admin-link-btn {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.admin-link-btn:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Modal for QR Code & Sharing */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 7, 18, 0.75);
    backdrop-filter: blur(12px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.qr-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.qr-modal-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 30px;
    width: 90%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qr-modal.active .qr-modal-card {
    transform: scale(1);
}

.qr-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
}

.qr-image-wrapper {
    background: #ffffff;
    padding: 16px;
    border-radius: 16px;
    margin: 20px auto;
    width: fit-content;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.qr-image-wrapper img {
    display: block;
    width: 180px;
    height: 180px;
}

/* Responsive adjust */
@media (max-width: 480px) {
    .portal-container {
        padding: 30px 16px 20px 16px;
    }
    .logo-wrapper {
        width: 110px;
        height: 110px;
    }
    .logo-frame {
        width: 100px;
        height: 100px;
    }
    .logo-aura {
        width: 125px;
        height: 125px;
    }
    .brand-title {
        font-size: 22px;
    }
    .brand-tagline {
        font-size: 13.5px;
    }
    .link-card {
        padding: 14px 16px;
    }
    .icon-box {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    .card-title {
        font-size: 15px;
    }
    .card-subtitle {
        font-size: 12px;
    }
}
