/*
 Theme Name:   BitHub Africa Archive
 Theme URI:    https://bithubafrica.com
 Description:  10th Anniversary Archive Theme for BitHub Africa (2016-2026)
 Author:       BitHub Africa
 Author URI:   https://bithubafrica.com
 Template:     newsup
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  newsup-archive
*/

/* ============================================
   BitHub Africa Archive Portal Styles
   Brand Colors: Blue #3366FF, Orange #E67E22
   ============================================ */

:root {
    --bh-blue: #3366FF;
    --bh-blue-dark: #2952cc;
    --bh-orange: #E67E22;
    --bh-orange-light: #F39C12;
    --bh-dark: #0a0e1a;
    --bh-dark-card: #111827;
    --bh-glass: rgba(17, 24, 39, 0.8);
    --bh-glass-border: rgba(255,255,255,0.1);
}

/* Archive Portal Page Styles */
body.page-template-page-archive-portal {
    background: var(--bh-dark);
    color: #fff;
}

body.page-template-page-archive-portal #flavor flavor flavor flavor flavor-flavor flavor flavor-flavor flavor flavor flavor flavor flavor-flavor flavor flavor-flavor flavor,
body.page-template-page-archive-portal .flavor flavor flavor flavor-flavor flavor-flavor flavor-flavor flavor flavor,
body.page-template-page-archive-portal footer {
    display: none;
}

/* Archive Hero */
.archive-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.archive-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(51, 102, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(230, 126, 34, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.archive-hero > * {
    position: relative;
    z-index: 1;
}

.archive-logo {
    width: 120px;
    height: auto;
    border-radius: 20px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 30px rgba(51, 102, 255, 0.5));
    animation: logo-glow 3s ease-in-out infinite alternate;
}

@keyframes logo-glow {
    0% { filter: drop-shadow(0 0 20px rgba(51, 102, 255, 0.5)); }
    100% { filter: drop-shadow(0 0 40px rgba(230, 126, 34, 0.6)); }
}

.archive-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--bh-blue) 50%, var(--bh-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.archive-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
}

.archive-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--bh-blue), var(--bh-blue-dark));
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(51, 102, 255, 0.4);
}

.archive-badge::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--bh-orange);
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Timeline Section */
.archive-timeline {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.section-subtitle {
    color: rgba(255,255,255,0.6);
}

/* Year Navigation */
.year-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: var(--bh-glass);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--bh-glass-border);
}

.year-btn {
    padding: 0.75rem 1.25rem;
    background: var(--bh-dark-card);
    border: 2px solid transparent;
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-btn:hover {
    border-color: var(--bh-blue);
    color: #fff;
}

.year-btn.active {
    background: var(--bh-blue);
    color: #fff;
    box-shadow: 0 4px 15px rgba(51, 102, 255, 0.4);
}

.year-btn .post-count {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* Year Content */
.year-content {
    display: none;
}

.year-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.year-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bh-dark-card);
    border-radius: 20px;
    border-top: 4px solid var(--bh-blue);
}

.year-number {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--bh-blue), var(--bh-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.year-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bh-orange);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background: var(--bh-glass);
    border: 1px solid var(--bh-glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-card:hover {
    border-color: var(--bh-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(51, 102, 255, 0.2);
}

.post-card:hover .post-title {
    color: var(--bh-orange);
}

.post-date {
    font-size: 0.85rem;
    color: var(--bh-blue);
    margin-bottom: 0.5rem;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
    line-height: 1.4;
}

.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-category {
    font-size: 0.75rem;
    background: rgba(51, 102, 255, 0.2);
    color: var(--bh-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

/* Quick Links */
.archive-links {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.link-card {
    background: var(--bh-glass);
    border: 1px solid var(--bh-glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

.link-icon {
    width: 50px;
    height: 50px;
    background: var(--bh-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.link-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.link-card p {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.link-action {
    color: var(--bh-orange);
    font-weight: 600;
}

/* Enter Site Button */
.enter-site {
    text-align: center;
}

.enter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--bh-orange), var(--bh-orange-light));
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.4);
}

.enter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(230, 126, 34, 0.5);
    color: #fff;
}

/* Archive Footer */
.archive-footer {
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid var(--bh-glass-border);
    margin-top: 4rem;
}

.archive-footer img {
    width: 60px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.archive-footer h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.archive-footer .tagline {
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.5rem;
}

.archive-footer .years {
    color: var(--bh-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.archive-footer .founders {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .archive-title { font-size: 2.5rem; }
    .year-number { font-size: 3rem; }
    .year-header { flex-direction: column; text-align: center; }
    .year-stats { justify-content: center; }
}
