/* Custom CSS Variables */
:root {
    --gold: #FFD700;
    --green: #00E676;
    --blue: #00BCD4;
    --red: #FF5252;
    --orange: #FF9800;
    --purple: #9C27B0;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: #1a1a1a;
    --light-gray: #cccccc;
    --border-color: #333;
}

/* Global Styles */
body {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}
.text-cinza {
    color: #cdcccc !important;
}
.container {
    max-width: 760px;
}

.text-gold { color: var(--gold) !important; }
.text-green { color: var(--green) !important; }
.text-blue { color: var(--blue) !important; }
.text-red { color: var(--red) !important; }
.text-orange { color: var(--orange) !important; }
.text-light-gray { color: var(--light-gray) !important; }

.bg-gold { background-color: var(--gold) !important; }
.bg-green { background-color: var(--green) !important; }
.bg-blue { background-color: var(--blue) !important; }
.bg-red { background-color: var(--red) !important; }
.bg-purple { background-color: var(--purple) !important; }

/* Navbar */
.bg-dark-gradient {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d1117 100%);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #FFA000 100%);
    border: none;
    color: #000;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    color: #000;
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    z-index: 1;
}

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

.min-vh-50 {
    min-height: 50vh;
}

.hero-stats {
    margin-top: 3rem;
}

.stat-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--light-gray);
    margin: 0;
}

/* Background Sections */
.bg-dark-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d1117 100%);
}

.bg-darker {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Stats Cards */
.stats-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stats-card:hover::before {
    opacity: 1;
}

.bg-gradient-green {
    background: linear-gradient(135deg, var(--green) 0%, #00C853 100%);
}

.bg-gradient-blue {
    background: linear-gradient(135deg, var(--blue) 0%, #0097A7 100%);
}

.bg-gradient-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #FFA000 100%);
}

.bg-gradient-red {
    background: linear-gradient(135deg, var(--red) 0%, #D32F2F 100%);
}

.stats-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light-gray);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    transform: translateY(-2px);
}

.form-select.bg-dark {
    background-color: var(--card-bg) !important;
    border-color: var(--gold);
    color: white;
}

.form-select.bg-dark:focus {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.border-gold {
    border-color: var(--gold) !important;
}

/* Treasure Cards */
.treasure-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.treasure-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--gold);
}

.treasure-card.completed {
    opacity: 0.8;
    border-color: var(--green);
}

.treasure-card.completed:hover {
    border-color: var(--gold);
    opacity: 1;
}

.card-header {
    padding: 1rem;
    position: relative;
}

.card-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.treasure-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.8rem;
}

.card-description {
    color: var(--light-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.card-info {
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--light-gray);
}

.card-footer {
    display: flex;
    justify-content: between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reward {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.reward-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
}

/* Badges */
.badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
}

.badge-green {
    background: linear-gradient(135deg, var(--green) 0%, #00C853 100%);
    color: white;
}

.badge-red {
    background: linear-gradient(135deg, var(--red) 0%, #D32F2F 100%);
    color: white;
}

.badge-completed {
    background: linear-gradient(135deg, var(--green) 0%, #00C853 100%);
    color: white;
}

.badge-difficulty-easy {
    background: linear-gradient(135deg, var(--green) 0%, #00C853 100%);
    color: white;
}

.badge-difficulty-medium {
    background: linear-gradient(135deg, var(--orange) 0%, #F57C00 100%);
    color: white;
}

.badge-difficulty-hard {
    background: linear-gradient(135deg, var(--red) 0%, #D32F2F 100%);
    color: white;
}

.badge-difficulty-extreme {
    background: linear-gradient(135deg, var(--purple) 0%, #7B1FA2 100%);
    color: white;
}

.winner-badge {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--gold);
    border-radius: 10px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--gold);
    text-align: center;
}

/* How to Play Section */
.how-to-play-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(0, 230, 118, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.how-to-play-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 230, 118, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.how-to-play-section .container {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 0;
}

.steps-container {
    position: relative;
    padding: 2rem 0;
}

.step-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease-out forwards;
}

.step-item:nth-child(1) { animation-delay: 0.2s; }
.step-item:nth-child(2) { animation-delay: 0.4s; }
.step-item:nth-child(3) { animation-delay: 0.6s; }
.step-item:nth-child(4) { animation-delay: 0.8s; }
.step-item:nth-child(5) { animation-delay: 1.0s; }

.step-item:last-child {
    margin-bottom: 0;
}

.step-item:last-child .step-arrow {
    display: none;
}

.step-number {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold) 0%, #FFA000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2rem;
    box-shadow:
        0 8px 25px rgba(255, 215, 0, 0.3),
        0 0 0 4px rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.step-number:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow:
        0 12px 35px rgba(255, 215, 0, 0.4),
        0 0 0 6px rgba(255, 215, 0, 0.2);
}

.step-number i {
    font-size: 1.5rem;
    color: #000;
    position: absolute;
    opacity: 1;
    transition: all 0.3s ease;
}

.step-number .number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    position: absolute;
    opacity: 0;
    transition: all 0.3s ease;
}

.step-number:hover i {
    opacity: 0;
    transform: scale(0.8);
}

.step-number:hover .number {
    opacity: 1;
    transform: scale(1);
}

.step-content {
    flex: 1;
    padding: 1.5rem;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.step-item:hover .step-content::before {
    left: 100%;
}

.step-content:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.step-content h4 {
    color: var(--gold);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 2;
}

.step-content p {
    color: var(--light-gray);
    margin-bottom: 0;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.step-arrow {
    position: absolute;
    left: 40px;
    bottom: -1.5rem;
    color: var(--gold);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    z-index: 3;
}

.cta-button {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

/* Treasure Card Horizontal */
.treasure-card-horizontal {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    min-height: 200px;
    width: 100%;
}

.treasure-card-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--gold);
}

.treasure-card-horizontal .card-image {
    position: relative;
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    height: auto !important;
    overflow: hidden;
    flex-shrink: 0;
}

.treasure-card-horizontal .card-image img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.treasure-card-horizontal:hover .card-image img {
    transform: scale(1.05);
}

.treasure-card-horizontal .card-content {
    padding: 1.5rem !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between;
    width: calc(100% - 300px);
}

.treasure-card-horizontal .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.8rem;
}

.treasure-card-horizontal .card-description {
    color: var(--light-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.treasure-card-horizontal .card-info {
    margin-bottom: 1rem;
}

.treasure-card-horizontal .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.treasure-card-horizontal .card-footer .btn {
    flex: 1;
    max-width: 200px;
}

.treasure-card-horizontal .reward {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.treasure-card-horizontal .reward-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulseScale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse-dot {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
}

.glow-effect {
    animation: glow 3s ease-in-out infinite;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Footer */
footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-gray);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-2px);
}

footer a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--gold);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .stats-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .filter-tabs {
        justify-content: center;
    }

    .card-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .social-links {
        justify-content: center;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .step-arrow {
        left: 50%;
        transform: translateX(-50%);
    }

    .section-title {
        font-size: 2rem;
    }

    .step-content h4 {
        font-size: 1.2rem;
    }

    /* Treasure Card Horizontal Responsive */
    .treasure-card-horizontal {
        flex-direction: column !important;
        min-height: auto;
    }

    .treasure-card-horizontal .card-image {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 250px !important;
    }

    .treasure-card-horizontal .card-content {
        padding: 1rem !important;
        width: 100% !important;
    }

    .treasure-card-horizontal .card-title {
        font-size: 1.1rem;
    }

    .treasure-card-horizontal .card-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .treasure-card {
        margin-bottom: 2rem;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}