/* --- Estilo de Alta-Costura: Paris Fashion Show --- */

:root {
    /* Paleta de Cores */
    --color-dark-charcoal: #1a1a1a;
    --color-creme: #fdfaf6;
    --color-gold-accent: #d4af37;
    --color-light-grey: #e0e0e0;
    --color-text: #333333;
    --color-text-muted: #6c757d;

    /* Cores de Ação */
    --color-edit: #007bff;
    --color-delete: #dc3545;
    --color-share: #28a745;
    --color-unshare: #ffc107; /* Amarelo para "Tornar Privado" */

    /* Cores dos Provedores */
    --color-google-blue: #4285F4;
    --color-facebook-blue: #1877F2;

    /* Tipografia */
    --font-primary: 'Playfair Display', serif; /* Para títulos e logos */
    --font-secondary: 'Montserrat', sans-serif; /* Para corpo e navegação */

    /* Padrões */
    --border-radius: 6px;
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    --transition: all 0.3s ease-in-out;
}

/* --- Reset e Base --- */
* { box-sizing: border-box; }

body {
    font-family: var(--font-secondary);
    background-color: var(--color-creme);
    color: var(--color-text);
    margin: 0;
    padding-top: 80px; /* Espaço para o header fixo */
    line-height: 1.6;
}

/* --- Header e Navegação --- */
.main-header {
    background-color: var(--color-dark-charcoal);
    color: var(--color-creme);
    padding: 0 2rem;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* --- ESTILO DO LOGÓTIPO --- */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}
.logo-img {
    width: 120px;
    height: auto;
    transition: var(--transition);
}
.logo a:hover .logo-img {
    opacity: 0.9;
}
/* --- FIM DA ATUALIZAÇÃO DO LOGÓTIPO --- */

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin-left: 1.5rem;
}

.main-nav a {
    color: var(--color-creme);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding-bottom: 5px;
    position: relative;
    transition: var(--transition);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold-accent);
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--color-gold-accent);
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-logout {
    border: 1px solid var(--color-gold-accent);
    padding: 8px 15px;
    border-radius: var(--border-radius);
}
.nav-logout:hover {
    background-color: var(--color-gold-accent);
    color: var(--color-dark-charcoal);
}

/* Botão Hamburger (escondido por defeito) */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}
.hamburger-menu svg {
    color: var(--color-creme);
}
.icon-close { display: none; }


/* --- Conteúdo Principal --- */
.main-content {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 2rem;
}

/* --- Estilos para o Armário --- */
.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-header h1 {
    font-family: var(--font-primary);
    font-size: 3rem;
    margin: 0;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.clothing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.clothing-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.clothing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.clothing-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 1rem;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    flex-grow: 1; 
}

.card-details {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

/* --- BOTÕES DE AÇÃO DO CARTÃO --- */
.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto; 
}
.card-action-btn {
    flex-grow: 1;
    text-align: center;
    padding: 0.5rem;
    text-decoration: none;
    color: #fff;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}
.edit-btn { background-color: var(--color-edit); }
.edit-btn:hover { background-color: #0056b3; }
.delete-btn { background-color: var(--color-delete); }
.delete-btn:hover { background-color: #c82333; }
.share-btn { background-color: var(--color-share); }
.share-btn:hover { background-color: #218838; }
.unshare-btn {background-color: var(--color-unshare);
    color: var(--color-dark-charcoal);}
.unshare-btn:hover {background-color: #e0a800;
}
/* --- FIM DOS BOTÕES DE AÇÃO --- */

/* --- Rodapé --- */
.main-footer {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--color-light-grey);
    margin-top: 2rem;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition);
    margin: 0 10px;
}

.footer-links a:hover {
    color: var(--color-gold-accent);
    text-decoration: underline;
}

/* --- Estilos para a Página do Dashboard --- */
.dashboard-container { text-align: center; }
.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 5px solid #fff;
    box-shadow: var(--box-shadow);
}
.dashboard-actions {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.action-btn {
    background-color: var(--color-dark-charcoal);
    color: var(--color-creme);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--color-dark-charcoal);
}
.action-btn:hover {
    background-color: var(--color-creme);
    color: var(--color-dark-charcoal);
}


/* --- Estilos para Formulários --- */
.form-container { max-width: 800px; margin: 0 auto; text-align: left; }
fieldset {
    border: 1px solid var(--color-light-grey); 
    padding: 2rem;
    border-radius: var(--border-radius); 
    margin-bottom: 2rem;
}
legend {
    font-family: var(--font-primary); 
    font-size: 1.5rem;
    padding: 0 1rem; 
    color: var(--color-dark-charcoal);
}
.form-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label { 
    font-weight: 500; 
    margin-bottom: 0.5rem; 
    display: block; 
}
.form-control {
    width: 100%; 
    padding: 12px; 
    border-radius: var(--border-radius);
    border: 1px solid var(--color-light-grey); 
    font-family: var(--font-secondary);
    font-size: 1rem; 
    transition: var(--transition);
}
.form-control:focus {
    outline: none; 
    border-color: var(--color-gold-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}
.form-control:disabled { background-color: #e9ecef; opacity: 1; }
.submit-btn {
    background-color: var(--color-gold-accent); 
    color: var(--color-dark-charcoal);
    padding: 12px 30px; 
    border: none; 
    font-weight: 500; 
    cursor: pointer;
    border-radius: var(--border-radius); 
    transition: var(--transition);
    display: block; 
    width: 100%; 
    font-size: 1.1rem;
}
.submit-btn:hover { opacity: 0.9; }
.submit-btn:disabled {
    background-color: var(--color-light-grey);
    cursor: not-allowed;
    opacity: 0.7;
}

/* --- Estilos para Feedback e Partilha --- */
.feedback-box {
    padding: 1rem; margin-bottom: 1.5rem;
    border-radius: var(--border-radius); text-align: center;
    border: 1px solid transparent;
}
.feedback-box.success { color: #155724; background-color: #d4edda; border-color: #c3e6cb; }
.feedback-box.error { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }
.share-link-input {
    width: 100%;
    border: 1px solid #c3e6cb;
    padding: 0.5rem;
    margin-top: 0.5rem;
    font-family: monospace;
    background-color: #e9f7ef;
    border-radius: 4px;
}


/* --- Estilos para Páginas Estáticas (Privacidade, Termos, etc.) --- */
.static-content {
    background-color: #fff;
    padding: 2rem 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}
.static-content h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-gold-accent);
    padding-bottom: 0.5rem;
}
.static-content h4 {
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 1.1rem;
    margin-top: 1.5rem;
}
.static-content ul, .static-content ol {
    padding-left: 25px;
    line-height: 1.8;
}
.static-content li {
    margin-bottom: 0.75rem;
}

/* --- (ATUALIZADO) ESTILOS PARA PÁGINAS DE AUTENTICAÇÃO (LOGIN, REGISTO) --- */
.auth-container { 
    max-width: 450px; 
    margin: 2rem auto; 
}
.auth-form {
    background-color: #fff; 
    padding: 2.5rem; 
    text-align: left;
    border-radius: var(--border-radius); 
    box-shadow: var(--box-shadow);
}
.auth-switch { 
    text-align: center; 
    margin-top: 1.5rem; 
}
.auth-agreement {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.auth-agreement a {
    color: var(--color-text-muted);
    text-decoration: underline;
}
.auth-agreement a:hover {
    color: var(--color-gold-accent);
}
.form-text {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: -0.5rem;
    display: block;
}
/* --- FIM DOS ESTILOS DE AUTENTICAÇÃO --- */

/* --- (NOVO) LAYOUT PARA A PÁGINA DE LOGIN ESPECÍFICA --- */
body.login-page-background {
    display: flex;
    align-items: center; /* Centra verticalmente */
    justify-content: center; /* Centra horizontalmente */
    min-height: 100vh;
    padding-top: 0; /* Remove o padding do cabeçalho fixo */
}

.login-page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 450px; /* Garante que o wrapper não seja mais largo que o quadro de login */
    padding: 1rem;
}

.login-logo-container {
    margin-bottom: 2rem; /* Espaço entre o logótipo e o quadro de login */
}

.login-logo-img {
    width: 200px; /* Logótipo maior */
    height: auto;
    transition: var(--transition);
}
.login-logo-img:hover {
    opacity: 0.9;
}
/* --- FIM DO LAYOUT DE LOGIN --- */

/* --- Estilos Responsivos (Mobile) --- */
@media (max-width: 768px) {
    .main-header {
        padding: 0 1rem;
    }
    .main-nav {
        /* Esconde o menu de navegação por defeito em ecrãs pequenos */
        display: none; 
    }
    .hamburger-menu {
        /* Mostra o botão hamburger em ecrãs pequenos */
        display: block; 
    }

    /* Estilos para o menu quando está ativo (aberto) */
    .main-nav.nav-active {
        display: block;
        position: absolute;
        top: 80px; /* Abaixo do header */
        left: 0;
        width: 100%;
        background-color: rgba(26, 26, 26, 0.98); /* Fundo semi-transparente */
        backdrop-filter: blur(5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    .main-nav.nav-active ul {
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
    }
    .main-nav.nav-active ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .main-nav.nav-active ul a {
        padding: 1rem;
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(224, 224, 224, 0.1);
    }
     .main-nav.nav-active .nav-logout {
        border: none;
        margin-top: 1rem;
    }
    .main-nav.nav-active a:hover {
        background-color: var(--color-gold-accent);
        color: var(--color-dark-charcoal);
    }
    .main-nav.nav-active a::after {
        display: none; /* Remove a linha dourada no modo mobile */
    }

    /* Alterna os ícones do botão hamburger */
    .hamburger-menu.is-active .icon-hamburger { display: none; }
    .hamburger-menu.is-active .icon-close { display: block; }
    
    /* Ajustes de layout para ecrãs pequenos */
    .page-header h1 { font-size: 2.2rem; }
    .main-content { padding: 1rem; }
    .static-content { padding: 1.5rem; }
}

/* --- BOTÕES DE LOGIN MELHORADOS --- */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 1rem;
    border: 1px solid;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 0.75rem;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.btn-icon {
    width: 20px;
    height: 20px;
}
.btn-primary {
    color: #fff;
    background-color: var(--color-dark-charcoal);
    border-color: var(--color-dark-charcoal);
}
.btn-primary:hover {
    background-color: #333;
    border-color: #333;
}

/* Botão de Login Social (estilo secundário) */
.btn-social {
    background-color: #fff;
    border-color: var(--color-light-grey);
    color: var(--color-text);
}
.btn-social:hover {
    border-color: var(--color-dark-charcoal);
    background-color: #f8f9fa;
}

/* Cores específicas para ícones e hover */
.btn-google:hover { border-color: var(--color-google-blue); }
.btn-facebook:hover { border-color: var(--color-facebook-blue); }
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
    box-shadow: none;
    background-color: var(--color-light-grey);
    border-color: var(--color-light-grey);
}

/* --- ESTILOS PARA "MEUS LOOKS" E AVALIAÇÃO --- */
.looks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.look-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.look-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.look-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 300px;
    background-color: #f8f9fa;
}
.look-images img { width: 100%; height: 100%; object-fit: cover; }
.look-images .image-placeholder { display:flex; align-items:center; justify-content:center; color: var(--color-text-muted); grid-column: 1 / -1; }

.look-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.look-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    flex-grow: 1; 
}
/*
.star-rating-display { color: #ccc; font-size: 1.2rem; margin-bottom: 1rem; }
.star-rating-display .star.filled { color: var(--color-gold-accent); }
*/

/* Estilo para as estatísticas de votação no cartão */
.card-vote-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.vote-count-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* --- (NOVO) ESTILOS PARA ESTRELAS FRACIONADAS --- */
.star-rating-display-fractional {
    position: relative;
    display: inline-block;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--color-light-grey); /* Fundo cinzento das estrelas */
}
.star-rating-display-fractional::before {
    content: '★★★★★';
}
.star-rating-display-fractional .stars-filled {
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    overflow: hidden;
    color: var(--color-gold-accent); /* Cor das estrelas preenchidas */
}
.star-rating-display-fractional .stars-filled::before {
    content: '★★★★★';
}
/* --- FIM DOS ESTILOS DE ESTRELAS FRACIONADAS --- */

/* --- ESTILOS PARA O CRIADOR DE LOOKS --- */
.look-builder-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}
.selection-panel {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 70vh;
    overflow-y: auto;
}
.selection-panel h2, .look-canvas-panel h2 { font-family: var(--font-primary); text-align: center; margin-top: 0; }
.type-category { margin-bottom: 1.5rem; }
.type-category h3 {
    font-size: 1.1rem; font-weight: 500;
    border-bottom: 1px solid var(--color-light-grey);
    padding-bottom: 0.5rem; margin-bottom: 1rem;
}
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
}
.item-selector {
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}
.item-selector img { width: 100%; height: 100px; object-fit: cover; display: block; }
.item-selector:hover { border-color: var(--color-gold-accent); }
.item-selector.selected {
    border-color: var(--color-gold-accent);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}
.look-canvas-panel {
    background-color: #fff; padding: 1.5rem;
    border-radius: var(--border-radius); box-shadow: var(--box-shadow);
    position: sticky; top: 100px; /* 80px header + 20px margin */
}
.look-canvas {
    min-height: 300px; background-color: #f8f9fa;
    border: 2px dashed var(--color-light-grey); border-radius: var(--border-radius);
    padding: 1rem; display: grid;
    grid-template-columns: repeat(3, 1fr); gap: 1rem;
    align-content: start;
}
.look-canvas .placeholder-text { grid-column: 1 / -1; text-align: center; color: var(--color-text-muted); }
.canvas-item { text-align: center; }
.canvas-item img {
    width: 100%; height: 100px; object-fit: cover;
    border-radius: var(--border-radius); box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.canvas-item p { font-size: 0.8rem; margin: 0.5rem 0 0 0; color: var(--color-text); }

/* Sistema de Avaliação por Estrelas (Formulário) */
.star-rating {
    display: flex;
    flex-direction: row-reverse; /* Inverte a ordem para a mágica do CSS funcionar */
    justify-content: center;
    gap: 5px;
}
.star-rating input[type="radio"] {
    display: none; /* Esconde os botões de rádio */
}
.star-rating label {
    font-size: 2rem;
    color: var(--color-light-grey);
    cursor: pointer;
    transition: var(--transition);
}
.star-rating input[type="radio"]:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: var(--color-gold-accent);
}

/* Responsividade do Criador de Looks */
@media (max-width: 992px) {
    .look-builder-container { grid-template-columns: 1fr; }
    .look-canvas-panel { position: static; margin-top: 2rem; }
    .selection-panel { height: auto; max-height: 50vh; }
}

/* --- EDITOR DE IMAGEM MODAL EM 2 ETAPAS --- */
.editor-modal-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center; justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}
.editor-modal-content {
    background-color: var(--color-creme);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 900px;
}
.editor-modal-content h2 { font-family: var(--font-primary); text-align: center; margin-top: 0; }
.editor-step { display: none; } /* Esconde as etapas por defeito */
.editor-step.active { display: block; } /* Mostra a etapa ativa */

.image-cropper-container { max-height: 400px; background-color: #f0f0f0; }
#image-to-crop { display: block; max-width: 100%; }

.editor-main-area {
    display: grid; grid-template-columns: 2fr 1fr;
    gap: 1.5rem; margin: 2rem 0;
}
.transparency-canvas-container {
    background-image: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border: 1px solid var(--color-light-grey);
}
#transparency-canvas {
    max-width: 100%;
    height: auto;
    cursor: crosshair;
}
.color-picker-container { text-align: center; }
.color-preview-wrapper { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 1rem 0; }
#color-preview { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--color-dark-charcoal); background-color: #fff; }
#color-hex { font-weight: 500; }
.editor-actions { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 1.5rem; }
.action-btn-secondary {
    background-color: var(--color-light-grey); color: var(--color-text);
    padding: 10px 20px; border: none;
    border-radius: var(--border-radius); cursor: pointer; font-weight: 500;
}

/* --- (ATUALIZADO) PÁGINA PÚBLICA DE LOOK E VOTAÇÃO --- */
.look-public-container {
    display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 3rem; align-items: start;
    max-width: 1200px; margin: 0 auto;
    background-color: #fff; padding: 2rem;
    border-radius: var(--border-radius); box-shadow: var(--box-shadow);
}
.look-public-images { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.look-public-item img {
    width: 100%; height: auto;
    aspect-ratio: 1 / 1; object-fit: cover;
    border-radius: var(--border-radius); box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.look-public-details h1 {
    font-family: var(--font-primary); font-size: 2.5rem;
    margin-top: 0; margin-bottom: 1.5rem;
}
.look-description { line-height: 1.7; margin-bottom: 1.5rem; }
.vote-section { display: flex; align-items: center; gap: 1rem; }
.vote-interactive-section { margin-top: 2rem; border-top: 1px solid var(--color-light-grey); padding-top: 1.5rem; }
.vote-interactive-section p { text-align: center; margin-top: 0; font-weight: 500; }
.public-vote-stars label:hover, .public-vote-stars label:hover ~ label,
.public-vote-stars input:checked ~ label {
    color: var(--color-gold-accent);
}
.public-vote-stars input:disabled ~ label { cursor: not-allowed; }
.login-prompt { margin-top: 1rem; font-size: 0.9rem; text-align: center; }
.look-card-link { text-decoration: none; color: inherit; }

@media (max-width: 992px) {
    .look-public-container { grid-template-columns: 1fr; }
}

/* --- (NOVO) LAYOUT PARA A PÁGINA DE LOGIN ESPECÍFICA --- */
body.login-page-background {
    display: flex;
    align-items: center; /* Centra verticalmente */
    justify-content: center; /* Centra horizontalmente */
    min-height: 100vh;
    padding-top: 0; /* Remove o padding do cabeçalho fixo */
}

.login-page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 450px; /* Garante que o wrapper não seja mais largo que o quadro de login */
    padding: 1rem;
}

.login-logo-container {
    margin-bottom: 2rem; /* Espaço entre o logótipo e o quadro de login */
}

.login-logo-img {
    width: 200px; /* Logótipo maior */
    height: auto;
    transition: var(--transition);
}
.login-logo-img:hover {
    opacity: 0.9;
}

/* --- (NOVO) ESTILOS PARA AS ESTATÍSTICAS NA PÁGINA DE LOGIN --- */
.login-stats-container {
    display: flex;
    justify-content: space-around;
    gap: 1.5rem;
    margin-top: 2.5rem;
    text-align: center;
    width: 100%;
    max-width: 450px;
    background-color: rgba(255, 255, 255, 0.5); /* Fundo branco semi-transparente */
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-light-grey);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-dark-charcoal);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* --- FIM DOS ESTILOS DE ESTATÍSTICAS --- */

/* (NOVO) Estilo para a exibição das estatísticas na página de edição */
.public-stats-display {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    background-color: #fff;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    font-weight: 500;
}
.public-stats-display .star-rating-display {
    display: inline-flex;
    margin: 0 0.5rem;
    vertical-align: middle;
}

.look-public-item .item-info {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
}

.look-public-item .item-info p {
    margin: 0;
    font-size: 0.9rem;
}

.look-public-item .item-info .item-name {
    font-weight: bold;
}

.item-info-small {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    text-align: center;
}

.item-info-small p {
    margin: 0;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.look-content .item-list {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-light-grey);
}

.look-content .item-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
    max-height: 100px; /* Altura máxima para a lista */
    overflow-y: auto; /* Adiciona scroll se a lista for muito grande */
}

.look-content .item-list li {
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.look-content .item-list .brand {
    color: var(--color-text-muted);
}

.look-card {
    height: 100%; /* Faz o card ocupar toda a altura do grid item */
}

.look-images {
    height: 250px; /* Reduz um pouco a altura da imagem para dar mais espaço ao texto */
}