@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

.ballz {
    background-color: #0d0d0d;
    opacity: 1;
    background-image: radial-gradient(#303030 1.4px, transparent 1.4px),
        radial-gradient(#303030 1.4px, #191919 1.4px);
    background-size: 56px 56px;
    background-position: 0 0, 28px 28px;
}

/* Base Styles */
body {
    font-family: "Poppins", "Roboto", Arial, sans-serif;
    line-height: 1.5;
}


.hero {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.image-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.slider-wrapper {
    flex-grow: 1;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#slider-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.slider-button {
    background: rgba(96, 165, 250, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: #60a5fa;
    padding: 0.5rem 0.75rem;
    font-size: 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.slider-button:hover {
    background: rgba(96, 165, 250, 0.4);
}

/* Small screen adaptation */
@media (max-width: 600px) {
    .image-slider {
        flex-direction: column;
    }

    .slider-button {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
        margin: 0.5rem 0;
    }

    #slider-image {
        max-width: 90vw;
        max-height: 50vh;
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #e0e6ed;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.post {
    width: 100%;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #64b5f6, #42a5f5, #1e88e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #f1f5f9;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.post-content h1 { font-size: 2rem; }
.post-content h2 { font-size: 1.7rem; }
.post-content h3 { font-size: 1.4rem; }

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content a {
    color: #60a5fa;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.post-content a:hover {
    color: #93c5fd;
    border-bottom-color: #60a5fa;
}

.post-content blockquote {
    border-left: 4px solid #60a5fa;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(96, 165, 250, 0.1);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.post-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #fbbf24;
}

.post-content pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #e5e7eb;
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 3rem 0 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tag {
    background: rgba(96, 165, 250, 0.2);
    color: #93c5fd;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    border: 1px solid rgba(96, 165, 250, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(96, 165, 250, 0.3);
    border-color: #60a5fa;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    color: #60a5fa;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-link:hover {
    background: rgba(96, 165, 250, 0.1);
    border-color: #60a5fa;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    text-decoration: none;
    padding: 1rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    background: rgba(96, 165, 250, 0.05);
    width: 48px;
    height: 48px;
}

.back-to-blog:hover {
    background: rgba(96, 165, 250, 0.15);
    border-color: #60a5fa;
    transform: translateY(-1px);
}

.back-to-blog .icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.8rem;
    }

    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
}
.carousel-wrapper {
  position: relative;
  max-width: 100%;
  margin: 2rem auto;
  overflow: hidden;
  padding: 0 1rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-image {
  flex: 0 0 80%;
  margin-right: 20px;
  border-radius: 8px;
  max-height: 50vh;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(96, 165, 250, 0.2);
  border: none;
  padding: 0.5rem;
  font-size: 1.5rem;
  color: #60a5fa;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
}

#carousel-prev { left: 0; }
#carousel-next { right: 0; }

.carousel-caption {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #cbd5e1;
  font-style: italic;
}
