/* ==========================================================================
   Creator Hook Bank • QR Destination Website
   Based directly on page 6 of references-screen.pdf
   Color Palette: Pure Black & Amazon Yellow
   ========================================================================== */

:root {
    --bg-black: #0052f3;
    --bg-gradient: linear-gradient(135deg, #025bff 0%, #0067fa 35%, #0052f3 70%, #0051f7 100%);
    --amz-yellow: #FFC220;
    --amz-yellow-dark: #E5AC1C;
    --card-bg: rgba(0, 0, 0, 0.35);
    --text-white: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.75);
    --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Top Dual Brand Header (Amazon + Meta) */
.qr-brand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 24px;
}

.brand-logo-amazon {
    height: 38px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    image-rendering: auto;
}

.meta-logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 6px 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.brand-logo-meta {
    height: 32px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    image-rendering: auto;
    display: block;
}

*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background: linear-gradient(135deg, #025bff 0%, #0067fa 35%, #0052f3 70%, #0051f7 100%) fixed;
    background-color: #0052f3;
    color: var(--text-white);
    font-family: var(--font-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    overflow-y: auto !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE and Edge */
}

/* Global scrollbar hiding while preserving scroll capability */
* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

*::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar,
div::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.qr-body {
    background: transparent;
    width: 100%;
    min-height: 100vh;
}

/* Responsive Frame (Uses full laptop screen & adjusts gracefully on all screen sizes) */
.qr-mobile-frame {
    width: 100%;
    max-width: 1080px;
    background: transparent;
    padding: 32px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

@media (min-width: 768px) {
    .qr-mobile-frame {
        padding: 40px 48px;
    }
}

@media (min-width: 1200px) {
    .qr-mobile-frame {
        padding: 48px 64px;
    }
}

/* Welcome View (Root URL https://www.creatorcon-india.com/) */
.welcome-section {
    padding: 60px 20px;
    animation: fadeIn 0.3s ease-out;
}

.welcome-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.welcome-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 600;
    color: var(--amz-yellow);
    letter-spacing: -0.01em;
}

.welcome-tagline {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

.error-section {
    padding: 60px 20px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Page Header */
.qr-page-header {
    border-bottom: none;
    padding-bottom: 8px;
}

.hook-headline {
    font-size: clamp(1.4rem, 2.5vw, 2.1rem);
    font-weight: 400;
    line-height: 1.35;
    color: var(--text-white);
    margin: 0;
}

.category-highlight {
    font-weight: 700;
    color: var(--text-white);
}

/* Hook Cards */
.hooks-list-section {
    width: 100%;
}

.hook-card {
    background-color: var(--card-bg);
    border: 1.5px solid var(--amz-yellow);
    border-radius: 14px;
    padding: clamp(14px, 1.8vw, 20px) clamp(16px, 2.2vw, 24px);
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    touch-action: manipulation;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    animation: hookCardFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes hookCardFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.hook-card:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.hook-card:active {
    transform: scale(0.99);
}

/* Skeleton Loading Shimmer for zero layout shift */
.skeleton-card {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 25%, rgba(255, 255, 255, 0.12) 50%, rgba(0, 0, 0, 0.3) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite ease-in-out;
    border-radius: 14px;
    height: 72px;
    border: 1.5px solid rgba(255, 194, 32, 0.2);
    width: 100%;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.hook-card.copied {
    border-color: #22C55E !important;
    background-color: rgba(34, 197, 94, 0.12) !important;
}

.hook-card.copied .btn-copy-hook {
    color: #22C55E !important;
}

/* Number Box on the Left */
.hook-number-box {
    font-size: clamp(1.4rem, 1.8vw, 1.7rem);
    font-weight: 700;
    color: var(--text-white);
    min-width: 28px;
    text-align: center;
    flex-shrink: 0;
}

/* Text Content */
.hook-text-content {
    flex-grow: 1;
}

.hook-phrase {
    margin: 0;
    font-size: clamp(1rem, 1.25vw, 1.18rem);
    font-weight: 500;
    line-height: 1.45;
    color: var(--text-white);
}

/* Copy Button */
.btn-copy-hook {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 1rem;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.15s ease, transform 0.15s ease;
}

.hook-card:hover .btn-copy-hook,
.btn-copy-hook:hover {
    color: var(--amz-yellow);
    transform: scale(1.15);
}

/* Copy Toast */
.copy-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--amz-yellow);
    color: #000000;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 9999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    animation: toastPop 0.25s ease-out;
}

@keyframes toastPop {
    from { opacity: 0; transform: translate(-50%, 12px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
