:root {
    --bg-color: #050505;
    --text-color: #ff6600; 
    --header-bg: #111;
    --card-bg: #1a1a1a;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding-top: 80px;
}

#header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background-color: var(--header-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid var(--text-color);
    transition: top 0.3s;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

#header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.logout-link {
    position: absolute;
    right: 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid var(--text-color);
    padding: 5px 10px;
    border-radius: 4px;
}

.logout-link:hover {
    background: var(--text-color);
    color: #000;
}

.articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-card {
    background: var(--card-bg);
    border: 1px solid #333;
    padding: 10px;
    border-radius: 4px;
    transition: transform 0.2s;
}

.article-card:hover {
    transform: translateY(-2px);
    border-color: var(--text-color);
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
    border-radius: 2px;
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mosaic {
    filter: blur(4px);
    transform: scale(1.1); /* Hide blur edges */
}

/* Updated for full-card clickable area */
.full-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.mosaic-container {
    width: 100%;
    height: 100%;
}

.login-overlay, .login-overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border: 1px solid var(--text-color);
    border-radius: 4px;
    font-weight: bold;
    z-index: 10;
    white-space: nowrap;
}

.login-overlay:hover, .login-overlay-btn:hover {
    background: var(--text-color);
    color: #000;
}

/* Ensure hover on the card triggers button hover style if needed, 
   but since the button is inside the link, it might be tricky. 
   Simplifying: direct hover on button works. */

.article-title {
    font-size: 1rem;
    margin: 10px 0 0;
    line-height: 1.4;
    font-weight: bold;
}

.article-title a, .article-title span {
    color: #ddd;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card:hover .article-title a {
    color: var(--text-color);
}

.no-articles {
    text-align: center;
    color: #666;
    grid-column: 1 / -1;
    margin-top: 50px;
}
