/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: #141414; color: #fff; font-family: 'Roboto', sans-serif; }
a { text-decoration: none; color: inherit; }

/* Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 4%; background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
    position: sticky; top: 0; z-index: 100;
}
.logo { font-family: 'Bebas Neue', cursive; color: #e50914; font-size: 2rem; letter-spacing: 2px; }
.logo span { color: #fff; }
.btn-add {
    background: #e50914; color: #fff; border: none; padding: 8px 15px;
    border-radius: 4px; font-weight: bold; cursor: pointer; transition: 0.3s;
}
.btn-add:hover { background: #f40612; }

/* Content */
.content { padding: 20px 4%; min-height: 80vh; }
.section-title { margin-bottom: 20px; font-size: 1.2rem; color: #e5e5e5; }

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* Card */
.card {
    background: #1f1f1f; border-radius: 4px; overflow: hidden;
    transition: transform 0.3s; position: relative;
    display: flex; flex-direction: column;
}
.card:hover { transform: scale(1.05); z-index: 10; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.card-img {
    height: 150px; background-size: cover; background-position: center;
}
.card-info { padding: 10px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.card h3 { font-size: 0.9rem; margin-bottom: 10px; font-weight: 400; color: #fff; }
.meta { margin-bottom: 10px; }
.badge { font-size: 0.7rem; padding: 2px 5px; border-radius: 2px; background: #333; }
.badge.makerworld { background: #00d18b; color: #000; }
.badge.crealitycloud { background: #007bff; color: #fff; }

.btn-ver {
    display: block; width: 100%; text-align: center;
    background: #333; padding: 8px; font-size: 0.8rem;
    border-radius: 2px; transition: 0.2s;
}
.btn-ver:hover { background: #fff; color: #000; }

/* Ads */
.ads-container { text-align: center; padding: 10px; background: #000; }
.ad-banner { background: #222; color: #666; display: inline-block; padding: 20px; border: 1px dashed #444; width: 100%; max-width: 728px; }
.ad-card { display: flex; align-items: center; justify-content: center; height: 100%; background: #000; border: 1px solid #333; color: #666; text-align: center; padding: 20px; }

/* Modal */
.modal {
    display: none; position: fixed; z-index: 200; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.8);
    justify-content: center; align-items: center;
}
.modal-content {
    background: #181818; padding: 30px; border-radius: 8px;
    width: 90%; max-width: 500px; position: relative; text-align: center;
}
.close { position: absolute; top: 10px; right: 20px; font-size: 30px; cursor: pointer; }
.modal input {
    width: 100%; padding: 15px; margin: 20px 0; background: #333;
    border: none; color: white; border-radius: 4px;
}
.btn-submit {
    width: 100%; padding: 15px; background: #e50914; color: white;
    border: none; font-weight: bold; cursor: pointer;
}

/* Footer */
.footer { padding: 50px 4% 20px; text-align: center; color: #666; font-size: 0.8rem; border-top: 1px solid #333; margin-top: 40px; }
.legal { margin-top: 10px; font-style: italic; }
.alert { background: #28a745; color: white; padding: 10px; text-align: center; margin-bottom: 20px; }

/* Pagination */
.pagination { text-align: center; margin-top: 40px; }
.btn-nav { padding: 10px 20px; background: #333; margin: 0 5px; }

@media (max-width: 600px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .card-img { height: 100px; }
}