/*  ================================
        Cards de notas
    ================================ */

/* Container de notas */
#notes-container,
#notes-favorite-public-container,
#notes-other-public-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 100%;
    margin-top: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Estilo para os cards de notas */
.note-card,
.note-card-public {
    background-color: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 6px;
    width: 180px;
    padding: 15px;
    box-shadow: 0 4px 8px var(--color-shadow);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    color: var(--color-text);
    position: relative;
    margin-bottom: 5px;
    padding-bottom: 20px;
}

.note-card:hover,
.note-card-public:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px var(--color-shadow), var(--neon-shadow);
    border-color: var(--color-primary);
}

/* Título das notas */
.note-card strong,
.note-card-public strong {
    font-family: var(--font-headings);
    font-size: .9em;
    word-wrap: normal;
    color: var(--color-primary);
    display: block;
    margin-bottom: 10px;
    text-shadow: var(--text-shadow);
}

/* Conteúdo das notas */
.note-card p,
.note-card-public p {
    margin-bottom: 15px;
    font-size: .75em;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Tags e prioridade */
.note-card em,
.note-card small,
.note-card-public em,
.note-card-public small {
    display: block;
    margin-top: 10px;
    font-size: 0.85em;
    color: var(--color-text-muted);
}

/* Botões de ação */
.note-card .action-buttons,
.note-card-public .action-buttons {
    position: absolute;
    bottom: 10px;
    left: 5px;
    right: 5px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.note-card button,
.note-card-public button {
    font-family: var(--font-buttons);
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: var(--color-text);
    font-size: 1.1em;
    transition: background-color 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
}

/* Cores dos botões */
.note-card .view-note,
.note-card-public .view-note {
    background-color: var(--color-view);
}

.note-card .edit-note,
.note-card-public .edit-note {
    background-color: var(--color-edit);
}

.note-card .delete-note,
.note-card-public .delete-note {
    background-color: var(--color-delete);
}

.note-card button:hover,
.note-card-public button:hover {
    opacity: 0.8;
    box-shadow: var(--neon-shadow);
}

/* Estilo responsivo */
@media (max-width: 600px) {
    .note-card,
    .note-card-public {
        width: 180px;
    }
}

/* Desktop (Visão normal) */
#notes-container,
#notes-favorite-public-container,
#notes-other-public-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 100%;
    margin-top: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Mobile (Reel de cards) */
@media (max-width: 768px) {
    #notes-container,
    #notes-favorite-public-container,
    #notes-other-public-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 30px;
        padding: 10px;
        justify-content: flex-start;
        scroll-padding: 10px;
        scrollbar-width: none;
    }
    
    #notes-container::-webkit-scrollbar,
    #notes-favorite-public-container::-webkit-scrollbar,
    #notes-other-public-container::-webkit-scrollbar {
        display: none;
    }

    .note-card,
    .note-card-public {
        min-width: 180px;
        scroll-snap-align: center;
        transition: transform 0.3s ease-in-out;
    }

    .note-card:hover,
    .note-card-public:hover {
        transform: scale(1.05);
    }
}