/* ============================================
   TossIdeas Blog — Stylesheet
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background: #06060a;
    color: #fff;
    min-height: 100vh;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

/* ============ HEADER ============ */
.blog-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6,6,10,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 16px 0;
}
.blog-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.blog-logo {
    font-size: 1.4rem;
    font-weight: 700;
}
.blog-logo span { color: #C00101; }
.blog-header nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.blog-header nav a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.3s;
}
.blog-header nav a:hover,
.blog-header nav a.active { color: #fff; }
.btn-ticket {
    background: #C00101 !important;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.3s;
}
.btn-ticket:hover { background: #a00 !important; }

/* ============ HERO ============ */
.blog-hero {
    padding: 80px 0 48px;
    text-align: center;
    background: linear-gradient(180deg, #06060a 0%, #111118 100%);
}
.blog-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
}
.blog-hero h1 span { color: #C00101; }
.blog-hero p {
    margin-top: 12px;
    color: rgba(255,255,255,0.5);
    font-size: 1.05rem;
}

/* ============ GRID ============ */
.blog-grid-section {
    padding: 48px 0 80px;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.blog-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    display: block;
}
.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(192,1,1,0.3);
}
.blog-card-img {
    height: 200px;
    overflow: hidden;
}
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}
.blog-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a28, #111);
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-card-placeholder span {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255,255,255,0.1);
}
.blog-card-body {
    padding: 20px;
}
.blog-card-body time {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.blog-card-body h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-body p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.read-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.82rem;
    color: #C00101;
    font-weight: 600;
}
.empty-blog {
    text-align: center;
    padding: 80px 0;
    color: rgba(255,255,255,0.3);
}

/* ============ PAGINATION ============ */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}
.blog-pagination a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}
.blog-pagination a:hover { border-color: #C00101; }
.blog-pagination a.active {
    background: #C00101;
    border-color: #C00101;
    color: #fff;
}

/* ============ POST DETAIL ============ */
.post-main {
    padding: 32px 0 80px;
}
.post-container {
    max-width: 760px;
}
.post-back {
    display: inline-block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 24px;
    transition: color 0.3s;
}
.post-back:hover { color: #fff; }
.post-cover {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 28px;
}
.post-cover img {
    width: 100%;
    height: auto;
    display: block;
}
.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
}
.post-dot { opacity: 0.3; }
.post-author { font-weight: 600; color: #C00101; }
.post-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 32px;
}
.post-content {
    font-size: 1rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.75);
}
.post-content h2, .post-content h3 {
    color: #fff;
    margin: 28px 0 12px;
    font-weight: 700;
}
.post-content p { margin-bottom: 16px; }
.post-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}
.post-content blockquote {
    border-left: 3px solid #C00101;
    padding: 12px 20px;
    margin: 20px 0;
    background: rgba(255,255,255,0.03);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: rgba(255,255,255,0.6);
}
.post-content ul, .post-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}
.post-content li { margin-bottom: 6px; }
.post-content a {
    color: #C00101;
    text-decoration: underline;
}

/* ============ SHARE ============ */
.post-share {
    margin-top: 48px;
    padding: 28px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
}
.post-share > span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    display: block;
    margin-bottom: 14px;
}
.post-share-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    color: #fff;
}
.share-wa { background: #25D366; }
.share-wa:hover { background: #1da851; }
.share-x { background: #000; border: 1px solid rgba(255,255,255,0.15); }
.share-x:hover { background: #1a1a1a; }
.share-fb { background: #1877F2; }
.share-fb:hover { background: #1466d4; }
.share-li { background: #0A66C2; }
.share-li:hover { background: #095ba8; }
.share-copy {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
}
.share-copy:hover { background: rgba(255,255,255,0.15); }

/* ============ COMMENTS ============ */
.post-comments {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.post-comments h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
}
.comment-success {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.2);
    color: #22c55e;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    margin-bottom: 20px;
}
.comment-form {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}
.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 0.88rem;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #C00101;
}
.comment-form textarea { margin-bottom: 12px; }
.comment-form button {
    background: #C00101;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background 0.3s;
}
.comment-form button:hover { background: #a00; }
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.comment-item {
    display: flex;
    gap: 14px;
}
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C00101, #ff4444);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.comment-body {
    flex: 1;
}
.comment-meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}
.comment-meta strong { font-size: 0.9rem; }
.comment-meta time {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
}
.comment-body p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
}

/* ============ FOOTER ============ */
.blog-footer {
    padding: 28px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}
.blog-footer p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .blog-hero h1 { font-size: 2rem; }
    .blog-grid { grid-template-columns: 1fr; gap: 20px; }
    .blog-card-img { height: 180px; }
    .post-title { font-size: 1.6rem; }
    .post-share-btns { flex-direction: column; }
    .cf-row { grid-template-columns: 1fr; }
    .blog-header nav { gap: 16px; }
    .btn-ticket { padding: 6px 14px; font-size: 0.8rem; }
}
@media (max-width: 480px) {
    .blog-hero { padding: 48px 0 32px; }
    .blog-hero h1 { font-size: 1.6rem; }
    .post-meta { font-size: 0.75rem; }
}
