/* Custom CSS with Palette */
:root {
    /* CSS HEX */
    --graphite: #282827;
    --metallic-gold: #d1ab18;
    --khaki-beige: #ada088;
    --grey: #777977;
    --charcoal-blue: #343d50;

    /* Functional map */
    --primary-color: var(--metallic-gold);
    --secondary-color: var(--graphite);
    --bg-dark: var(--graphite);
    --bg-light: #f8f9fa;
    --text-main: var(--graphite);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    scroll-behavior: smooth;
}

/* Palette Utilities */
.text-gold {
    color: var(--metallic-gold) !important;
}

.bg-gold {
    background-color: var(--metallic-gold) !important;
}

.bg-graphite {
    background-color: var(--graphite) !important;
}

.text-graphite {
    color: var(--graphite) !important;
}

.bg-charcoal {
    background-color: var(--charcoal-blue) !important;
}

.text-charcoal {
    color: var(--charcoal-blue) !important;
}

/* Buttons */
.btn-gold {
    background-color: var(--metallic-gold);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #bfa015;
    /* slightly darker gold */
    color: #fff;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: radial-gradient(circle at center, var(--charcoal-blue), var(--graphite));
    padding-top: 100px;
    padding-bottom: 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1s ease-in-out;
    cursor: pointer;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    /* Overlay for better text contrast */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Cards */
.shadow-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shadow-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-gold-subtle {
    background-color: rgba(209, 171, 24, 0.1);
}

.bg-blue-subtle {
    background-color: rgba(52, 61, 80, 0.1);
}

.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.1);
}

.top-border-gold {
    border-top: 5px solid var(--metallic-gold) !important;
}

/* Code Preview */
.bg-dark {
    background-color: #1a1a1a !important;
}

code {
    background-color: rgba(209, 171, 24, 0.15);
    color: var(--metallic-gold);
    padding: 2px 4px;
    border-radius: 4px;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Navbar Tuning */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--metallic-gold);
}

/* Challenge Slider */
#challenges-slider {
    z-index: 10;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.challenge-card {
    flex: 0 0 140px;
    height: 70px;
    background: #000;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.challenge-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--metallic-gold);
    background: #111;
}

.challenge-card .card-img-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
    pointer-events: none;
}

.challenge-card:hover .card-img-bg {
    opacity: 0.4;
    filter: grayscale(0%);
}

.challenge-card .card-content {
    position: relative;
    z-index: 2;
    padding: 10px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
}

.challenge-card .challenge-icon {
    font-size: 1.4rem;
    color: var(--metallic-gold);
    margin-bottom: 0;
    transition: transform 0.3s ease;
}

.challenge-card:hover .challenge-icon {
    transform: scale(1.1);
}

.challenge-card .challenge-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.challenge-card .challenge-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.challenge-card .challenge-level {
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--metallic-gold);
    opacity: 0.7;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .challenge-card {
        flex: 0 0 130px;
        height: 65px;
    }
}

/* LGPD Modal Styles */
.lgpd-modal {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    z-index: 1050;
    pointer-events: none;
    display: flex;
    justify-content: center;
}

@media (min-width: 992px) {
    .lgpd-modal {
        left: auto;
        right: 2rem;
        width: 400px;
    }
}

.lgpd-content {
    background-color: var(--graphite);
    padding: 1.5rem;
    border-radius: 12px;
    pointer-events: auto;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lgpd-icon-container {
    display: flex;
    justify-content: center;
}

.lgpd-icon {
    width: 40px;
    height: auto;
}

.lgpd-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

#lgpdFooterText {
    font-weight: 500;
    transition: opacity 0.5s ease;
}
