/* Nav right section for logged-out view */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 8px;
}

.about-link {
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.1s linear;
}

.about-link:hover {
    color: var(--text-emphasis);
}

.about-active {
    color: var(--text-emphasis);
    cursor: default;
}

/* Auth buttons in nav for logged-out view */
.auth-buttons {
    display: flex;
    gap: 8px;
}

/* Landing page styles (logged-out view) */
.landing {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px;
}

.hero {
    text-align: center;
    padding: 48px 16px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--text-emphasis);
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 32px;
    line-height: 1.5;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 32px 0;
}

.feature {
    flex: 1 1 250px;
    max-width: 280px;
    text-align: center;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg-elevated);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.feature h3 {
    margin-bottom: 12px;
    color: var(--text-emphasis);
}

.feature p {
    line-height: 1.5;
}

.supported-games {
    text-align: center;
    padding: 32px 0;
}

.supported-games h2 {
    margin-bottom: 24px;
    color: var(--text-emphasis);
}

.game-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.game-logos img {
    max-width: 120px;
    max-height: 60px;
    opacity: 0.8;
    transition: opacity 0.1s linear;
}

.game-logos img:hover {
    opacity: 1;
}

/* Dashboard styles (logged-in view) */
.dashboard {
    max-width: 1000px;
    margin: 0 auto;
    padding: 16px;
}

.welcome-section {
    padding: 24px 0;
}

.welcome-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.welcome-section h1 {
    color: var(--text-emphasis);
    margin-bottom: 8px;
}

/* Recent collections/decks sections */
.recent-collections,
.recent-decks {
    padding: 24px 0;
}

.recent-collections h2,
.recent-decks h2 {
    margin-bottom: 16px;
    color: var(--text-emphasis);
}

.collection-list,
.deck-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.collection-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg-elevated);
    transition: box-shadow 0.1s linear;
}

.collection-preview:hover {
    box-shadow: 0 0 8px var(--border);
}

.collection-preview-name {
    font-weight: 500;
    color: var(--text-emphasis);
}

.collection-preview-game {
    font-size: 0.85rem;
}

.view-all-link {
    display: block;
    text-align: center;
    padding: 12px;
    color: var(--text-primary);
}

.view-all-link:hover {
    color: var(--text-emphasis);
    text-decoration: underline;
}

/* Dashboard collection/deck cards */
.collection-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg-elevated);
    transition: box-shadow 0.1s linear;
}

.collection-card:hover {
    box-shadow: 0 0 8px var(--border);
}

.collection-game-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.collection-info h3 {
    color: var(--text-emphasis);
    margin-bottom: 4px;
}

.deck-card {
    display: block;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg-elevated);
    transition: box-shadow 0.1s linear;
}

.deck-card:hover {
    box-shadow: 0 0 8px var(--border);
}

.deck-info h3 {
    color: var(--text-emphasis);
    margin-bottom: 4px;
}

.deck-game {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.deck-cards {
    font-size: 0.85rem;
}

/* Loading/empty states */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.loading::after {
    content: "Loading...";
    color: var(--text-primary);
}

.empty-state {
    text-align: center;
    padding: 32px;
    color: var(--text-primary);
}

.empty-state p {
    margin-bottom: 16px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .nav-right {
        gap: 8px;
    }

    .about-link {
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .feature {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .welcome-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .welcome-content .btn {
        align-self: stretch;
        text-align: center;
    }
}
