/* ==========================================================================
   1. Reset Básico e Globais
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #161515;
    color: #FFFFFF;
    line-height: 1.6;
    font-weight: 300;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    color: #E0E0E0;
    line-height: 1.3;
}

h1 { font-size: 2.8em; margin-bottom: 0.5em; }
h2 { font-size: 2em; margin-bottom: 1em; text-transform: uppercase; letter-spacing: 1.5px; text-align: center; }
h3 { font-size: 1.4em; margin-bottom: 0.75em; }


.section-padding {
    padding: 50px 0;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   2. Header
   ========================================================================== */
header {
    background-color: #000000;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #2a2a2a;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.6em;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 1px;
}

.main-menu ul {
    display: flex;
}

.main-menu ul li {
    margin-left: 30px;
}

.main-menu ul li a {
    color: #FFFFFF;
    padding: 8px 0;
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

.main-menu ul li a:hover,
.main-menu ul li a.active {
    color: red;
    border-bottom: 2px solid red;
}

.search-bar {
    display: flex;
}

.search-bar input[type="text"] {
    padding: 10px 12px;
    border: 1px solid #444;
    background-color: #2b2b2b;
    color: #FFF;
    border-radius: 4px 0 0 4px;
    font-size: 0.9em;
}
.search-bar input[type="text"]::placeholder {
    color: #aaa;
}

.search-bar button {
    padding: 10px 15px;
    background-color: orange;
    color: #161515;
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-bar button:hover {
    background-color: #e09500;
}
.search-bar button i {
    color: #161515;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFF;
    font-size: 1.8em;
    cursor: pointer;
}

/* ==========================================================================
   3. Hero Section (Home)
   ========================================================================== */
.hero-section {
    width: 100%;
    height: 500px;
    overflow: hidden;
}
.hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   4. SwiperJS (Carrosséis da Home)
   ========================================================================== */
.swiper {
    width: 100%;
    padding-bottom: 50px !important;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
}

.swiper-button-next,
.swiper-button-prev {
    color: orange !important;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 40px !important;
    height: 40px !important;
    transition: background-color 0.3s ease;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.6);
}
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px !important;
    font-weight: bold;
}

.swiper-pagination-bullet {
    background: #888 !important;
    opacity: 0.7 !important;
}
.swiper-pagination-bullet-active {
    background: orange !important;
    opacity: 1 !important;
}

/* ==========================================================================
   5. Grids de Modelos
   ========================================================================== */
.models-grid { /* Usado na home para .new-models */
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}
.models-page-grid { /* Usado na página models.html */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

/* ==========================================================================
   6. Card de Modelo (Estilo Unificado)
   ========================================================================== */
.model-card {
    background-color: #1C1C1C;
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.model-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}
.model-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.model-card img {
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid #333;
}
.featured-models .model-card img,
.most-viewed-models .model-card img,
.models-page-grid .model-card img {
    aspect-ratio: 250 / 375;
}
.new-models .model-card.small-thumb img {
    aspect-ratio: 155 / 234;
}
.card-info {
    padding: 12px 10px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: #222222;
}
.card-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75em;
    color: #a0a0a0;
    margin-bottom: 8px;
    font-weight: 300;
    min-height: 1.5em;
}
.upload-date i { margin-right: 4px; color: #777; }
.card-stats { display: flex; align-items: center; margin-left: auto; }
.card-stats span { margin-left: 10px; display: inline-flex; align-items: center; }
.card-stats span:first-child { margin-left: 0; }
.card-stats span i { color: #777; margin-right: 4px; font-size: 0.9em; line-height: 1; }
.model-name-title { color: orange; font-size: 1.05em; font-weight: 500; margin-bottom: 4px; line-height: 1.3; }
.model-studio-line { font-size: 0.8em; color: #b0b0b0; font-weight: 300; line-height: 1.4; }
.model-studio-line .by-text { color: #888; font-style: italic; margin-right: 4px; }
.model-card.small-thumb .upload-date { display: none; }
.model-card.small-thumb .card-meta-top { justify-content: flex-end; }

/* ==========================================================================
   7. Barra de Destaques (Home)
   ========================================================================== */
.highlights-bar { background-color: #0F0F0F; padding: 20px 0; }
.highlights-container { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; }
.highlight-item { margin: 8px 12px; font-size: 0.85em; font-weight: 400; text-transform: uppercase; display: inline-flex; align-items: center; color: #ccc; }
.highlight-item i { color: orange; margin-right: 8px; font-size: 1.2em; }

/* ==========================================================================
   8. Espaços de Publicidade (Home e Profile)
   ========================================================================== */
.ad-space-1 img, .ad-space-2 img, .profile-ad-space img { margin: 10px auto; border: 1px dashed #555; }
.ad-container-flex, .profile-ad-space .ad-container-flex { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* ==========================================================================
   9. Página de Listagem de Modelos (`models.html`)
   ========================================================================== */
.page-title-section { background-color: #111; text-align: center; padding-top: 40px; padding-bottom: 40px; border-bottom: 1px solid #2a2a2a; }
.page-subtitle { font-size: 1.1em; color: #bbb; font-weight: 300; }
.alphabetical-sort { display: flex; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #2a2a2a; flex-wrap: wrap; }
.alphabetical-sort .sort-label { font-weight: 500; color: #ddd; margin-right: 15px; font-size: 0.9em; }
.alphabetical-sort ul { padding: 0; margin: 0; display: flex; flex-wrap: wrap; }
.alphabetical-sort ul li { margin-right: 10px; }
.alphabetical-sort ul li:last-child { margin-right: 0; }
.alphabetical-sort ul li a { color: #bbb; font-size: 0.95em; font-weight: 400; padding: 5px 8px; border-radius: 3px; }
.alphabetical-sort ul li a:hover { color: #fff; background-color: #333; }
.alphabetical-sort ul li a.active { color: orange; font-weight: 600; background-color: transparent; }
.listing-controls.models-page-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #2a2a2a; font-size: 0.9em; color: #bbb; }
.listing-controls.models-page-controls .sort-by label { margin-right: 8px; }
.listing-controls.models-page-controls .sort-by select { padding: 10px 12px; background-color: #2b2b2b; border: 1px solid #444; color: #fff; border-radius: 4px; font-size: 1em; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23888888' width='16px' height='16px'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
.pagination.models-page-pagination { margin-top: 50px; text-align: center; }
.pagination.models-page-pagination ul { display: inline-flex; padding: 0; margin: 0; align-items: center; }
.pagination.models-page-pagination ul li { margin: 0 3px; }
.pagination.models-page-pagination ul li a { color: #bbb; font-size: 0.95em; font-weight: 500; display: flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 5px; border-radius: 50%; border: 1px solid transparent; }
.pagination.models-page-pagination ul li a.page-arrow { border-radius: 4px; min-width: auto; padding: 5px 10px; border: 1px solid #333; }
.pagination.models-page-pagination ul li a.page-arrow i { font-size: 0.8em; }
.pagination.models-page-pagination ul li a:hover { color: #fff; background-color: #333; border-color: #444; }
.pagination.models-page-pagination ul li a.page-current { background-color: orange; color: #161515; font-weight: 700; border-color: orange; }
.pagination.models-page-pagination ul li a.page-disabled, .pagination.models-page-pagination ul li a.page-disabled:hover { color: #555; background-color: transparent; border-color: #333; cursor: not-allowed; pointer-events: none; }
.pagination.models-page-pagination ul li a.page-disabled i { color: #555; }

/* ==========================================================================
   10. Página de Perfil de Modelo (`profile-model.html`)
   ========================================================================== */
.profile-header-section { background-color: #1a1a1a; padding-top: 50px; padding-bottom: 50px; border-bottom: 1px solid #2a2a2a; text-align: center; }
.profile-model-name { color: orange; font-size: 3em; font-weight: 700; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
.profile-model-studio { font-size: 1.1em; color: #bbb; font-weight: 300; }
.profile-model-studio a { color: #ccc; text-decoration: underline; text-decoration-color: #555; }
.profile-model-studio a:hover { color: orange; text-decoration-color: orange; }

.profile-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    align-items: flex-start;
}
.profile-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.profile-information {
    display: flex;
    flex-direction: column;
    min-height: 0; /* Ajuda com flex e overflow */
}
.profile-info-title { /* H2 "Informações de Download" */
    text-align: left;
    font-size: 1.6em;
    color: #e0e0e0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
    text-transform: none;
    letter-spacing: normal;
}
.portfolio-details-list.horizontal-details {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 0.8em; /* Reduzido para economizar espaço vertical */
    color: #ccc;
}
.portfolio-details-list.horizontal-details li {
    padding: 3px 0;
    border-bottom: none;
    display: inline-flex;
    align-items: center;
    font-weight: 300;
    margin-right: 12px;
}
.portfolio-details-list.horizontal-details li:last-child { margin-right: 0; }
.portfolio-details-list.horizontal-details li i { color: orange; margin-right: 5px; font-size: 0.9em; }
.portfolio-details-list.horizontal-details li strong { font-weight: 500; color: #ddd; margin-right: 4px; }

.profile-description h3 {
    text-align: left;
    font-size: 1.3em;
    color: #d0d0d0;
    margin-bottom: 8px;
    margin-top: 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #333;
}
.profile-description p { font-size: 0.85em; line-height: 1.5; color: #bbb; font-weight: 300; margin-bottom: 20px; }
.profile-actions { margin-bottom:20px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Botões Genéricos */
.btn { padding: 9px 18px; font-size: 0.85em; font-weight: 500; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; cursor: pointer; border: 1px solid transparent; }
.btn i { margin-right: 7px; }
.btn-primary { background-color: red; color: white; border-color: red; }
.btn-primary:hover { background-color: #cc0000; border-color: #cc0000; }
.btn-secondary { background-color: #383838; color: #ccc; border-color: #383838; }
.btn-secondary:hover { background-color: #4a4a4a; border-color: #4a4a4a; color: #fff; }

/* Galeria de Amostra Inline */
.profile-gallery-preview-inline {
    padding-top: 20px;
    border-top: 1px solid #333;
    margin-top: auto; /* Esta linha tenta empurrar a galeria para baixo */
    /* Se o conteúdo acima for menor que a imagem ao lado,
       isso ajuda a preencher o espaço. Se o conteúdo acima já for alto,
       esta regra pode não ter o efeito visual de alinhar com o rodapé da imagem. */
}
.gallery-preview-title {
    text-align: left;
    font-size: 1.1em;
    color: #c0c0c0;
    margin-bottom: 10px;
    font-weight: 400;
}
.gallery-grid-preview.four-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Força 4 colunas */
    gap: 8px;
}
.gallery-grid-preview img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4; /* EXPERIMENTE: 1/1 (quadrado), 4/5, 3/4. 2/3 é mais alto. */
    object-fit: cover;
    border-radius: 3px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.gallery-grid-preview a:hover img { transform: scale(1.02); box-shadow: 0 2px 5px rgba(0,0,0,0.2); }


/* ==========================================================================
   11. Footer (Manter como antes)
   ========================================================================== */
footer { background-color: #000000; color: #AAAAAA; padding: 40px 0; text-align: center; border-top: 1px solid #2a2a2a; }
.footer-container { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer-logo { font-size: 1.5em; font-weight: bold; color: #FFFFFF; }
.footer-links a { margin: 0 12px; color: #CCCCCC; font-weight: 500; }
.footer-links a:hover { color: orange; }
.footer-social a i { font-size: 1.8em; margin: 0 10px; color: #CCCCCC; }
.footer-social a:hover i { color: orange; }

/* ==========================================================================
   12. Responsividade
   ========================================================================== */
@media (max-width: 992px) { /* Tablet e telas menores */
    .new-models .models-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
    .highlight-item { flex-basis: calc(33.333% - 24px); justify-content: center; }
    .alphabetical-sort { justify-content: center; }
    .alphabetical-sort .sort-label { width: 100%; text-align: center; margin-bottom: 10px; margin-right: 0; }
    .models-page-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .profile-layout-grid { grid-template-columns: 1fr; }
    .profile-featured-image { margin-bottom: 30px; max-height: none; }
    .profile-info-title { font-size: 1.5em; }
    .profile-gallery-preview-inline { margin-top: 30px; /* Remove o auto e dá margem normal */ }
    .gallery-grid-preview.four-thumbs { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Mais flexível */ }
}

@media (max-width: 768px) { /* Mobile - telas médias */
    h1 { font-size: 2.2em; } h2 { font-size: 1.8em; }
    .header-container { position: relative; }
    .main-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background-color: #000000; padding: 10px 0; border-top: 1px solid #2a2a2a; }
    .main-menu.active { display: flex; }
    .main-menu ul { flex-direction: column; align-items: center; width: 100%; }
    .main-menu ul li { margin: 10px 0; width: 100%; text-align: center; }
    .main-menu ul li a { padding: 10px; display: block; width: 100%; border-bottom: none; }
    .main-menu ul li a:hover { background-color: #1a1a1a; border-bottom: none; }
    .menu-toggle { display: block; }
    .search-bar { flex-grow: 1; margin-left: 15px; max-width: 250px; }
    .hero-section { height: 350px; }
    .card-info { padding: 10px 8px; }
    .model-name-title { font-size: 1em; }
    .card-meta-top, .model-studio-line { font-size: 0.7em; }
    .card-stats span { margin-left: 6px; }
    .highlight-item { flex-basis: calc(50% - 24px); }
    .ad-container-flex { flex-direction: column; align-items: center; }
    .listing-controls.models-page-controls { flex-direction: column; gap: 20px; align-items: stretch; }
    .listing-controls.models-page-controls .sort-by { display: flex; flex-direction: column; align-items: flex-start; }
    .listing-controls.models-page-controls .sort-by select { width: 100%; margin-top: 5px; }
    .alphabetical-sort ul li { margin-right: 5px; }
    .alphabetical-sort ul li a { font-size: 0.9em; padding: 4px 6px; }
    .pagination.models-page-pagination ul li a { min-width: 34px; height: 34px; font-size: 0.9em; }
    .pagination.models-page-pagination ul li a.page-arrow { padding: 5px 8px; }
    .profile-model-name { font-size: 2.5em; }
    .profile-model-studio { font-size: 1em; }
    .profile-info-title { font-size: 1.4em; }
    .portfolio-details-list.horizontal-details { font-size: 0.8em; gap: 10px; }
    .portfolio-details-list.horizontal-details li { margin-right: 10px;}
    .profile-description h3 { font-size: 1.2em; }
    .profile-description p { font-size: 0.85em; }
    .gallery-grid-preview.four-thumbs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gallery-preview-title { font-size: 1.1em; }
    .profile-actions { flex-direction: column; align-items: stretch; }
    .profile-actions .btn { width: 100%; margin-bottom: 10px; }
    .profile-actions .btn:last-child { margin-bottom: 0; }
}

@media (max-width: 480px) { /* Mobile - telas pequenas */
    .logo a { font-size: 1.3em; }
    .search-bar { display: none; }
    .hero-section { height: 250px; }
    .new-models .models-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .model-card.small-thumb .model-name-title { font-size: 0.9em; }
    .model-card.small-thumb .card-meta-top, .model-card.small-thumb .model-studio-line { font-size: 0.65em; }
    .model-card.small-thumb .card-stats span { margin-left: 5px; }
    .model-card.small-thumb .card-stats span i { font-size: 0.85em; }
    .highlight-item { flex-basis: 100%; font-size: 0.8em; }
    .swiper-button-next, .swiper-button-prev { width: 30px !important; height: 30px !important; }
    .swiper-button-next::after, .swiper-button-prev::after { font-size: 16px !important; }
    .models-page-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
    .alphabetical-sort ul { justify-content: center; }
    .alphabetical-sort ul li { margin-bottom: 5px; }
    .pagination.models-page-pagination ul { flex-wrap: wrap; justify-content: center; }
    .pagination.models-page-pagination ul li { margin: 2px; }
    .pagination.models-page-pagination ul li a { min-width: 30px; height: 30px; font-size: 0.85em; }
    .profile-model-name { font-size: 2em; }
    .profile-layout-grid { gap: 25px; }
    .profile-info-title { font-size: 1.3em; }
    .portfolio-details-list.horizontal-details { flex-direction: column; align-items: flex-start; gap: 5px; }
    .portfolio-details-list.horizontal-details li { margin-right: 0; margin-bottom: 5px; }
    .gallery-grid-preview.four-thumbs { grid-template-columns: repeat(2, 1fr); }
    .gallery-preview-title { font-size: 1.2em; }
}