/* Base Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Courier Prime', monospace; background: #fff; color: #000; }

/* Header */
header {
    background: #000;
    color: #fff;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    /* Sets the color to white to match the black background */
    color: #fff; 
    /* Removes the underline */
    text-decoration: none; 
    /* Ensures the font size/weight is applied to the link */
    font-size: 1.5rem; 
    font-weight: 700; 
    letter-spacing: 1px;
}

/* Menu Icon (The 4 squares) */
.menu-trigger { cursor: pointer; }
.grid-icon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    width: 24px;
    height: 24px;
}
.grid-icon span { background: #fff; width: 100%; height: 100%; display: block; }

/* Search Section */
.search-container {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.search-bar {
    width: 100%;
    max-width: 600px;
    padding: 15px;
    font-size: 1.2rem;
    font-family: inherit;
    border: 3px solid #000; /* Thick border like sketch */
    outline: none;
    text-align: center;
}

/* Layout Grid */
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px 50px 20px; }
.section-label { margin-bottom: 20px; font-weight: bold; text-transform: uppercase; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px; /* Space between cards */
}

/* Card Styling */
.card {
    display: flex;
    flex-direction: column;
    background: transparent;
}

.image-box {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000; /* The black box from sketch */
    margin-bottom: 15px;
}

.card-content {
    display: flex;
    justify-content: space-between; /* Pushes text left, arrows right */
    align-items: flex-start;
}

.card h3 {
    font-family: 'Courier Prime', monospace;
    font-size: 1rem;
    line-height: 1.4;
    padding-right: 10px;
    font-weight: 700;
}

/* Voting Arrows */
.vote-controls {
    display: flex;
    gap: 5px;
    align-items: center;
}

.vote-controls button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.1s;
}

.upvote { color: #2ecc71; /* Green */ }
.downvote { color: #e74c3c; /* Red */ }

.vote-controls button:active { transform: scale(1.2); }

/* Overlay Menu */
.overlay-menu {
    position: fixed;
    top: 0; right: -300px; /* Hidden off-screen */
    width: 300px;
    height: 100%;
    background: #000;
    color: #fff;
    transition: 0.3s;
    z-index: 1000;
    padding: 40px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
}

.overlay-menu.active { right: 0; }

.overlay-menu h2 { border-bottom: 2px solid #fff; padding-bottom: 10px; margin-bottom: 20px; }
.overlay-menu ul { list-style: none; }
.overlay-menu li { margin-bottom: 15px; }
.overlay-menu a { color: #fff; text-decoration: none; font-size: 1.1rem; }
.overlay-menu a:hover { color: #3498db; }

.close-btn {
    background: none; border: none; color: #fff;
    font-size: 2rem; position: absolute; top: 10px; right: 20px; cursor: pointer;
}