/* Home page */
.hero.hero-panel {
    text-align: center;
    margin-bottom: 80px;
    padding: 36px 48px 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.hero.hero-panel h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--cyber-blue), #00ff41, var(--cyber-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    /* Removed glow animation */
}

.hero.hero-panel .subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    opacity: 0.9;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero.hero-panel .tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    opacity: 0.8;
    font-style: normal;
    margin-bottom: 50px;
    font-weight: 400;
}

.hero.hero-panel-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.hero.hero-panel-stat {
    text-align: center;
    color: white;
}

.hero.hero-panel-stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.hero.hero-panel-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero.hero-panel-footnote {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero.hero-panel-footnote p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.6;
    font-style: italic;
    margin: 0;
    letter-spacing: 0.5px;
}

.content-section {
    margin: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--cyber-blue), var(--text-primary), var(--cyber-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.app-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.app-card:hover {
    transform: translateY(-5px);
    border-color: var(--cyber-blue);
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    align-self: center;
}

.app-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.app-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.6;
    flex-grow: 1;
}

.app-tag {
    display: inline-block;
    background: #1e293b;
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    align-self: center;
    margin-top: auto;
}

/* Resources feed – scroll panes */
.feed-panes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 28px;
}
.feed-panes.feed-panes--single {
    grid-template-columns: 1fr;
}
@media (max-width: 768px) {
    .feed-panes { grid-template-columns: 1fr; }
}
.feed-pane {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.feed-pane-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--glass-border);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.feed-pane-header i { margin-right: 8px; }
.feed-pane[data-pane="reddit"] .feed-pane-header {
    border-left: 4px solid #ff4500;
}
.feed-pane[data-pane="microsoft"] .feed-pane-header {
    border-left: 4px solid #00d4aa;
}
.feed-pane-count {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.feed-pane-list {
    /* ~10 dense rows visible */
    max-height: 420px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.feed-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    align-items: baseline;
    padding: 11px 16px;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid transparent;
    transition: background 0.2s ease, border-left-color 0.2s ease;
}
.feed-row:last-child { border-bottom: none; }
.feed-row[data-source="r/Intune"] { border-left-color: #ff4500; }
.feed-row[data-source="Intune What's New"] { border-left-color: #00d4aa; }
.feed-row[data-source="Entra Announcements"] { border-left-color: #a855f7; }
.feed-row:hover {
    background: rgba(0, 212, 255, 0.08);
    border-left-color: var(--cyber-blue);
}
.feed-row-title {
    font-size: 0.92rem;
    font-weight: 550;
    line-height: 1.35;
    grid-column: 1 / -1;
}
.feed-row-meta {
    font-size: 0.72rem;
    color: var(--text-secondary);
}
.feed-row-source {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 2px 8px;
    border-radius: 10px;
    justify-self: end;
}
.feed-row[data-source="r/Intune"] .feed-row-source {
    background: rgba(255, 69, 0, 0.2);
    color: #ff8c69;
}
.feed-row[data-source="Intune What's New"] .feed-row-source {
    background: rgba(0, 212, 170, 0.2);
    color: #00f5d4;
}
.feed-row[data-source="Entra Announcements"] .feed-row-source {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
}
.feed-pane-empty {
    padding: 24px 18px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.feed-updated {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
#resources-feed-container.loading {
    opacity: 0.7;
}
#resources-feed-container.empty p,
#resources-feed-container.error p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.special-message {
    text-align: center;
    padding: 60px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid #00ff41;
    color: var(--text-primary);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    margin: 60px 0;
}

.special-message p {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 20px;
}

.snake-emoji {
    font-size: 5rem;
    display: block;
    /* Removed bounce animation */
}

/* Downloads CTA */
.downloads-cta {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.downloads-cta:hover {
    transform: translateY(-4px);
    border-color: var(--cyber-blue);
}

.downloads-cta-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.downloads-cta-body h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.downloads-cta-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.downloads-cta-go {
    margin-left: auto;
    color: var(--cyber-blue);
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .downloads-cta {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    .downloads-cta-go {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .hero {
        padding: 50px 20px;
        margin-bottom: 40px;
    }

    .hero-stats {
        gap: 20px;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }
}
