/* ═══════════════════════════════════════════════════════════════════════════════
   StarFamily Blog - Journey to the Quantum Frontier
   CSS Styles for Timeline & Modal Components
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════════
   STAR FIELD BACKGROUND
   ═══════════════════════════════════════════════════════════════════════════════ */

#star-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BLOG HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

.blog-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
}

.blog-hero-content {
    max-width: 900px;
}

.blog-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.blog-title .title-line {
    display: block;
}

.blog-title .title-gradient {
    background: linear-gradient(135deg, #7c3aed, #06b6d4, #10b981, #f59e0b);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
}

.blog-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* Journey Stats */
.journey-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

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

.journey-stat .stat-number {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.journey-stat .stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scroll Prompt */
.scroll-prompt {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.scroll-prompt svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TIMELINE SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

.timeline-section {
    padding: 80px 20px 120px;
    position: relative;
}

.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

/* Timeline Line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, 
        rgba(124, 58, 237, 0) 0%,
        rgba(124, 58, 237, 0.8) 10%,
        rgba(6, 182, 212, 0.8) 50%,
        rgba(16, 185, 129, 0.8) 90%,
        rgba(16, 185, 129, 0) 100%
    );
    transform: translateX(-50%);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ERA MARKERS
   ═══════════════════════════════════════════════════════════════════════════════ */

.timeline-era {
    text-align: center;
    padding: 60px 0;
    position: relative;
}

.era-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.era-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.era-genesis .era-title {
    color: #f59e0b;
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
}

.era-expansion .era-title {
    color: #06b6d4;
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
}

.era-fortress .era-title {
    color: #7c3aed;
    text-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
}

.era-transcendence .era-title {
    color: #ef4444;
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TIMELINE CARDS
   ═══════════════════════════════════════════════════════════════════════════════ */

.timeline-card {
    position: relative;
    width: calc(50% - 50px);
    margin-bottom: 40px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.timeline-card:nth-child(odd) {
    margin-left: auto;
    margin-right: 50px;
}

.timeline-card:nth-child(even) {
    margin-left: 50px;
}

@media (max-width: 768px) {
    .timeline-card,
    .timeline-card:nth-child(odd),
    .timeline-card:nth-child(even) {
        width: calc(100% - 80px);
        margin-left: 60px;
        margin-right: 20px;
    }
}

.timeline-card:hover {
    transform: translateY(-5px);
}

/* Card Glow Effect */
.card-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.timeline-card:hover .card-glow {
    opacity: 1;
}

.timeline-card.featured .card-glow {
    opacity: 0.5;
    animation: pulse-glow 2s ease-in-out infinite;
}

.timeline-card.legendary .card-glow {
    background: linear-gradient(135deg, #ef4444, #f59e0b, #7c3aed);
    opacity: 0.7;
    animation: legendary-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

@keyframes legendary-glow {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

/* Card Content */
.card-content {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

/* Card Date */
.card-date {
    position: absolute;
    top: 20px;
    font-family: 'Space Mono', monospace;
    text-align: center;
    background: rgba(124, 58, 237, 0.2);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.timeline-card:nth-child(odd) .card-date {
    right: calc(100% + 30px);
}

.timeline-card:nth-child(even) .card-date {
    left: calc(100% + 30px);
}

@media (max-width: 768px) {
    .timeline-card .card-date,
    .timeline-card:nth-child(odd) .card-date,
    .timeline-card:nth-child(even) .card-date {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        display: inline-flex;
        gap: 8px;
        margin-bottom: 12px;
    }
}

.date-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #7c3aed;
}

.date-month {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
}

.date-year {
    display: block;
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Card Icon */
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

/* Card Title */
.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

/* Card Excerpt */
.card-excerpt {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 16px;
}

.card-excerpt em {
    color: #7c3aed;
    font-style: italic;
}

/* Card Tags */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Space Mono', monospace;
}

.tag-milestone {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #f59e0b;
}

.tag-tech {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(6, 182, 212, 0.5);
    color: #06b6d4;
}

.tag-hexa {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(124, 58, 237, 0.1));
    border: 1px solid rgba(124, 58, 237, 0.5);
    color: #7c3aed;
}

.tag-historic {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #10b981;
}

.tag-legendary {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(245, 158, 11, 0.3));
    border: 1px solid rgba(239, 68, 68, 0.6);
    color: #ef4444;
    animation: legendary-tag 2s ease-in-out infinite;
}

@keyframes legendary-tag {
    0%, 100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.3); }
    50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.6); }
}

/* Card Expand Button */
.card-expand {
    background: none;
    border: none;
    color: #7c3aed;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
}

.card-expand:hover {
    color: #06b6d4;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TIMELINE FUTURE SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

.timeline-future {
    text-align: center;
    padding: 80px 20px;
    position: relative;
}

.future-content {
    max-width: 600px;
    margin: 0 auto;
}

.future-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.future-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.future-question {
    margin: 3rem 0;
}

.question-mark {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 6rem;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: question-pulse 2s ease-in-out infinite;
}

@keyframes question-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.future-question p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MODAL STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 24px;
    max-width: 800px;
    max-height: 90vh;
    width: 100%;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

/* Modal Close */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.3);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}

/* Modal Header */
.modal-header {
    padding: 40px 40px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.modal-date {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 0.875rem;
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    padding-right: 60px;
}

/* Modal Body */
.modal-body {
    padding: 30px 40px;
    overflow-y: auto;
    flex: 1;
}

.modal-body h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    color: #7c3aed;
    margin: 24px 0 12px;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 16px;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.modal-body li {
    position: relative;
    padding-left: 24px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 8px;
}

.modal-body li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: #7c3aed;
}

.modal-body pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    font-family: 'Space Mono', monospace;
    font-size: 0.875rem;
    color: #10b981;
    margin-bottom: 16px;
}

.modal-body code {
    font-family: 'Space Mono', monospace;
    background: rgba(124, 58, 237, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    color: #06b6d4;
}

.modal-body .highlight-box {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.modal-body .highlight-box h4 {
    font-family: 'Orbitron', sans-serif;
    color: #7c3aed;
    margin-bottom: 12px;
}

/* Modal Footer */
.modal-footer {
    padding: 20px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BLOG FOOTER
   ═══════════════════════════════════════════════════════════════════════════════ */

.blog-footer {
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-logo .logo-star {
    color: #f59e0b;
    margin-right: 8px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .journey-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════════ */

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Card entrance animations */
.timeline-card {
    opacity: 0;
    transform: translateY(30px);
}

.timeline-card.visible {
    animation: card-enter 0.6s ease forwards;
}

@keyframes card-enter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation delay for cards */
.timeline-card:nth-child(1) { animation-delay: 0.1s; }
.timeline-card:nth-child(2) { animation-delay: 0.2s; }
.timeline-card:nth-child(3) { animation-delay: 0.3s; }
.timeline-card:nth-child(4) { animation-delay: 0.4s; }
.timeline-card:nth-child(5) { animation-delay: 0.5s; }
