.blog-universe {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: visible;
    padding-bottom: 2rem;
}

.blog-header {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.blog-network {
    position: relative;
    width: 100%;
    height: calc(100vh - 150px);
    overflow: visible;
}

.blog-post {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(28, 162, 132, 0.15);
    backdrop-filter: blur(5px);
    border: 2px solid var(--fav-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    transform-origin: center center;
    box-shadow: 0 0 20px rgba(28, 162, 132, 0.1);
    z-index: 1;
}

.blog-post.central {
    width: 200px;
    height: 200px;
    background: rgba(28, 162, 132, 0.25);
    border-width: 3px;
    z-index: 2;
    box-shadow: 0 0 40px rgba(28, 162, 132, 0.3);
}

.blog-post.main {
    width: 160px;
    height: 160px;
    background: rgba(28, 162, 132, 0.2);
    border-width: 2px;
    z-index: 2;
}

.blog-post.sub {
    width: 140px;
    height: 140px;
    background: rgba(28, 162, 132, 0.15);
    border-width: 1px;
    font-size: 0.9em;
}

.blog-post:hover {
    transform: scale(1.1) !important;
    background: rgba(28, 162, 132, 0.3);
    z-index: 101;
    box-shadow: 0 0 30px rgba(28, 162, 132, 0.4);
}

.blog-post-link {
    text-decoration: none;
    color: inherit;
}

.blog-connection {
    position: absolute;
    background: linear-gradient(90deg, 
        rgba(28, 162, 132, 0) 0%,
        rgba(28, 162, 132, 0.3) 50%,
        rgba(28, 162, 132, 0) 100%
    );
    pointer-events: none;
    z-index: 0;
    transform-origin: left center;
    transition: all 0.3s ease;
}

.blog-connection.highlight {
    background: linear-gradient(90deg, 
        rgba(28, 162, 132, 0) 0%,
        rgba(28, 162, 132, 0.8) 50%,
        rgba(28, 162, 132, 0) 100%
    );
    height: 3px !important;
    box-shadow: 0 0 10px rgba(28, 162, 132, 0.6),
                0 0 20px rgba(28, 162, 132, 0.4),
                0 0 30px rgba(28, 162, 132, 0.2);
    opacity: 1 !important;
}

.blog-post:hover {
    z-index: 101;
}

.blog-connection.highlight {
    z-index: 100;
}

.blog-post-title {
    font-family: "Dancing Script", cursive;
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 0;
}

.central .blog-post-title {
    font-size: 1.8rem;
    text-transform: lowercase;
    font-family: "Playfair Display", serif;
}

.main .blog-post-title {
    font-size: 1.4rem;
}

.sub .blog-post-title {
    font-size: 1.1rem;
}

.blog-post-date {
    font-size: 0.8rem;
    color: var(--radius-color);
    margin-top: 5px;
}

.blog-post-excerpt {
    font-size: 0.7rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-top: 10px;
    display: none;
}

.blog-post:hover .blog-post-excerpt {
    display: block;
}

@media (max-width: 768px) {
    .blog-universe {
        min-height: 80vh;
    }

    .blog-network {
        height: calc(80vh - 100px);
    }

    .blog-post {
        width: 120px;
        height: 120px;
        padding: 10px;
    }

    .blog-post.central {
        width: 140px;
        height: 140px;
    }

    .blog-post.main {
        width: 120px;
        height: 120px;
    }

    .blog-post-title {
        font-size: 1rem;
    }

    .central .blog-post-title {
        font-size: 1.4rem;
    }

    .main .blog-post-title {
        font-size: 1.1rem;
    }

    .blog-post-date {
        font-size: 0.7rem;
    }

    .blog-post-excerpt {
        display: none;
    }

    .blog-post:hover .blog-post-excerpt {
        display: none;
    }

    /* Improve touch targets */
    .blog-post {
        touch-action: manipulation;
    }

    .blog-post:hover {
        transform: scale(1.05) !important; /* Smaller scale on mobile */
    }

    /* Adjust connection lines */
    .blog-connection {
        height: 1px; /* Thinner lines on mobile */
    }
}

/* Add support for larger phones in landscape */
@media (max-width: 896px) and (orientation: landscape) {
    .blog-universe {
        min-height: 100vh;
    }

    .blog-network {
        height: calc(100vh - 80px);
    }
}

/* Prevent text selection on mobile */
.blog-post {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.view-toggle {
    background: rgba(28, 162, 132, 0.15);
    border: 1px solid var(--fav-color);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.view-toggle:hover {
    background: rgba(28, 162, 132, 0.3);
}

/* List view styles */
.blog-network.list-view {
    height: auto;
    min-height: calc(100vh - 150px);
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

/* Timeline line */
.blog-network.list-view::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--fav-color) 5%,
        var(--fav-color) 95%,
        transparent
    );
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--fav-color);
}

.blog-network.list-view .blog-post {
    position: relative;
    width: calc(50% - 50px);
    height: auto;
    border-radius: 15px;
    transform: none !important;
    margin: 2rem 0;
    padding: 1.5rem;
    left: auto !important;
    top: auto !important;
    animation: none;
    background: rgba(28, 162, 132, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Alternate posts left and right */
.blog-network.list-view .blog-post:nth-child(odd) {
    margin-left: auto;
}

/* Timeline dots */
.blog-network.list-view .blog-post::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--fav-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

/* Position dots and connection lines */
.blog-network.list-view .blog-post:nth-child(odd)::before {
    left: -60px;
}

.blog-network.list-view .blog-post:nth-child(even)::before {
    right: -60px;
}

/* Connection lines to timeline */
.blog-network.list-view .blog-post::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: var(--fav-color);
    transform: translateY(-50%);
}

.blog-network.list-view .blog-post:nth-child(odd)::after {
    left: -40px;
}

.blog-network.list-view .blog-post:nth-child(even)::after {
    right: -40px;
}

.blog-network.list-view .blog-post:hover {
    transform: scale(1.03) !important;
    background: rgba(28, 162, 132, 0.25);
    box-shadow: 0 0 30px rgba(28, 162, 132, 0.3);
}

.blog-network.list-view .blog-post-date {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Playfair Display", serif;
    font-size: 1.1rem;
    color: var(--text-color);
    white-space: nowrap;
}

.blog-network.list-view .blog-post:nth-child(odd) .blog-post-date {
    right: -170px;
}

.blog-network.list-view .blog-post:nth-child(even) .blog-post-date {
    left: -170px;
}

/* Mobile styles for timeline */
@media (max-width: 768px) {
    .blog-network.list-view {
        padding: 2rem 1rem;
    }

    .blog-network.list-view::before {
        left: 30px;
    }

    .blog-network.list-view .blog-post {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }

    .blog-network.list-view .blog-post::before {
        left: -25px !important;
        right: auto !important;
    }

    .blog-network.list-view .blog-post::after {
        left: -25px !important;
        right: auto !important;
        width: 25px;
    }

    .blog-network.list-view .blog-post-date {
        position: relative;
        top: auto;
        transform: none;
        left: auto !important;
        right: auto !important;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Animation for timeline entries */
@keyframes timelineEntry {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-network.list-view .blog-post {
    animation: timelineEntry 0.5s ease forwards;
    opacity: 0;
}

/* Stagger the animations */
.blog-network.list-view .blog-post:nth-child(1) { animation-delay: 0.1s; }
.blog-network.list-view .blog-post:nth-child(2) { animation-delay: 0.2s; }
.blog-network.list-view .blog-post:nth-child(3) { animation-delay: 0.3s; }
.blog-network.list-view .blog-post:nth-child(4) { animation-delay: 0.4s; }
.blog-network.list-view .blog-post:nth-child(5) { animation-delay: 0.5s; }

/* Special styling for central post in list view */
.blog-network.list-view .blog-post.central {
    background: rgba(28, 162, 132, 0.25);
    border-width: 2px;
}

.blog-network.list-view .blog-post.central .blog-post-title {
    font-size: 2rem !important;
}

/* Special styling for main category posts in list view */
.blog-network.list-view .blog-post.main {
    border-width: 1.5px;
}

/* Special styling for sub posts in list view */
.blog-network.list-view .blog-post.sub {
    margin-left: 2rem;
    border-width: 1px;
    background: rgba(28, 162, 132, 0.1);
} 