* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #1a4d8f 0%, #0a2540 50%, #000814 100%);
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body.light-mode {
    background: linear-gradient(180deg, #87ceeb 0%, #5b9bd5 50%, #4a7ba7 100%);
    color: #1d1d1f;
}

#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 223, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 100, 100, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(100, 200, 255, 0.15) 0%, transparent 50%);
    animation: backgroundShift 20s ease infinite;
    z-index: -1;
}

@keyframes backgroundShift {

    0%,
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05) rotate(1deg);
    }
}

.floating-renders {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.render {
    position: absolute;
    opacity: 0.15;
    animation: floatRender 20s ease-in-out infinite;
    pointer-events: none;
}

.render-1 {
    width: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.render-2 {
    width: 250px;
    top: 60%;
    right: 8%;
    animation-delay: 5s;
    animation-duration: 30s;
}

.render-3 {
    width: 280px;
    bottom: 15%;
    left: 10%;
    animation-delay: 10s;
    animation-duration: 28s;
}

.render-4 {
    width: 320px;
    top: 40%;
    right: 5%;
    animation-delay: 15s;
    animation-duration: 32s;
}

@keyframes floatRender {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    50% {
        transform: translateY(-30px) translateX(10px);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 20px;
}

header {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 223, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 223, 0, 0.4);
    border-radius: 50px;
    text-decoration: none;
    color: #ffdf00;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-button:hover {
    transform: translateX(-5px) scale(1.05);
    background: rgba(255, 223, 0, 0.3);
    box-shadow: 0 6px 20px rgba(255, 223, 0, 0.5);
}

.back-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.back-button:hover .back-icon {
    transform: translateX(-3px);
}

header h1 {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffdf00 0%, #ff6b6b 50%, #4ecdc4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.5rem;
    color: #9ca3af;
    font-weight: 400;
}

.blog-controls {
    padding: 20px;
    margin-bottom: 30px;
}

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tag-filter {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 223, 0, 0.3);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tag-filter:hover {
    background: rgba(255, 223, 0, 0.2);
    border-color: rgba(255, 223, 0, 0.6);
    transform: translateY(-2px);
}

.tag-filter.active {
    background: linear-gradient(135deg, #ffdf00 0%, #ff6b6b 100%);
    color: #000;
    border-color: #ffdf00;
}

.blog-posts {
    display: grid;
    gap: 30px;
    padding: 20px;
}

.post-card {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(255, 223, 0, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ffdf00 0%, #ff6b6b 100%);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.post-card:hover::before {
    transform: scaleY(1);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 20px 40px rgba(255, 223, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 107, 107, 0.6);
    background: rgba(17, 24, 39, 0.8);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.post-title {
    font-size: 2rem;
    color: #ffdf00;
    font-weight: 700;
    margin: 0;
}

.post-date {
    color: #9ca3af;
    font-size: 1rem;
}

.post-content {
    font-size: 1.1rem;
    color: #d1d5db;
    line-height: 1.8;
    margin-bottom: 15px;
    white-space: pre-wrap;
}

.read-more-btn {
    background: linear-gradient(135deg, rgba(255, 223, 0, 0.2) 0%, rgba(255, 107, 107, 0.2) 100%);
    border: 2px solid rgba(255, 223, 0, 0.4);
    color: #ffdf00;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    display: inline-block;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, rgba(255, 223, 0, 0.3) 0%, rgba(255, 107, 107, 0.3) 100%);
    border-color: rgba(255, 223, 0, 0.6);
    transform: translateX(5px);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tag {
    background: rgba(255, 223, 0, 0.2);
    color: #ffdf00;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.loading-message {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.3rem;
    color: #9ca3af;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.3rem;
    color: #9ca3af;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a4d8f 0%, #0a2540 50%, #000814 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 223, 0, 0.2);
    border-top: 4px solid #ffdf00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffdf00 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

#theme-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 223, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 223, 0, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    transform: scale(1.1);
    background: rgba(255, 223, 0, 0.3);
}

.theme-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 223, 0, 0.4);
    padding: 8px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.theme-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-option {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #ffdf00;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.theme-option:hover {
    background: rgba(255, 223, 0, 0.2);
}

.theme-option.active {
    background: rgba(255, 223, 0, 0.3);
}

body.light-mode .post-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 223, 0, 0.4);
}

body.light-mode .post-content {
    color: #1d1d1f;
}

body.light-mode .post-title {
    color: #ff6b6b;
}

body.light-mode .read-more-btn {
    background: linear-gradient(135deg, rgba(255, 223, 0, 0.3) 0%, rgba(255, 107, 107, 0.3) 100%);
    color: #ff6b6b;
    border-color: rgba(255, 223, 0, 0.5);
}

body.light-mode .read-more-btn:hover {
    background: linear-gradient(135deg, rgba(255, 223, 0, 0.4) 0%, rgba(255, 107, 107, 0.4) 100%);
}

body.light-mode .tag-filter {
    background: rgba(255, 255, 255, 0.85);
    color: #1d1d1f;
}

body.light-mode #loading-screen {
    background: linear-gradient(180deg, #87ceeb 0%, #5b9bd5 50%, #4a7ba7 100%);
}

body.light-mode .theme-menu {
    background: rgba(255, 255, 255, 0.95);
}

body.light-mode .theme-option {
    color: #ff6b6b;
}

body.light-mode .back-button {
    background: rgba(255, 223, 0, 0.3);
    border: 2px solid rgba(255, 223, 0, 0.5);
    color: #ff6b6b;
}

body.light-mode .back-button:hover {
    background: rgba(255, 223, 0, 0.4);
}

@media (max-width: 768px) {
    .back-button {
        top: 15px;
        left: 15px;
        padding: 10px 16px;
        font-size: 1rem;
    }

    .back-text {
        display: none;
    }

    .back-icon {
        font-size: 1.8rem;
    }

    header h1 {
        font-size: 3rem;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .post-header {
        flex-direction: column;
    }
}