/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Tabelas Responsivas */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    background: #1a1a1a;
    color: #ff0066;
    font-weight: bold;
}

:root {
    --primary-color: #ff0066;
    --secondary-color: #ff69b4;
    --dark-bg: #000000;
    --dark-secondary: #1a1a1a;
    --dark-tertiary: #2a2a2a;
    --text-light: #ffffff;
    --text-gray: #cccccc;
    --gradient-sexy: linear-gradient(135deg, #ff0066 0%, #ff69b4 100%);
    --gradient-dark: linear-gradient(180deg, #000000 0%, #1a1a1a 100%);
    --shadow-glow: 0 0 20px rgba(255, 0, 102, 0.5);
    --shadow-card: 0 8px 32px rgba(255, 0, 102, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
header {
    background: var(--dark-secondary);
    border-bottom: 2px solid var(--primary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255, 0, 102, 0.3);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    background: var(--gradient-sexy);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    text-shadow: var(--shadow-glow);
}

/* Busca */
.search-form {
    display: flex;
    gap: 5px;
    flex-grow: 1;
    max-width: 300px;
    margin: 0 20px;
}

.search-form input {
    padding: 8px;
    border: 1px solid #333;
    border-radius: 5px;
    background: #1a1a1a;
    color: white;
    flex-grow: 1;
    min-width: 0;
}

.search-form button {
    background: #ff0066;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
}

/* Menu Responsivo */
.menu-toggle {
    display: none;
    background: var(--dark-tertiary);
    border: 1px solid var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.menu-icon {
    font-size: 20px;
}

.menu-text {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    align-items: center;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 5px;
    white-space: nowrap;
}

nav a:hover {
    color: var(--primary-color);
    background: rgba(255, 0, 102, 0.1);
}

/* Popup de Confirmação de Idade */
.age-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.age-popup.active {
    display: flex;
}

#agePopup {
    display: none;
}

#agePopup.active {
    display: flex;
}

.age-popup-content {
    background: var(--dark-secondary);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-card);
}

.age-popup-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    background: var(--gradient-sexy);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.age-popup-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-gray);
}

.age-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.age-buttons button {
    padding: 15px 40px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn-yes {
    background: var(--gradient-sexy);
    color: white;
}

.btn-yes:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.btn-no {
    background: var(--dark-tertiary);
    color: var(--text-light);
}

.btn-no:hover {
    background: #333;
}

/* Slider de Fotos - PADRONIZADO */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 10px;
    width: 100%;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

/* Botões */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-sexy);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--dark-tertiary);
    color: var(--text-light);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
}

/* Cards de Publicações */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.publication-card {
    background: var(--dark-secondary);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.publication-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-card);
}

.publication-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    position: relative;
}

.publication-content {
    padding: 20px;
}

.publication-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.publication-description {
    color: var(--text-gray);
    margin-bottom: 15px;
    font-size: 14px;
}

.publication-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Formulários */
.auth-box {
    max-width: 500px;
    margin: 50px auto;
    background: var(--dark-secondary);
    padding: 40px;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-card);
    width: 100%;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 32px;
    background: var(--gradient-sexy);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background: var(--dark-tertiary);
    border: 1px solid #444;
    border-radius: 8px;
    color: var(--text-light);
    font-size: 16px;
    min-width: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 0, 102, 0.3);
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-gray);
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Alertas */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    color: #ff6666;
}

.alert-success {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid #00ff00;
    color: #66ff66;
}

.alert-info {
    background: rgba(0, 102, 255, 0.2);
    border: 1px solid #0066ff;
    color: #6699ff;
}

/* Footer */
footer {
    background: var(--dark-secondary);
    border-top: 2px solid var(--primary-color);
    margin-top: 60px;
    padding: 40px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-sexy {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    object-fit: cover;
}

.footer-text {
    font-style: italic;
    color: var(--secondary-color);
    font-size: 18px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Dashboard */
.dashboard-header {
    background: var(--gradient-sexy);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--dark-secondary);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--primary-color);
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-gray);
    margin-top: 5px;
}

/* Tabelas */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--dark-secondary);
    border-radius: 10px;
    overflow: hidden;
}

thead {
    background: var(--gradient-sexy);
}

th, td {
    padding: 15px;
    text-align: left;
}

tbody tr {
    border-bottom: 1px solid var(--dark-tertiary);
}

tbody tr:hover {
    background: rgba(255, 0, 102, 0.1);
}

/* ============================================
   RESPONSIVIDADE MOBILE - 768px (Tablets)
   ============================================ */
@media (max-width: 992px) {
    .container {
        padding: 15px;
    }
    
    .header-content {
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .menu-toggle {
        display: flex;
        order: 1;
    }

    .logo {
        order: 2;
        font-size: 22px;
        margin: 0 auto;
    }

    .search-form {
        order: 3;
        max-width: 150px;
        margin: 0;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s ease-in-out;
        background: var(--dark-secondary);
        z-index: 1000;
        border-bottom: 2px solid var(--primary-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    nav.active {
        max-height: 80vh;
        overflow-y: auto;
        padding: 15px 0;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 0 15px;
    }

    nav ul li {
        width: 100%;
    }

    nav a {
        display: block;
        padding: 15px 20px;
        border-radius: 8px;
        text-align: left;
        background: rgba(255, 255, 255, 0.03);
        margin-bottom: 5px;
        font-size: 16px;
    }

    nav a:hover {
        background: rgba(255, 0, 102, 0.1);
        padding-left: 30px;
    }
    
    /* Slider */
    .hero-slider {
        height: 300px;
    }
    
    .slide-overlay {
        padding: 20px;
    }
    
    .slide-overlay h2 {
        font-size: 24px !important;
    }
    
    .slide-overlay p {
        font-size: 14px !important;
    }
    
    /* Cards */
    .publications-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    /* Formulários */
    .auth-box {
        padding: 30px 20px;
        margin: 30px 15px;
    }
    
    .auth-box h2 {
        font-size: 28px;
    }
    
    /* Popup idade */
    .age-popup-content {
        padding: 30px 20px;
    }
    
    .age-popup-content h2 {
        font-size: 28px;
    }
    
    .age-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .age-buttons button {
        width: 100%;
    }
    
    /* Dashboard */
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    /* Tabelas */
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 10px 8px;
    }
}

/* ============================================
   RESPONSIVIDADE MOBILE - 414px (Celulares grandes)
   ============================================ */
@media (max-width: 414px) {
    .container {
        padding: 10px;
    }
    
    .header-content {
        padding: 10px;
        gap: 5px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .search-form {
        max-width: 100px;
    }
    
    .menu-toggle {
        padding: 6px 10px;
    }
    
    .menu-text {
        display: none;
    }
    
    .search-form input {
        font-size: 14px;
        padding: 6px;
    }
    
    .search-form button {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    /* Slider */
    .hero-slider {
        height: 250px;
        margin-bottom: 20px;
    }
    
    .slide-overlay {
        padding: 15px;
    }
    
    .slide-overlay h2 {
        font-size: 20px !important;
        margin-bottom: 5px !important;
    }
    
    .slide-overlay p {
        font-size: 12px !important;
    }
    
    /* Cards */
    .publications-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .publication-card {
        margin-bottom: 10px;
    }
    
    .publication-image {
        height: 200px;
    }
    
    .publication-content {
        padding: 15px;
    }
    
    .publication-title {
        font-size: 18px;
    }
    
    .publication-price {
        font-size: 20px;
    }
    
    /* Botões */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
    }
    
    /* Formulários */
    .auth-box {
        padding: 25px 15px;
        margin: 20px 10px;
    }
    
    .auth-box h2 {
        font-size: 24px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 14px;
        padding: 10px;
    }
    
    /* Popup idade */
    .age-popup-content {
        padding: 25px 15px;
    }
    
    .age-popup-content h2 {
        font-size: 24px;
    }
    
    .age-popup-content p {
        font-size: 16px;
    }
    
    .age-buttons button {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    /* Footer */
    .footer-image {
        width: 60px;
        height: 60px;
    }
    
    .footer-text {
        font-size: 16px;
    }
    
    .footer-links a {
        margin: 5px 0;
        display: block;
    }
    
    /* Dashboard */
    .dashboard-header {
        padding: 20px 15px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    /* Tabelas responsivas */
    table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    th, td {
        padding: 8px 5px;
    }
}

/* ============================================
   RESPONSIVIDADE MOBILE - 360px (Celulares pequenos)
   ============================================ */
@media (max-width: 360px) {
    .container {
        padding: 8px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    /* Slider */
    .hero-slider {
        height: 200px;
    }
    
    .slide-overlay {
        padding: 10px;
    }
    
    .slide-overlay h2 {
        font-size: 18px !important;
    }
    
    .slide-overlay p {
        font-size: 11px !important;
    }
    
    .slider-controls {
        bottom: 10px;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
    
    /* Cards */
    .publication-image {
        height: 180px;
    }
    
    .publication-content {
        padding: 12px;
    }
    
    .publication-title {
        font-size: 16px;
    }
    
    .publication-description {
        font-size: 13px;
    }
    
    .publication-price {
        font-size: 18px;
    }
    
    /* Botões */
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Formulários */
    .auth-box {
        padding: 20px 12px;
        margin: 15px 8px;
    }
    
    .auth-box h2 {
        font-size: 22px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 13px;
        padding: 8px;
    }
    
    /* Popup idade */
    .age-popup-content {
        padding: 20px 12px;
    }
    
    .age-popup-content h2 {
        font-size: 22px;
    }
    
    .age-popup-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .age-buttons button {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    /* Footer */
    .footer-content {
        padding: 0 10px;
    }
    
    .footer-image {
        width: 50px;
        height: 50px;
    }
    
    .footer-text {
        font-size: 14px;
    }
    
    /* Dashboard */
    .dashboard-header {
        padding: 15px 10px;
    }
    
    .stat-card {
        padding: 15px 10px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
}

/* Correções adicionais para evitar overflow */
img {
    max-width: 100%;
    height: auto;
}

* {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Garantir que nenhum elemento ultrapasse a tela */
body, html {
    overflow-x: hidden;
    width: 100%;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid #ff0066;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 0, 102, 0.5);
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.blur-content {
    filter: blur(15px);
    pointer-events: none;
    user-select: none;
}
