@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #122f4c; /* Dark blue background from the poster */
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    padding: 30px 20px;
}

/* Page Container */
.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ==========================================================================
   Top Header / Logo
   ========================================================================== */
.header-logo-container {
    display: flex;
    justify-content: center;
    margin: 10px 0 15px 0;
    width: 100%;
}

.header-logo {
    width: 100%;
    max-width: 250px; /* Prominent top logo */
    height: auto;
    display: block;
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.03);
}

/* ==========================================================================
   Separators
   ========================================================================== */
.separator-wrapper {
    margin: 10px 0 25px 0;
    width: 100%;
}

.separator-line {
    border: none;
    height: 1.5px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.5) 20%, 
        rgba(255, 255, 255, 0.5) 80%, 
        rgba(255, 255, 255, 0) 100%
    );
}

/* ==========================================================================
   QR Code List (Vertical Stack)
   ========================================================================== */
.qr-list {
    display: flex;
    flex-direction: column;
    gap: 14px; /* Space between cards */
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Horizontal List Card */
.qr-row-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03); /* Glassmorphism background */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 12px 20px; /* Comfortable padding inside cards */
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                background-color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.qr-row-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

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

/* Left side content */
.qr-info-side {
    display: flex;
    align-items: center;
    gap: 15px; /* Spacing between icon and text */
}

/* Icon style */
.badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.qr-row-card:hover .badge-icon {
    transform: scale(1.08);
}

.badge-icon svg {
    width: 24px;
    height: 24px;
    fill: #ffffff; /* White icon inside */
}

/* Official brand colors for badges */
.badge-telegram {
    background: #24a1de; /* Official Telegram Blue */
    box-shadow: 0 4px 10px rgba(36, 161, 222, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    border: 2px solid #ffffff;
}

.badge-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); /* Official IG Gradient */
    box-shadow: 0 4px 10px rgba(214, 36, 159, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    border: 2px solid #ffffff;
}

.badge-facebook {
    background: #1877f2; /* Official Facebook Blue */
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    border: 2px solid #ffffff;
}

.badge-tiktok {
    background: #000000; /* Official TikTok Black */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    border: 2px solid #ffffff;
}

.badge-website {
    background: #0284c7; /* Official Globe Blue */
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    border: 2px solid #ffffff;
}

/* Text elements side */
.qr-text-meta {
    display: flex;
    flex-direction: column;
    gap: 1px; /* Tighter gap between name and handle */
}

.qr-platform-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
    line-height: 1.25;
}

.qr-handle-name {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.25;
}

/* Right side content (QR code) */
.qr-image-side {
    width: 170px; /* Larger QR code size */
    height: 170px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.qr-row-card:hover .qr-image-side {
    transform: scale(1.04);
}

/* QR code vector image */
.qr-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    padding-top: 10px;
}

.brand-logo-container {
    width: 140px;
    display: flex;
    justify-content: center;
}

.brand-logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.04);
}

/* ==========================================================================
   Responsive Adaptations (Mobile / Tablet)
   ========================================================================== */

/* Tablet View */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
}

/* Mobile View (Stacking / Grid Adjustments) */
@media (max-width: 560px) {
    body {
        padding: 15px 10px;
    }

    .header-logo-container {
        margin: 5px 0 10px 0;
    }

    .header-logo {
        max-width: 200px;
    }

    .separator-wrapper {
        margin: 5px 0;
    }

    /* List layout adjusts slightly for mobile */
    .qr-list {
        gap: 10px;
        margin-top: 10px;
    }

    .qr-row-card {
        padding: 10px 14px;
    }

    .qr-platform-name {
        font-size: 16px;
    }

    .qr-handle-name {
        font-size: 11px;
    }

    .badge-icon {
        width: 40px;
        height: 40px;
    }

    .badge-icon svg {
        width: 20px;
        height: 20px;
    }

    .qr-image-side {
        width: 120px; /* Larger QR code fits comfortably on mobile */
        height: 120px;
        margin-left: 5px;
    }
}
