/* Shared tile + hero styles (2026-11-17): moved out of index.php's inline
   <style> so the homepage AND theme pages render cards, stars, download
   buttons, seen dots and the hero text identically. Load after main.css. */
/* Favorite toggle + seen dot on tiles */
.tile-fav-btn {
    position: absolute; /* corner set centrally in main.css (G9) */
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
    padding: 0;
}
.wallpaper-thumbnail:hover .tile-fav-btn,
.wallpaper-card:hover .tile-fav-btn { opacity: 1; }
.tile-fav-btn svg { width: 14px; height: 14px; fill: none; stroke: white; stroke-width: 2; }
.tile-fav-btn.is-fav svg { fill: #ffc107; stroke: #ffc107; }
.tile-fav-btn.is-fav { opacity: 1; }
.tile-fav-btn:hover { background: rgba(0, 0, 0, 0.7); }

/* Larger star on the big featured cards (corner set in main.css) */
.wallpaper-card .tile-fav-btn { width: 34px; height: 34px; }
.wallpaper-card .tile-fav-btn svg { width: 18px; height: 18px; }

/* JW5: seen-dot on the big featured cards keeps the same size
   relationship as on the small thumbs (8px on ~300px ≈ 16px here) */
.wallpaper-card .new-dot { width: 16px; height: 16px; inset: 12px auto auto 12px; }

/* Hero favorite: sits beside the hero download button */
.hero-fav-btn { right: 70px; }
.hero-fav-btn svg { fill: none; stroke: currentColor; stroke-width: 2; }
.hero-fav-btn.is-fav { color: #ffc107; }
.hero-fav-btn.is-fav svg { fill: #ffc107; stroke: #ffc107; }

.new-dot {
    position: absolute; /* corner set centrally in main.css (G9) */
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4a9eff;
    z-index: 2;
    pointer-events: none;
}

.wallpaper-thumbnail { position: relative; }

.card-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background 0.2s;
}
.card-download-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}
.card-download-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.hero-title {
    color: #e6e1d6; /* original font; slightly less stark white (Fabien) */
}
/* Motion Parallax wordmark, small, top-right of the hero (Peter
   2026-11-17: bottom-right holds the download/favourite buttons) */
.hero-brand {
    position: absolute;
    top: clamp(12px, 1.6vw, 24px);
    right: clamp(14px, 1.8vw, 28px);
    z-index: 10;
    height: clamp(10px, 0.95vw, 15px);
    width: auto;
    opacity: 0.9;
    filter: drop-shadow(0 1px 6px rgba(0,0,0,.65));
    pointer-events: none;
}
/* SEO intro line under the hero H1 (says what the site is, in the
   terms people search: ultrawide, 21:9, 32:9, the resolutions). */
.hero-tagline {
    margin: 0.35em 0 0;
    width: min(900px, 60vw);
    font-size: clamp(0.72rem, 0.95vw, 1rem);
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
/* Phones: the 32:9 hero is ~100px tall — no room inside it, so the
   line sits just below the image (hero-content is left:80px,
   bottom:40px, so offset back to a 16px gutter). */
@media (max-width: 768px) {
    .hero { overflow: visible; margin-bottom: 58px; }
    .hero-tagline {
        position: absolute;
        top: calc(100% + 48px);
        left: -64px;
        width: calc(100vw - 32px);
        font-size: 0.78rem;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.7);
    }
}

/* Sign-in popup (visitor-trackinghome.js): same as index.php + gallery.php */
/* Login Popup Styles (same as index.php) */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 12000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}
.popup-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    background-color: #1e1e1e;
    color: #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.4s;
}
.popup-overlay.active .popup-container {
    transform: translateY(0);
}
.popup-header {
    background: linear-gradient(135deg, #4a9eff, #2a6ecf);
    color: white;
    padding: 20px;
    text-align: center;
}
.popup-header h2 {
    margin: 0;
    font-size: 1.5em;
}
.popup-body {
    padding: 20px;
}
.popup-body p {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #ccc;
}
.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
}
.login-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.btn-discord {
    background-color: #5865F2;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    width: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}
.btn-discord:hover {
    background-color: #4752C4;
}
.btn-email-login {
    background-color: #4a9eff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    display: block;
    width: 240px;
    text-align: center;
    box-sizing: border-box;
    transition: background 0.2s;
}
.btn-email-login:hover {
    background-color: #3a8eef;
}
.terms-links a {
    color: #999;
    text-decoration: underline;
}
.terms-links a:hover {
    color: #ccc;
}
