/* --- Global Styles & Typography --- */

body {
    /* A modern, system-ui font stack that looks great on all devices */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- Asset Card Styles (Crucial for the premium feel) --- */

.asset-card {
    /* Smooth transitions for hover effects */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Add a subtle "lift" effect when the user hovers over a card */
.asset-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12) !important;
}

.asset-card-img-container {
    position: relative;
    overflow: hidden; /* This is key for the image zoom effect */
    display: block; /* Ensures the container behaves like a block element */
}

.asset-card-img {
    height: 180px;
    object-fit: cover; /* Ensures images fill the space without distortion */
    transition: transform 0.3s ease;
}

/* Add a slight zoom-in effect to the image on hover */
.asset-card:hover .asset-card-img {
    transform: scale(1.05);
}

.asset-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* A subtle gradient to make text/badges more readable on busy images */
    background: linear-gradient(to top, rgba(0,0,0,0.35), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Fade in the overlay on hover */
.asset-card:hover .asset-card-overlay {
    opacity: 1;
}

.asset-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    font-size: 0.75rem;
}

/* Slide in the badge on hover */
.asset-card:hover .asset-card-badge {
    opacity: 1;
    transform: translateY(0);
}

.asset-card-download-btn {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

/* Fade in the download button when hovering over the card */
.asset-card:hover .asset-card-download-btn {
    opacity: 1;
}

/* Fix for Bootstrap's text-truncate behavior inside a flexbox container */
.card-body .text-truncate {
    min-width: 0;
}

/* --- Monetization & Ad Placeholder Styles --- */

/* A utility class for creating dashed borders on ad placeholders */
.border-dashed {
    border: 2px dashed #ced4da;
}

.ad-placeholder {
    min-height: 180px; /* Ensures grid layout doesn't break */
}

.ad-placeholder-sidebar {
    min-height: 400px;
}

.ad-placeholder-leaderboard {
    min-height: 90px;
}

/* --- Minor UI Tweaks --- */

/* Make the navbar brand slightly bolder */
.navbar-brand {
    font-weight: 600;
}

/* A slightly more subtle underline for links in the footer */
.footer a:hover {
    text-decoration: underline !important;
}

/* --- Hero Section Styles --- */

.hero-section {
    position: relative; /* Required for the overlay to work */
    background-size: cover; /* Ensures the image covers the entire area */
    background-position: center center; /* Centers the image */
    background-repeat: no-repeat;
    z-index: 1;
}

/* This adds a dark overlay on top of the image, making text readable */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* A semi-transparent black overlay */
    z-index: -1; /* Places the overlay behind the hero's text content */
}