/* --------------------------------------------------
   GLOBAL
-------------------------------------------------- */
body {
    font-family: Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #330066;
    color: #222;
}

/* --------------------------------------------------
   NAVBAR
-------------------------------------------------- */
.navbar {
    display: flex;
    justify-content: center;
    gap: 25px;
    background: #4b0082;            /* Purple */
    padding: 14px 0;
    border-bottom: 4px solid #ffd700; /* Gold accent */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar a {
    color: #ffffff !important;      /* HIGH contrast - white text */
    text-decoration: none;
    font-weight: bold;
    font-size: 17px;
}

.navbar a:hover {
    color: #ffd700;                 /* Gold on hover */
}

/* Highlight current page */
.navbar a.active {
    color: #ffff66;                 /* Yellow highlight */
    text-decoration: underline;
}

/* --------------------------------------------------
   HEADER AREA
-------------------------------------------------- */
.header-area {
    background: #FAFBDE;
    border-bottom: 3px solid #4b0082; /* Purple */
    padding: 24px 20px;
    text-align: center;
}

/* --------------------------------------------------
   CONTENT WRAPPER
-------------------------------------------------- */
.container {
    max-width: 900px;
    margin: 20px auto;
    background: #FAFBDE;
    padding: 20px;
    border: 1px solid #4b0082;
    border-radius: 8px;
}

/* --------------------------------------------------
   CARD GRID
-------------------------------------------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

/* Card styling */
.card {
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 8px;
}

.card .name {
    font-weight: bold;
    font-size: 16px;
    color: #4b0082;
    margin-bottom: 4px;
}

.card .date {
    font-size: 14px;
    color: #555;
}

/* --------------------------------------------------
   SORT CONTROLS
-------------------------------------------------- */
.sort-controls {
    margin-bottom: 20px;
    text-align: center;
}

.sort-controls button {
    padding: 8px 14px;
    background: #4b0082;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    margin: 0 5px;
}

.sort-controls button:hover {
    background: #673ab7;
}
