/* ========================================
   SONHO MEU - ESTILOS PRINCIPAIS
   Design moderno, responsivo e acolhedor
   ======================================== */

:root {
    /* Cores Pastel Acolhedoras */
    --color-primary: #FF6B9D;        /* Rosa suave */
    --color-secondary: #A8D8EA;      /* Azul pastel */
    --color-accent: #FFD93D;         /* Amarelo suave */
    --color-success: #6BCB77;        /* Verde suave */
    --color-light: #F9F8FF;          /* Branco azulado */
    --color-dark: #2D3142;           /* Cinza escuro */
    --color-text: #3D3D3D;           /* Texto cinzento */
    
    /* Tipografia */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Quicksand', sans-serif;
    
    /* Espaçamento */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    
    /* Transições */
    --transition: all 0.3s ease;
}

/* ========================================
   RESET E BASE
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========================================
   HEADER E NAVEGAÇÃO
   ======================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.95) 0%, rgba(168, 216, 234, 0.95) 100%);
    box-shadow: var(--shadow-md);
}

.navbar {
    padding: var(--spacing-md) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    font-family: var(--font-secondary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   HERO / BANNER
   ======================================== */

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FF6B9D 0%, #A8D8EA 50%, #FFD93D 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: var(--spacing-xl);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xl);
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.1);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   ANIMAÇÕES
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

/* ========================================
   BOTÕES
   ======================================== */

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B9D, #FF8FB3);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #E74C84, #FF6B9D);
}

.btn-secondary {
    background: linear-gradient(135deg, #A8D8EA, #B8E0F0);
    color: var(--color-dark);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #90CCDD, #A8D8EA);
}

/* ========================================
   SEÇÃO INTRO
   ======================================== */

.intro-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(to bottom, #F9F8FF, #fff);
}

.intro-box {
    background: white;
    padding: var(--spacing-xl);
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--color-primary);
    animation: fadeIn 0.8s ease-out 0.6s both;
}

.intro-box h2 {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.intro-box p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text);
    line-height: 1.8;
}

.intro-highlight {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    background: linear-gradient(135deg, #FFE5F0, #E0F7FF);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 15px;
    margin-top: var(--spacing-lg);
}

.highlight-icon {
    font-size: 2rem;
}

.highlight-text {
    font-size: 1.1rem;
    color: var(--color-dark);
}

/* ========================================
   SEÇÕES COMUNS
   ======================================== */

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    color: var(--color-dark);
    position: relative;
    padding-bottom: var(--spacing-lg);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

/* ========================================
   SOBRE NÓS
   ======================================== */

.about-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(to bottom, #fff, #F9F8FF);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xxl);
}

.about-box {
    background: linear-gradient(135deg, #FFE5F0, #E0F7FF);
    padding: var(--spacing-lg);
    border-radius: 15px;
    transition: var(--transition);
    cursor: pointer;
}

.about-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.about-box h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-secondary);
}

.about-box p {
    color: var(--color-text);
    line-height: 1.8;
}

.about-history {
    background: white;
    padding: var(--spacing-xl);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--color-secondary);
}

.about-history h3 {
    font-size: 1.8rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-lg);
}

.about-history p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--color-text);
}

/* ========================================
   UNIDADES
   ======================================== */

.units-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(to bottom, #F9F8FF, #fff);
}

.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.unit-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 4px solid var(--color-accent);
}

.unit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.unit-image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #FFD93D 0%, #FFEB99 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.unit-content {
    padding: var(--spacing-lg);
}

.unit-content h3 {
    font-size: 1.8rem;
    color: var(--color-dark);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-secondary);
}

.unit-address {
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.unit-info {
    background: #F9F8FF;
    padding: var(--spacing-md);
    border-radius: 10px;
    margin-bottom: var(--spacing-md);
}

.unit-info p {
    margin: var(--spacing-xs) 0;
    color: var(--color-text);
}

.unit-highlights {
    margin-bottom: var(--spacing-lg);
}

.unit-highlights h4 {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-secondary);
}

.unit-highlights ul {
    list-style: none;
}

.unit-highlights li {
    padding: var(--spacing-xs) 0;
    color: var(--color-text);
}

/* ========================================
   CUIDADOS
   ======================================== */

.care-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(to bottom, #fff, #F9F8FF);
}

.care-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.care-card {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(168, 216, 234, 0.1));
    padding: var(--spacing-lg);
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.care-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.care-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.care-card h3 {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-secondary);
}

.care-card p {
    color: var(--color-text);
    line-height: 1.8;
}

/* ========================================
   GALERIA
   ======================================== */

.gallery-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(to bottom, #F9F8FF, #fff);
}

.gallery-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    background: linear-gradient(135deg, #FFD93D, #A8D8EA);
}

.gallery-item:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xxl);
    background: #F9F8FF;
    border-radius: 15px;
    color: var(--color-text);
    font-size: 1.2rem;
}

/* ========================================
   CONTATO
   ======================================== */

.contact-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(to bottom, #fff, #F9F8FF);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.contact-box {
    background: linear-gradient(135deg, #FFE5F0, #E0F7FF);
    padding: var(--spacing-lg);
    border-radius: 15px;
    transition: var(--transition);
}

.contact-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-box h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-secondary);
}

.contact-box p {
    color: var(--color-text);
    margin: var(--spacing-sm) 0;
}

.contact-box a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-box a:hover {
    text-decoration: underline;
}

.contact-form {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--color-primary);
}

.contact-form h3 {
    color: var(--color-dark);
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-secondary);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* ========================================
   RODAPÉ
   ======================================== */

.footer {
    background: linear-gradient(135deg, #2D3142, #4A4E63);
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.footer-content p {
    margin: var(--spacing-sm) 0;
    opacity: 0.9;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 107, 157, 0.95);
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
        border-top: 2px solid white;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .units-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }
    
    .intro-box {
        padding: var(--spacing-md);
    }
}

/* ========================================
   LOGIN E ADMIN
   ======================================== */

/* Botão de Login no Nav */
.nav-btn-login,
.nav-btn-logout {
    background: rgba(255, 107, 157, 0.2);
    color: white;
    border: 2px solid white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-family: var(--font-primary);
    font-size: 0.9rem;
}

.nav-btn-login:hover,
.nav-btn-logout:hover {
    background: rgba(255, 107, 157, 0.4);
    transform: translateY(-2px);
}

/* Badge de Admin */
.admin-badge {
    background: rgba(107, 203, 119, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Modal de Login */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.9); }
}

.login-modal-content {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Box */
.login-box {
    max-width: 420px;
    width: 90%;
    padding: 2.5rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    color: var(--color-dark);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #999;
    font-size: 0.9rem;
}

/* Form Groups Login */
.form-group-login {
    margin-bottom: 1.2rem;
}

.form-group-login label {
    display: block;
    color: var(--color-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group-login input {
    width: 100%;
    padding: 0.85rem;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group-login input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.15);
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-login-submit {
    padding: 0.95rem;
    background: linear-gradient(135deg, var(--color-primary), #FF85B8);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    font-family: var(--font-primary);
    margin-top: 0.5rem;
}

.btn-login-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.3);
}

.btn-login-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-error {
    color: #e74c3c;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.5rem;
    font-weight: 500;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.login-footer p {
    color: #999;
    font-size: 0.85rem;
}

/* Foto Box */
.foto-box {
    max-width: 500px;
    width: 90%;
    padding: 2rem;
}

.foto-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.foto-header h2 {
    color: var(--color-dark);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.foto-header p {
    color: #999;
    font-size: 0.9rem;
}

/* Form Groups Foto */
.form-group-foto {
    margin-bottom: 1.3rem;
}

.form-group-foto label {
    display: block;
    color: var(--color-dark);
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.form-group-foto input[type="file"],
.form-group-foto textarea {
    width: 100%;
    padding: 0.85rem;
    border: 2px dashed #e8e8e8;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group-foto input[type="file"]:focus,
.form-group-foto textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.1);
}

.form-group-foto textarea {
    resize: vertical;
    border-style: solid;
    min-height: 80px;
}

.form-group-foto small {
    display: block;
    color: #999;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

/* Foto Form */
.foto-form {
    display: flex;
    flex-direction: column;
}

.btn-foto-submit {
    padding: 0.95rem;
    background: linear-gradient(135deg, var(--color-success), #7FD5A0);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    font-family: var(--font-primary);
    margin-top: 0.5rem;
}

.btn-foto-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(107, 203, 119, 0.3);
}

.btn-foto-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Foto Status Messages */
.foto-status {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
}

.foto-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.foto-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.foto-status.loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
    background: none;
    border: none;
}

.modal-close:hover {
    color: var(--color-dark);
    transform: rotate(90deg);
}

/* Gallery Header */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Gallery Item com Overlay */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.8);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4), transparent);
    color: white;
    padding: 1.5rem 1rem 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.gallery-overlay p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    line-height: 1.3;
}

.gallery-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-edit {
    background: rgba(255, 107, 157, 0.85);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-edit:hover:not(:disabled) {
    background: rgba(255, 107, 157, 1);
    transform: scale(1.05);
}

.btn-edit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-admin {
    background: linear-gradient(135deg, var(--color-success), #7FD5A0);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .login-modal-content {
        max-width: none !important;
    }
    
    .login-box {
        padding: 1.5rem;
    }
    
    .foto-box {
        padding: 1.5rem;
    }
}

/* ========================================
   EDIÇÃO DE CONTEÚDO
   ======================================== */

.nav-btn-edit {
    background: rgba(168, 216, 234, 0.3);
    color: white;
    border: 2px solid white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-family: var(--font-primary);
    font-size: 0.9rem;
}

.nav-btn-edit:hover {
    background: rgba(168, 216, 234, 0.5);
    transform: translateY(-2px);
}

/* Edit Box */
.edit-box {
    max-width: 600px;
    width: 90%;
    padding: 2rem;
    max-height: 85vh;
    overflow-y: auto;
}

.edit-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.edit-header h2 {
    color: var(--color-dark);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.edit-header p {
    color: #999;
    font-size: 0.9rem;
}

/* Edit Tabs */
.edit-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e8e8e8;
}

.edit-tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: #999;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    font-size: 0.95rem;
}

.edit-tab-btn:hover {
    color: var(--color-dark);
}

.edit-tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* Edit Content */
.edit-content {
    min-height: 300px;
}

.edit-tab-content {
    display: none;
}

.edit-tab-content.active {
    display: block;
}

.edit-tab-content h3 {
    color: var(--color-dark);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

/* Form Groups Edit */
.form-group-edit {
    margin-bottom: 1.2rem;
}

.form-group-edit label {
    display: block;
    color: var(--color-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group-edit input,
.form-group-edit textarea {
    width: 100%;
    padding: 0.85rem;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group-edit input:focus,
.form-group-edit textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(255, 107, 157, 0.1);
}

.form-group-edit textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-edit-submit {
    width: 100%;
    padding: 0.95rem;
    background: linear-gradient(135deg, var(--color-primary), #FF85B8);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    font-family: var(--font-primary);
    margin-top: 1rem;
}

.btn-edit-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.3);
}

.btn-edit-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

