/* Hub Page Styles */

/* Hub Navigation - Minimal */
.hub-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    z-index: 100;
}

.hub-nav__logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.hub-nav__logo:hover {
    color: var(--accent);
}

.hub-nav__controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-dropdown__trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-dropdown__trigger:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.lang-dropdown__arrow {
    transition: transform 0.2s ease;
}

.lang-dropdown:hover .lang-dropdown__arrow {
    transform: rotate(180deg);
}

.lang-dropdown__menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    min-width: 120px;
    overflow: hidden;
}

.lang-dropdown:hover .lang-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown__item {
    display: block;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s ease;
}

.lang-dropdown__item:hover {
    background: var(--light-gray);
    color: var(--text-primary);
}

.lang-dropdown__item.active {
    color: var(--accent);
    font-weight: 500;
}

/* Theme Button */
.hub-nav .theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hub-nav .theme-btn:hover {
    border-color: var(--text-muted);
    background: var(--light-gray);
}

.theme-icon {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.hub-nav .theme-btn:hover .theme-icon {
    color: var(--accent);
}

/* Show/hide theme icons based on mode */
.theme-icon--sun {
    display: none;
}

.theme-icon--moon {
    display: block;
}

[data-theme="dark"] .theme-icon--sun {
    display: block;
}

[data-theme="dark"] .theme-icon--moon {
    display: none;
}

[data-theme="dark"] .lang-dropdown__item:hover {
    background: var(--light-gray);
}

/* Hub Container */
.hub-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hub-main {
    flex: 1;
    padding: 70px 24px 48px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Hero Section */
.hub-hero {
    text-align: center;
    padding: 48px 0;
}

.hub-hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.hub-hero__subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

/* Cards Grid */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

/* Individual Card */
.hub-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--shadow-hover);
    border-color: var(--accent);
}

.hub-card:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Coming Soon State */
.hub-card--coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.hub-card--coming-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--card-border);
}

/* Card Icon */
.hub-card__icon {
    font-size: 3rem;
    margin-bottom: 16px;
    line-height: 1;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card Title */
.hub-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

/* Card Description */
.hub-card__description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    line-height: 1.5;
    flex-grow: 1;
}

/* Card Badge */
.hub-card__badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hub-card--coming-soon .hub-card__badge {
    background: var(--gray);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hub-nav {
        padding: 12px 16px;
    }

    .hub-nav__logo {
        font-size: 1.1rem;
    }

    .hub-main {
        padding: 60px 16px 32px;
    }

    .hub-hero {
        padding: 32px 0;
    }

    .hub-hero__title {
        font-size: 2rem;
    }

    .hub-hero__subtitle {
        font-size: 1rem;
    }

    .hub-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 24px;
    }

    .hub-card {
        padding: 24px 20px;
    }

    .hub-card__icon {
        font-size: 2.5rem;
        height: 50px;
        margin-bottom: 12px;
    }

    .hub-card__title {
        font-size: 1.15rem;
    }

    .hub-card__description {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hub-hero__title {
        font-size: 1.75rem;
    }

    .hub-hero__subtitle {
        font-size: 0.9rem;
    }

    .hub-card {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .hub-card__icon {
        font-size: 2.25rem;
        height: 45px;
    }
}

/* Animation for cards on load */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hub-card {
    animation: cardFadeIn 0.4s ease forwards;
}

.hub-card:nth-child(1) { animation-delay: 0.05s; }
.hub-card:nth-child(2) { animation-delay: 0.1s; }
.hub-card:nth-child(3) { animation-delay: 0.15s; }
.hub-card:nth-child(4) { animation-delay: 0.2s; }
.hub-card:nth-child(5) { animation-delay: 0.25s; }
.hub-card:nth-child(6) { animation-delay: 0.3s; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hub-card {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .hub-card:hover {
        transform: none;
    }
}
