.title_container {
    color: white;
    align-items: center;
    justify-self: center;
    margin-bottom: 25px;
}





/* =========== SEARCH FIELDS =========== */
/*.search_section { margin-bottom: 40px; }*/

/* ---- SEARCH INPUT ---- */
.search_form {
    display: flex;
    gap: 10px;
}

.search_input_div {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.search_input {
    width: 100%;
    padding: 12px 16px;
    border: 5px solid #ffffff;
    border-radius: 8px;
    font-size: 15px;
    transition: 0.2s;
}
.search_input:focus {
    outline: none;
    border-color: #7c7c7c;
}

/* ---- SEARCH BUTTON ---- */
.btn-search { 
    max-height: 50px; 
    font-size: 14px;
}

/* ---- SEARCH DROPDOWN ---- */
.sort_section {
    display: flex;
    align-items: center;
    align-self: center;
    gap: 8px;
    margin: 0px 0px 40px 0px;
    font-size: 14px;
    width: fit-content;
    color: #ffffff;
}

.sort_select {
    padding: 8px 12px;
    border: 3px solid #dcdde1;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

.sort_select:focus {
    outline: none;
    border-color: #40739e;
}




/* =========== CARDS GRID =========== */
.boards_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

/* ---- EMPTY, LOADING, ERROR GRID ---- */
.board_grid_empty,
.board_grid_loading,
.board_grid_error { 
    background-color: #eeeeee;
    border-radius: 10px;
    width: fit-content;
    color: rgb(0, 0, 0);
    
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
    padding: 40px;
}

.board_grid_empty a {
    margin-top: 15px;
    display: inline-block
}

.board_grid_error { color:red }





/* =========== BOARD CARD (IN GRID) =========== */
/* ---- CARD ---- */
.board_card {
    background: white;
    border: 1px solid black;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    opacity: 0;
    transition: transform 0.3s;
    animation: ani 1s forwards
}

@keyframes ani {
  0% {opacity: 0;}
  100% {opacity: 1;}
}

.board_card:hover {
    transition: transform 0.3s;
    transform: scale(1.05);
}

/* ---- CARD OWNER ---- */
.board_card--owner {
    border: 5px solid #427c4c;
}

/* ---- CARD DELETED ---- */
.board_card--deleted {
    border: 2px solid #e84118; 
    background: #fff5f5;
    opacity: 0.95;
}

.board_deleted_badge {
    background: #ffeaa7;
    color: #d35400;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}

.board_card--deleted .board_title {
    color: #c23616;
}

.board_card--deleted .board_description {
    color: #7f8c8d;
}

/* ---- BASE CARD ---- */
.board_header { margin-bottom: 10px; }

.board_title {
    font-size: 18px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.board_author {
    font-size: 13px;
    color: #718093;
    word-wrap: break-word;
}

.board_description {
    font-size: 14px;
    margin-bottom: 15px;
    word-wrap: break-word;
    color: #555;
}

.board_tags {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tag {
    background-color: #e2e5e6;
    color: #2f3640;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

/* ---- FOOTER CARD ACTIONS ---- */
.board_footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    flex-wrap: wrap;
}

.likes {
    font-size: 14px;
    color: #a3a3a3;
    cursor: pointer;
    word-wrap: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}
.likes.liked, 
.likes:hover {
    color: #eb3a0e;
    font-weight: bold;
}

.favourite {
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s, color 0.2s;
    padding: 4px 8px;
    border-radius: 6px;
}
.favourite:hover {
    transform: scale(1.05);
    background: #e8b41848;
}
.favourite.active {
    color: #e8b418;
    font-weight: bold;
    background: #e8b418;
    transform: scale(1.2);
}





/* =========== PAGINATION =========== */
.pagination {
    background-color: #ffffff;
    width: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 30px 0;
    flex-wrap: wrap;
    justify-self: center;
    border-radius: 6px;
}

/* ---- NUMBER PAGINATION ---- */
.pagination span { padding: 0px 10px; }

/* ---- BUTTON PAGINATION ---- */
.page_button {
    padding: 8px 16px;
    min-width: 40px;
    border: 1px solid #dcdde1;
    background: rgb(72, 72, 72);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    text-align: center;
    color: rgb(255, 255, 255);
    margin: 5px 5px;
}
.page_button:hover:not(:disabled) {
    background: rgb(216, 216, 216);
    border: 1px solid #6f6f6f;
}

.page_button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}