* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2d1b69 0%, #1a0b3d 50%, #4a148c 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.7;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    padding: 40px 20px 30px;
}

.nav {
    text-align: left;
    margin-bottom: 20px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00ffff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 20px;
    transition: all 0.2s;
}

.back-button:hover {
    background: rgba(0, 255, 255, 0.15);
}

.title {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00, #ff0080);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subtitle {
    color: #00ffff;
    margin-top: 10px;
    font-size: 1.05rem;
}

/* post grid (blog.html) */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.post-card {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 0, 255, 0.25);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 255, 0.6);
}

.post-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.post-card-body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.post-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ff00ff;
    font-weight: 700;
}

.post-card h2 {
    font-size: 1.25rem;
    line-height: 1.3;
}

.post-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
    flex: 1;
}

.post-date {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
}

/* article page */
.article {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 0, 255, 0.25);
    border-radius: 16px;
    padding: 36px 40px 44px;
    margin-top: 10px;
    color: #fff;
}

.article .post-tag {
    display: inline-block;
    margin-bottom: 10px;
}

.article h1 {
    font-size: 2.1rem;
    line-height: 1.25;
    margin-bottom: 10px;
    color: #fff;
}

.article .post-date {
    margin-bottom: 24px;
    display: block;
}

.article-hero {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 28px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.article h2 {
    color: #00ffff;
    font-size: 1.35rem;
    margin: 32px 0 12px;
}

.article p {
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.article ul {
    margin: 0 0 16px 22px;
    color: rgba(255, 255, 255, 0.88);
}

.article ul li {
    margin-bottom: 8px;
}

.watch-cta {
    margin-top: 36px;
    padding: 22px 26px;
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.18), rgba(0, 255, 255, 0.12));
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.watch-cta p {
    margin: 0;
    color: #fff;
    font-weight: 500;
}

.watch-cta a {
    background: linear-gradient(135deg, #ff0000, #ff0080);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 25px;
    white-space: nowrap;
    transition: transform 0.2s;
}

.watch-cta a:hover {
    transform: scale(1.05);
}

footer {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

footer a {
    color: #00ffff;
    text-decoration: none;
}

@media (max-width: 600px) {
    .article { padding: 24px 20px 30px; }
    .title { font-size: 2rem; }
    .article h1 { font-size: 1.6rem; }
}
