/* --- GLOBAL RESET & PREMIUM FONTS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: #f0f2f5;
    color: #333;
    overflow-x: hidden;
}
/* Ads Container Styling */
#top-ad-banner {
    width: 100%;
    background-color: #000000; /* Poora background black */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3px 0;
    overflow: hidden;
}

.ad-border-box {
    border: 1px solid #333;
    background: #000;
    width: 100%;
    max-width: 728px; /* Ad ki maximum width */
    height: auto;
    min-height: 60px; /* Height ko 90 se kam karke 60 kar diya */
    display: flex;
    justify-content: center;
    align-items: center;
}
/* 3. Iframe (Ads) ko box ke andar fit karna */
.ad-border-box iframe {
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 728 / 90; /* Ad ka asli ratio maintain rakhega */
    object-fit: contain; /* Ad ko box ke andar khench kar fit karega, katne nahi dega */
}

/* 4. Mobile Responsive Fix: Choti screen par ads ko shrink karega */
@media screen and (max-width: 768px) {
    .ad-border-box {
        min-height: 50px; /* Mobile par aur bhi patli patti */
        width: 95%; /* Screen ke corners se thoda gap rahega */
    }

    /* Scaling trick: Bina content kaate ad ko chota dikhane ke liye */
    .ad-border-box iframe {
        transform: scale(0.9); 
        transform-origin: center;
    }
}



.wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    min-height: 100svh;  /* mobile safe height */
    display: flex;
    flex-direction: column;
}

#viewBanner {
    width: 100%;
    padding: 0 2px;   /* left right spacing */
    box-sizing: border-box;
    margin-top: 2px;
    
}



/* --- PART 1: PREMIUM VIEW BANNER (80vh) *
#viewBanner {
    margin-top: 10px;
    position: relative;
    width: 100%;
    /*display: flex;*
    justify-content: center;
   /* min-height: 100vh;
    min-height: 100svh;   /* safe mobile height *
    overflow: hidden;
    background: #000;
}*/

/*#bannerContainer {
    width: 100%;
    max-width: 100vw;   /* Mobile centered *
    aspect-ratio: 9 / 16;
    position: relative;
}*/

#bannerContainer {
    width: 100%;
    aspect-ratio: 9 / 16;
    min-height: 90vh;
    border-radius: 12px;   /* optional – box look */
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Background image ko bina stretch kiye pura dikhane ke liye */
.banner-bg {
    width: 100%;
    height: 100%;
}

.banner-bg .bg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    /*display: block;*/
}


/* Floating Create Button - Premium 3D Style */
.floating-btn {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, #ff5252 0%, #d50000 100%);
    color: white;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 50px;
    border: 3px solid #fff;
    cursor: pointer;
    box-shadow: 0 6px 0 #8b0000, 0 12px 20px rgba(0,0,0,0.3);
    z-index: 10;
    transition: all 0.1s;
}

.floating-btn:active {
    transform: translateX(-50%) translateY(4px);
    box-shadow: 0 2px 0 #8b0000;
}

/* --- PART 2: PREMIUM TOOL BOX DESIGN --- */
#createBanner {
    padding: 30px 15px;
    background-color: #f1f4f9;
}

#createBanner h2 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #1a202c;
    font-weight: 800;
    text-transform: uppercase;
    border-left: 5px solid #ff3366;
    padding-left: 12px;
}

/* Template Section Container */
.template-selector {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 5px 20px 5px;
    scrollbar-width: none;
    justify-content: flex-start; /* Items ko line mein rakhne ke liye */
}

.template-item {
    flex: 0 0 120px; /* Har box ki fix width */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Image ko box ke size ke according set karne ke liye */
.template-item img {
    width: 100%;       /* Box ki poori width lega */
    height: 150px;     /* Ek standard height */
    object-fit: cover; /* Image stretch nahi hogi, sahi se fit hogi */
    border-radius: 12px;
    border: 3px solid #eee;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: block;    /* Alignment sahi karne ke liye */
    background-color: #f0f0f0; /* Agar image load na ho toh grey dikhega */
}

/* Active Template Style */
.template-item.active img {
    border-color: #ff3366;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 51, 102, 0.3);
}

.template-item span {
    display: block;
    font-size: 13px;
    margin-top: 8px;
    font-weight: 700;
    color: #4a5568;
}
/* --- PREMIUM FORM CARDS --- */
.card {
    background: #ffffff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f0f7ff;
    color: #2b6cb0;
    border: 2px dashed #3182ce;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    background: #f8fafc;
    margin-bottom: 10px;
}

/* Generate Button 3D */
.btn.green {
    width: 100%;
    background: linear-gradient(180deg, #ff5f6d 0%, #ff3131 100%);
    color: white;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 800;
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 0 #9b0000;
    cursor: pointer;
    transition: 0.1s;
}

.btn.green:active {
    transform: translateY(3px);
    box-shadow: 0 3px 0 #9b0000;
}

/* WhatsApp Button - Royal Celebration Style */
.whatsapp {
    background: linear-gradient(45deg, #25d366 0%, #128c7e 100%) !important;
    box-shadow: 0 6px 0 #075e54 !important;
    margin-bottom: 50px;
}

.hidden { display: none; }

/* Bell icon ko thoda niche karein taaki clipping na ho */
.notification-container {
    position: absolute; /* Fixed ki jagah absolute better rahega agar section ke andar chahiye */
    top: 15px;
    right: 15px;
    z-index: 1000;
}

.bell-icon-stack {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    border: 2px solid #ff3366;
    animation: ring 3s ease infinite; /* Ringing animation */
}

.bell-emoji { font-size: 1.5rem; }

.bell-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    background: #ff3131;
    border: 2px solid white;
    border-radius: 50%;
}

@keyframes ring {
    0% { transform: rotate(0); }
    5% { transform: rotate(20deg); }
    10% { transform: rotate(-20deg); }
    15% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    25% { transform: rotate(0); }
    100% { transform: rotate(0); }
}

/* Floating Push Prompt Style */
.push-prompt {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 380px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 9999;
    padding: 15px;
    border: 2px solid #ff3366;
    animation: slideUp 0.5s ease;
}

.prompt-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prompt-icon { font-size: 24px; }

.prompt-text { flex-grow: 1; }

.prompt-text p { font-size: 14px; font-weight: 700; color: #333; }

.prompt-text small { font-size: 11px; color: #666; }

.prompt-btn {
    background: #ff3366;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.prompt-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding-left: 5px;
}

@keyframes slideUp {
    from { bottom: -100px; opacity: 0; }
    to { bottom: 20px; opacity: 1; }
}

.media-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.media-wrapper img,
.media-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}
