/* assets/css/style.css */

:root {
    --primary: #FF3B7E;
    --primary-rgb: 255, 59, 126;
    --primary-light: #FF6B9D;
    --accent: #7000FF;
    --accent-rgb: 112, 0, 255;
    --accent-light: #9D52FF;
    --bg-dark: #0A0A0B;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-white: rgba(255, 255, 255, 0.1);
    --success: #4ade80;
    --error: #ef4444;
}

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

html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

.main-wrapper {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    z-index: 1;
}

.bg-decoration-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

body {
    background-color: var(--bg-dark);
    color: white;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

button, 
[role="button"], 
input[type="submit"], 
input[type="button"], 
.clickable {
    cursor: pointer;
}

h1,
h2,
h3,
.font-display {
    font-family: 'Outfit', sans-serif;
}

.premium-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.premium-gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-morphism {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-white);
}

@media (max-width: 768px) {
    .glass-morphism {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

.btn-premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 99px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 59, 126, 0.3);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-white);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.75rem;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-sponsor-gradient {
    background: linear-gradient(135deg, #FFD700 0%, #FF3B7E 50%, #7000FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.75rem;
    position: relative;
    background-size: 200% auto;
}

.btn-sponsor-gradient:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    /* subtle pulse on hover */
    filter: brightness(1.2);
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Premium Input Styling */
.glass-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-white);
    padding: 1rem 1.25rem;
    border-radius: 1.125rem;
    color: white;
    outline: none;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.glass-input:focus {
    border-color: rgba(255, 59, 126, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(255, 59, 126, 0.05);
}

.glass-input::placeholder {
    color: #6B7280;
}

/* Autocomplete Suggestions */
.autocomplete-container {
    position: relative;
    width: 100%;
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1c;
    border: 1px solid var(--border-white);
    border-top: none;
    border-radius: 0 0 1.5rem 1.5rem;
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.autocomplete-suggestion {
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    color: #D1D5DB;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.autocomplete-suggestion:last-child {
    border-bottom: none;
}

.autocomplete-suggestion:hover,
.autocomplete-suggestion.ac-active {
    background: rgba(255, 59, 126, 0.1);
    color: white;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* Animations */
@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.1;
        transform: scale(1);
    }

    50% {
        opacity: 0.2;
        transform: scale(1.1);
    }
}

.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    animation: pulse-slow 10s infinite;
    will-change: transform, opacity;
    pointer-events: none;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 3rem 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    nav {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
}

.nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

@media (max-width: 480px) {
    .nav-actions {
        gap: 1rem;
        width: 100%;
        justify-content: center;
    }

    .nav-actions .btn-premium {
        padding: 0.75rem 1.5rem;
        font-size: 0.75rem;
    }
}

.nav-link {
    color: #9CA3AF;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    white-space: nowrap;
    position: relative;
    overflow: visible;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, #B026FF 50%, var(--accent) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(176, 38, 255, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.1);
}

.logo-icon-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    /* Removed padding to let logo sit full */
}

.logo-icon-inner svg,
.logo-icon-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-size: 1.875rem;
    font-weight: 700;
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.5rem;
    }

    .logo-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Hero Section */
.hero {
    padding: 6rem 0 0 0;
    text-align: center;
}

#google-btn-container iframe {
    width: 250px !important;
    margin: 0 auto;
}

#google-btn-container {
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    /* Lighter for the official button to stand out */
}

.hero h1 {
    font-size: 6.5rem;
    font-weight: 900;
    line-height: 0.85;
    margin-bottom: 3rem;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 5.5rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 3rem;
    }
}

.hero p {
    font-size: 1.25rem;
    color: #9CA3AF;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Grid & Layout Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    text-align: left;
}

@media (min-width: 901px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.aspect-square {
    aspect-ratio: 1 / 1;
}
/* Safari legacy fallback for aspect-ratio if needed */
@supports not (aspect-ratio: 1/1) {
    .aspect-square::before {
        content: "";
        float: left;
        padding-top: 100%;
    }
    .aspect-square::after {
        content: "";
        display: block;
        clear: both;
    }
}

.rounded-3xl {
    border-radius: 1.5rem;
}

/* --- Utilities & Animations --- */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}
.shake-anim {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

.group {
    position: relative;
    width: 100%;
}

.group:hover .group-hover-scale {
    transform: scale(1.05);
}

.group:hover .group-hover-grayscale-0 {
    filter: grayscale(0) !important;
    opacity: 1 !important;
}

.transition-all-700 {
    transition: all 0.7s ease;
}

.transition-transform-700 {
    transition: transform 0.7s ease;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

/* Features Grid */
.features-grid {
    margin: 20px auto 0;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 4rem;
}

@media (min-width: 860px) {
    .features-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        box-sizing: border-box;
    }
}

.feature-card {
    padding: 3rem;
    border-radius: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    transition: transform 0.3s ease;
    /* Legacy Safari height fallback */
    min-height: 300px; 
}
@supports (aspect-ratio: 1/1) {
    .feature-card {
        min-height: 0;
    }
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #9CA3AF;
    font-size: 0.875rem;
}

@media (max-width: 1050px) {
    .feature-card {
        padding: 1.75rem;
    }
    .features-grid {
        gap: 1.25rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 859px) {
    .feature-card {
        aspect-ratio: auto;
        min-height: 250px;
    }
}

/* Social Connection Buttons */
.social-connect {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: 600px;
    margin: 3rem auto 0;
    position: relative;
    z-index: 1;
}

.social-connect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-1.5deg);
    width: 140%;
    height: 160%;
    background:
        linear-gradient(90deg, transparent 0%, var(--primary) 15%, var(--accent) 85%, transparent 100%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0px, transparent 1px, transparent 4px),
        linear-gradient(135deg, rgba(255, 59, 126, 0.2) 0%, transparent 50%, rgba(112, 0, 255, 0.2) 100%);
    opacity: 0.25;
    filter: blur(25px);
    z-index: -1;
    border-radius: 40% 60% 30% 70% / 60% 30% 70% 40%;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.social-connect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 48%;
    transform: translate(-50%, -50%) rotate(1deg);
    width: 130%;
    height: 120%;
    background: linear-gradient(to right, var(--primary-light), var(--accent-light));
    opacity: 0.1;
    filter: blur(50px);
    z-index: -2;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    pointer-events: none;
}

@media (max-width: 700px) {
    .social-connect {
        gap: 0.5rem;
    }
    .social-btn {
        padding: 0.75rem 0.25rem;
        border-radius: 1.25rem;
        gap: 0.25rem;
        min-width: 0;
    }
    .social-btn span {
        font-size: 0.55rem;
    }
}

@media (max-width: 640px) {
    .social-connect {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.5rem;
    }

    .social-connect::before,
    .social-connect::after {
        width: 100%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .social-btn {
        padding: 1rem 0.25rem;
        border-radius: 1.25rem;
        min-width: 0;
    }

    .social-btn span {
        font-size: 0.5rem;
    }
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.75rem;
    border-radius: 2rem;
    text-decoration: none;
    color: #9CA3AF;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-white);
    background: rgba(255, 255, 255, 0.02);
}

.social-btn i,
.social-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-btn svg.brand-icon {
    fill: currentColor;
}

.social-btn span {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.social-btn:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.social-btn:hover i,
.social-btn:hover svg {
    transform: scale(1.2);
}

.social-btn.google:hover {
    background: rgba(219, 68, 55, 0.1);
    border-color: #DB4437;
}

.social-btn.facebook:hover {
    background: rgba(59, 89, 152, 0.1);
    border-color: #1877F2;
}

.social-btn.x:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: #000000;
}

.social-btn.instagram:hover {
    background: rgba(225, 48, 108, 0.1);
    border-color: #E1306C;
}

.social-btn.tiktok:hover {
    background: rgba(0, 0, 0, 0.2);
    border-color: #000000;
}

/* Ensure official components align with custom ones */
.social-connect {
    align-items: center;
    justify-items: center;
}

.g_id_signin,
.fb-login-button {
    transform: scale(1.1);
}

/* Social Login Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.modal.show {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    border-radius: 2.5rem;
    position: relative;
    animation: modalSlide 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes modalSlide {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 59, 126, 0.2);
    border-color: var(--primary);
    transform: rotate(90deg);
}

.photo-layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-size: cover;
    background-position: center center;
    transition: none;
    z-index: 1;
    border-radius: inherit;
}

.photo-layer.enhanced {
    z-index: 2;
    background-size: var(--bg-zoom, cover);
    background-position: var(--bg-pos, center 20%);
    clip-path: inset(0 0 100% 0);
    -webkit-clip-path: inset(0 0 100% 0);
    visibility: hidden;
    opacity: 0;
    will-change: clip-path, -webkit-clip-path;
}

.photo-layer.enhanced::after {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    border-radius: inherit;
    padding: 6px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.photo-layer.original {
    z-index: 1;
    opacity: 1;
    background-size: var(--bg-zoom, cover);
    background-position: var(--bg-pos, center 20%);
}

.scanline {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary), 0 0 60px var(--primary);
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-50%);
}

@keyframes scanReveal {
    0% {
        clip-path: inset(0 0 100% 0);
        -webkit-clip-path: inset(0 0 100% 0);
    }
    100% {
        clip-path: inset(0 0 0% 0);
        -webkit-clip-path: inset(0 0 0% 0);
    }
}

@keyframes scanlineMove {
    0% {
        top: 0%;
        opacity: 0;
    }
    1% {
        opacity: 1;
    }
    99% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.demo-card:hover .photo-layer.enhanced,
.demo-card:active .photo-layer.enhanced {
    animation: none;
    clip-path: inset(0 0 100% 0) !important;
}

.demo-card:hover .scanline,
.demo-card:active .scanline {
    animation: none;
    opacity: 0 !important;
}

.nav-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

/* Mobile Utilities */
@media (max-width: 768px) {
    .mobile-px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
    .mobile-py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    .mobile-p-4 { padding: 1.5rem !important; }
    .mobile-text-2xl { font-size: 1.5rem !important; }
    .mobile-text-3xl { font-size: 2rem !important; }
    .mobile-text-4xl { font-size: 2.5rem !important; }
    .mobile-gap-4 { gap: 1rem !important; }
    .mobile-stack { flex-direction: column !important; align-items: stretch !important; }
    .mobile-hide { display: none !important; }
}

.upload-zone {
    border: 2px dashed var(--border-white);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.02);
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--primary);
    background: rgba(255, 59, 126, 0.05);
}

/* Cookie Consent Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    max-width: 500px;
    z-index: 999999;
    margin: 0 auto;
    background: rgba(15, 15, 17, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: cookieSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cookie-banner-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    text-align: center;
}

.cookie-banner-content p {
    font-size: 0.85rem;
    color: #D1D5DB;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.cookie-banner-actions button {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cookie-banner-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
}

.cookie-banner-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

@media (max-width: 640px) {
    #cookie-consent-banner {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        padding: 1.25rem;
    }
    .cookie-banner-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
}