/* BUBS Studio - Premium Styles */

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #ff6b9d, #c084fc);
    color: white;
    font-weight: 600;
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #c084fc, #ff6b9d);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255, 107, 157, 0.3);
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary span, .btn-primary { position: relative; z-index: 1; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-weight: 500;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

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

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.75rem;
    background: transparent;
    color: #ff6b9d;
    font-weight: 600;
    border-radius: 1rem;
    border: 1px solid rgba(255, 107, 157, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-outline:hover {
    background: rgba(255, 107, 157, 0.1);
    box-shadow: 0 0 30px rgba(255, 107, 157, 0.2);
}

/* Glow Effects */
.glow-pink { box-shadow: 0 0 30px rgba(255, 107, 157, 0.3); }
.glow-purple { box-shadow: 0 0 30px rgba(192, 132, 252, 0.3); }

.text-gradient {
    background: linear-gradient(135deg, #ff6b9d, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section */
.hero-section {
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 107, 157, 0.1) 0%, transparent 55%),
                radial-gradient(ellipse at 85% 50%, rgba(192, 132, 252, 0.08) 0%, transparent 45%),
                #0a0a0a;
}

.hero-glow {
    position: absolute;
    width: 40vw;
    height: 60vh;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.35;
}
.hero-glow-left { display: none; }
.hero-glow-right { right: -3%; top: 15%; background: rgba(192, 132, 252, 0.18); }

.hero-character {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}
.hero-character-left {
    left: 0;
    width: min(34vw, 440px);
}
.hero-character-right {
    right: -2%;
    width: min(44vw, 560px);
}

.hero-character-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    will-change: transform;
    overflow: hidden;
}

.hero-char-img {
    width: 100%;
    object-fit: cover;
    object-position: top center;
    -webkit-mask-image: linear-gradient(to top, black 72%, transparent 100%);
    mask-image: linear-gradient(to top, black 72%, transparent 100%);
}

.hero-char-img-left {
    height: 84vh;
    max-height: 680px;
    min-height: 460px;
    filter: none;
}

.hero-char-img-right {
    height: 92vh;
    max-height: 780px;
    min-height: 500px;
    filter: drop-shadow(0 0 40px rgba(192, 132, 252, 0.2));
}

.hero-animate {
    opacity: 1;
    transform: none;
}

/* Hero Gradient Background (legacy) */
.hero-gradient {
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 107, 157, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(192, 132, 252, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 20% 80%, rgba(255, 107, 157, 0.08) 0%, transparent 50%),
                #0a0a0a;
}

/* Particles Canvas */
#particles-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Cards */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(255, 107, 157, 0.15);
    border-color: rgba(255, 107, 157, 0.2);
}

/* Scroll Reveal — visível se JS falhar ou antes do trigger */
.reveal {
    opacity: 1;
    transform: none;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Form Inputs */
.input-field {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.875rem;
    color: white;
    font-size: 0.875rem;
    transition: all 0.3s;
    outline: none;
}

.input-field:focus {
    border-color: rgba(255, 107, 157, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.input-field::placeholder { color: rgba(255, 255, 255, 0.3); }

/* Navbar scrolled state */
#navbar.scrolled .glass {
    background: rgba(10, 10, 10, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Product Grid */
.product-card img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover img {
    transform: scale(1.08);
}

/* Status badges */
.badge {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.badge-warning { background: rgba(234, 179, 8, 0.15); color: #facc15; }
.badge-danger  { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.badge-info    { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

/* Flash messages animation */
.flash-msg {
    animation: slideInRight 0.5s ease, fadeOut 0.5s ease 4s forwards;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-10px); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: linear-gradient(#ff6b9d, #c084fc); border-radius: 3px; }

/* Selection */
::selection { background: rgba(255, 107, 157, 0.3); color: white; }

/* Lazy loading — só imagens lazy abaixo da dobra */
img[loading="lazy"]:not(.loaded) { opacity: 0.85; transition: opacity 0.4s ease; }
img[loading="lazy"].loaded { opacity: 1; }
img:not([loading="lazy"]) { opacity: 1; }

/* Parallax */
.parallax-bg {
    will-change: transform;
}

/* Filter pills (loja / portfolio) */
.filter-pill {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #9ca3af;
    transition: all 0.2s;
    text-decoration: none;
}
.filter-pill:hover,
.filter-pill.active {
    background: rgba(255, 107, 157, 0.12);
    border-color: rgba(255, 107, 157, 0.35);
    color: #ff6b9d;
}
.filter-pill-purple:hover,
.filter-pill-purple.active {
    background: rgba(192, 132, 252, 0.12);
    border-color: rgba(192, 132, 252, 0.35);
    color: #c084fc;
}

/* Services bento on homepage */
.services-bento {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(12, 1fr);
}
.services-bento-card {
    grid-column: span 12;
}
@media (min-width: 768px) {
    .services-bento-card:nth-child(1) { grid-column: span 7; }
    .services-bento-card:nth-child(2) { grid-column: span 5; }
    .services-bento-card:nth-child(3) { grid-column: span 5; }
    .services-bento-card:nth-child(4) { grid-column: span 7; }
}
@media (min-width: 1024px) {
    .services-bento-card:nth-child(1) { grid-column: span 5; grid-row: span 2; }
    .services-bento-card:nth-child(2) { grid-column: span 4; }
    .services-bento-card:nth-child(3) { grid-column: span 3; }
}

/* Admin overrides */
.admin-sidebar { width: 260px; min-height: 100vh; }

@media (max-width: 768px) {
    .cursor-none { cursor: auto !important; }
    #cursor, #cursor-dot { display: none !important; }
}
