/* Landing page styles; shared tokens come from variables.css */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* This page's names for the shared tokens in css/variables.css */
:root {
    --bg-dark: var(--bg-primary);
    --bg-card: var(--bg-secondary);
    --bg-card-hover: var(--bg-tertiary);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* One low ember glow along the bottom edge, like the lava under the emblem */
    background: radial-gradient(ellipse 120% 40% at 50% 100%, rgba(220, 38, 38, 0.09) 0%, transparent 70%);
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 50%;
    opacity: 0;
    animation: float 15s infinite;
}

@keyframes float {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-100vh) scale(1); }
}

/* Header */
header {
    text-align: center;
    padding: 4rem 2rem 2rem;
    position: relative;
}

.guild-emblem img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.guild-emblem {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    /* The page's one glow: a still ember light behind the emblem, its focal point */
    filter: drop-shadow(0 0 24px rgba(220, 38, 38, 0.35));
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.25rem;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Dashboard CTA */
.dashboard-cta {
    background: linear-gradient(135deg, var(--bg-card), #1a1a28);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}


.dashboard-cta h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.dashboard-cta p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--fill-primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.2s ease;
    box-shadow: var(--shadow-md);
}

.btn-dashboard:hover {
    background: var(--fill-primary-hover);
}

.btn-dashboard svg {
    width: 24px;
    height: 24px;
}

.cta-note {
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Latest rare drops: the page leads with real, live content */
.rare-strip {
    margin-bottom: 3rem;
}

.rare-strip-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rare-strip-head h2 {
    font-size: 1.5rem;
}

.rare-strip-head a,
.guild-line a {
    color: var(--primary);
    text-decoration: none;
}

.rare-strip-head a:hover,
.guild-line a:hover {
    text-decoration: underline;
}

.rare-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 0.75rem;
}

.rare-list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(210, 153, 34, 0.35);
    border-radius: var(--radius-lg);
}

.rare-item {
    display: block;
    color: var(--accent-gold-light);
    font-weight: 600;
}

.rare-who {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.rare-when {
    color: var(--text-muted);
    font-size: 0.8125rem;
    white-space: nowrap;
}

.rare-list li.rare-state {
    display: block;
    color: var(--text-secondary);
    border-color: var(--border-color);
}

/* What the tracker does: a short list, not a wall of cards */
.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
    gap: 1.75rem 2.5rem;
    margin: 0 0 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.feature-list li {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 1rem;
    align-items: start;
}

.feature-list h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.feature-list p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Stats section */
.stats-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 3rem;
}

.stats-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* About the guild, in one line */
.guild-line {
    max-width: 640px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.7;
}

.guild-line code {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-sm);
}

.guild-line .links {
    margin-top: 0.5rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

footer a {
    color: var(--primary);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-thanks {
    margin-top: 0.35rem;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .tagline { font-size: 1rem; }
    .dashboard-cta { padding: 2rem; }
    header { padding: 2rem 1rem; }
    .stat-value { font-size: 2rem; }
}

.stats-section .cta-note {
    text-align: center;
}

/* Thumb-sized links on touch screens */
@media (pointer: coarse) {
    .rare-strip-head a,
    .footer-links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .footer-links { gap: 0.5rem 1.5rem; }
}
