/*============================================================================
 * Theme Name: Nordic Minimal (Premium Light Theme)
 * Description: Ultra-Modern Dynamic Business Greeting & Profile Template
 * Colors: Primary Deep Slate (#2B2D42), Accent Festive Red (#D90429)
 * Background: linear-gradient(135deg, #F8F9FA 0%, #EDF2F4 100%)
 * Vibe: Ultra-Modern, Minimalist & Super Clean
 ============================================================================*/

/* ১. রুট রিসেট এবং গ্লোবাল প্রটেকশন */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Plus Jakarta Sans', 'Hind Siliguri', sans-serif;
    background: linear-gradient(135deg, #F8F9FA 0%, #EDF2F4 100%);
    color: #2B2D42;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

/* ২. ব্যাকগ্রাউন্ড অ্যানিমেটেড মিনিমালিস্ট শেপস */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: rgba(43, 45, 66, 0.04);
    backdrop-filter: blur(1px);
    animation: floatUp-Nordic linear infinite;
    border-radius: 6px;
}

.shape.circle { border-radius: 50%; }
.shape.triangle {
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 26px solid rgba(217, 4, 41, 0.05);
}

@keyframes floatUp-Nordic {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-20vh) rotate(360deg); opacity: 0; }
}

/* ৩. মেইন লেআউট র‍্যাপার */
.page-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.capture-area {
    width: 100%;
    flex-grow: 1;
}

/* ৪. এক্সপোর্ট জোন (ইমেজের ব্যাকগ্রাউন্ড ও কালার লক প্রোপার্টি) */
/* html2canvas ফিক্স: ক্যানভাস জেনারেট করার সময় এই ব্যাকগ্রাউন্ড এবং থিম কালারই প্রিন্ট হবে, সাদা হবে না */
#exportZone {
    width: 100% !important;
    background: linear-gradient(135deg, #F8F9FA 0%, #EDF2F4 100%) !important;
    border: 2px solid rgba(43, 45, 66, 0.15) !important;
    border-radius: 28px !important;
    padding: 35px 24px !important;
    box-shadow: 0 25px 50px rgba(43, 45, 66, 0.06) !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* টপ প্রমিজিং মডার্ন ফেস্টিভ রেড স্ট্রিপ */
#exportZone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #D90429, #2B2D42, #D90429);
}

/* ৫. ব্র্যান্ড ও প্রোফাইল সেকশন */
.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.logo-box {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    padding: 4px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(43, 45, 66, 0.06);
    border: 2px solid #D90429;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.biz-name {
    font-size: 24px;
    font-weight: 700;
    color: #2B2D42;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.biz-desc {
    font-size: 13.5px;
    color: #2B2D42;
    opacity: 0.75;
    font-weight: 500;
    padding: 0 20px;
    line-height: 1.4;
}

/* ৬. আল্ট্রা-মডার্ন গ্রিটিং কার্ড */
.greeting-card {
    background: #ffffff;
    border: 1px solid rgba(43, 45, 66, 0.08);
    border-radius: 20px;
    padding: 30px 22px;
    box-shadow: 0 12px 35px rgba(43, 45, 66, 0.02);
    margin-bottom: 24px;
    position: relative;
}

.islamic-art-top {
    font-size: 26px;
    color: #D90429;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 4px rgba(217, 4, 41, 0.15));
    animation: nordicPulse 2.5s infinite ease-in-out;
}

@keyframes nordicPulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.1); opacity: 1; }
}

.greeting-card h1 {
    font-size: 26px;
    font-weight: 700;
    color: #2B2D42;
    margin-bottom: 15px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.wish-text {
    font-size: 14px;
    color: #2B2D42;
    line-height: 1.65;
    font-weight: 400;
}

/* ৭. কাস্টম ইউজার টেক্সট মেসেজ */
.user-custom-msg {
    background: rgba(217, 4, 41, 0.04);
    border-left: 4px solid #2B2D42;
    padding: 16px;
    border-radius: 0 16px 16px 0;
    margin-bottom: 24px;
    text-align: left;
}

.user-custom-msg p {
    font-size: 13.5px;
    color: #2B2D42;
    line-height: 1.55;
    font-weight: 500;
}

/* ৮. প্রিমিয়াম থ্যাঙ্কস ব্যাজ */
.thanks-container {
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

.thanks-badge {
    background: #2B2D42;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(217, 4, 41, 0.2);
    box-shadow: 0 8px 20px rgba(43, 45, 66, 0.12);
}

.animate-heart {
    color: #D90429;
    animation: nordicHeart 1.4s infinite;
}

@keyframes nordicHeart {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.22); }
}

/* ৯. সোশ্যাল মিডিয়া গ্রিড (২ লাইনে প্রতি লাইনে ৫টি করে - একদম সেন্টারড) */
.social-grid-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 365px;
    justify-items: center;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1.5px solid rgba(43, 45, 66, 0.12);
    color: #2B2D42; /* থিম অনুযায়ী মেইন কালার আইকন */
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(43, 45, 66, 0.03);
    text-decoration: none !important; /* আন্ডারলাইন প্রটেকশন */
    outline: none;
}

/* ১০০% গ্যারান্টি: আইকনের নিচে কোনো আন্ডারলাইন বা কমেন্ট লাইন দৃশ্যমান হবে না */
.social-btn *, .social-btn:hover, .social-btn:focus, .social-btn:active {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* হোভার এফেক্ট - হাই কন্ট্রাস্ট মডার্ন লুক */
.social-btn:hover {
    background: #2B2D42;
    color: #D90429;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(43, 45, 66, 0.15);
    border-color: #2B2D42;
}

/* ১০. ইন্টারেক্টিভ কন্ট্রোলস (ডাউনলোড বাটন ও ল্যাঙ্গুয়েজ সুইচার) */
.interactive-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: 100%;
    margin-top: 10px;
}

.download-trigger {
    width: 100%;
    background: #2B2D42;
    color: #FFFFFF;
    border: 1px solid #D90429;
    border-radius: 16px;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 12px 28px rgba(43, 45, 66, 0.15);
    transition: all 0.3s ease;
}

.download-trigger:hover {
    background: #D90429;
    color: #FFFFFF;
    border-color: #D90429;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(217, 4, 41, 0.3);
}

.download-trigger i {
    font-size: 18px;
}

/* ল্যাঙ্গুয়েজ সুইচার */
.lang-switcher {
    background: rgba(43, 45, 66, 0.05);
    padding: 6px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switcher a {
    font-size: 13px;
    font-weight: 600;
    color: #2B2D42;
    text-decoration: none;
    opacity: 0.55;
    transition: opacity 0.2s;
}

.lang-switcher a.active {
    color: #2B2D42;
    opacity: 1;
    font-weight: 700;
}

.lang-switcher .divider {
    color: #2B2D42;
    opacity: 0.2;
    font-size: 12px;
}

/* ১১. গ্লোবাল সাইট ফুটার */
.site-global-footer {
    text-align: center;
    margin-top: 45px;
    padding-top: 20px;
    border-top: 1px solid rgba(43, 45, 66, 0.08);
    width: 100%;
}

.copyright-text {
    font-size: 12px;
    color: #2B2D42;
    opacity: 0.75;
    margin-bottom: 6px;
}

.copyright-text b {
    color: #2B2D42;
}

.credits-text {
    font-size: 11px;
    color: #2B2D42;
    opacity: 0.55;
}

.credits-text a {
    color: #2B2D42;
    text-decoration: none;
}

.credits-text a b {
    color: #D90429;
}

/* ১২. ফ্লোটিং হোয়াটসঅ্যাপ বাটন (সিগনেচার গ্লো সহ) */
.whatsapp-floating {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    z-index: 999;
    text-decoration: none !important;
}

.ping-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.35;
    z-index: -1;
    animation: waveEffect 1.6s infinite ease-out;
}

@keyframes waveEffect {
    0% { transform: scale(1); opacity: 0.35; }
    100% { transform: scale(1.45); opacity: 0; }
}

/* ১৩. মোবাইল স্ক্রিন অপ্টিমাইজেশন */
@media (max-width: 380px) {
    .social-grid {
        gap: 8px;
        max-width: 315px;
    }
    .social-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
        border-radius: 11px;
    }
    .biz-name { font-size: 21px; }
    .greeting-card h1 { font-size: 22px; }
    #exportZone { padding: 30px 15px !important; }
}