/* Ahoy Blog Styles */

/* Back to Blog Button */
#blog-back-button {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 0 2rem;
    position: relative;
    z-index: 10;
}

.blog-back-link {
    font-family: 'Gosh', sans-serif !important;
    font-size: 0.95rem !important;
    color: #7DD3D3 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: inline-block !important;
    background: transparent !important;
    padding: 0.5rem 0 !important;
}

.blog-back-link:hover,
.blog-back-link:focus,
.blog-back-link:active,
.blog-back-link:visited {
    color: #EEDDDC !important;
    text-decoration: none !important;
    background: transparent !important;
}

/* Links */
#dib-posts a {
    text-decoration: none;
    color: #7DD3D3;
    transition: color 0.3s ease;
}

#dib-posts a:hover {
    color: #EEDDDC;
    text-decoration: none;
}

/* Headings */
#dib-posts h1 {
    font-family: 'Kokoro', sans-serif;
    color: white;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

#dib-posts h2,
#dib-posts h3,
#dib-posts h4 {
    font-family: 'Gosh', sans-serif;
    color: white;
    font-weight: 700;
}

#dib-posts h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
}

#dib-posts h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Body text */
#dib-posts p,
#dib-posts li {
    font-family: 'Gosh', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

/* Meta text (author, date, etc) */
.dib-meta-text,
.dib-post-date,
.dib-meta-readtime,
.dib-meta-author,
.dib-post-category-text {
    font-family: 'Gosh', sans-serif;
}

.dib-meta-author a {
    color: #7DD3D3;
}

.dib-post-category-text a {
    color: #7DD3D3;
    text-decoration: none;
}

.dib-post-category-text a:hover {
    color: #EEDDDC;
}

/* Blockquotes */
#dib-posts blockquote {
    background: #0F0C14;
    border-left: 4px solid #7DD3D3;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
}

/* Lists */
#dib-posts ul,
#dib-posts ol {
    color: rgba(255, 255, 255, 0.9);
}

#dib-posts ul li::marker {
    color: #7DD3D3;
}

/* Code and pre */
#dib-posts code {
    background: #0F0C14;
    color: #7DD3D3;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
}

#dib-posts pre {
    background: #0F0C14;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Table of Contents */
.dib-toc {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.dib-toc summary {
    cursor: pointer;
    margin-bottom: 1rem;
}

.dib-toc h2 {
    font-family: 'Gosh', sans-serif;
    color: white;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.3rem;
}

.dib-toc ul {
    margin-top: 0;
}

.dib-toc a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.dib-toc a:hover {
    color: #7DD3D3;
}

/* Back to blog link */
.dib-post-back-link {
    color: #7DD3D3 !important;
    text-decoration: none !important;
    font-family: 'Gosh', sans-serif;
    display: inline-block;
    margin: 2rem 0;
    background: transparent !important;
}

.dib-post-back-link:hover {
    color: #EEDDDC !important;
    background: transparent !important;
}

/* Related posts */
.dib-related {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.dib-related h2 {
    font-family: 'Kokoro', sans-serif;
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.dib-related-post {
    background: #0F0C14;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dib-related-post:hover {
    background: #141017;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.dib-related-post .dib-post-title a {
    color: white;
    font-size: 1.3rem;
}

.dib-related-post .dib-post-title a:hover {
    color: #7DD3D3;
}

/* Audio player */
#dib-audio {
    background: #0F0C14;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.dib-audio-play-pause {
    background: linear-gradient(45deg, #60C0C0, #EEDDDC);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.dib-audio-play-pause:hover {
    transform: scale(1.05);
}

.dib-audio-play-pause svg {
    fill: #000000;
}

.dib-audio-speed,
.dib-audio-skip-back,
.dib-audio-skip-forward,
.dib-audio-time-remaining {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-family: 'Gosh', sans-serif;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dib-audio-speed:hover,
.dib-audio-skip-back:hover,
.dib-audio-skip-forward:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.dib-audio-speed svg,
.dib-audio-skip-back svg,
.dib-audio-skip-forward svg {
    fill: #7DD3D3;
}

.dib-audio-progress-container {
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 3px;
    margin-top: 1rem;
}

.dib-audio-progress {
    background: linear-gradient(45deg, #60C0C0, #EEDDDC);
    height: 100%;
    border-radius: 3px;
    position: relative;
}

.dib-audio-drag-handle {
    background: white;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    position: absolute;
    right: -7px;
    top: -4px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dib-audio-text {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Gosh', sans-serif;
    margin-left: 1rem;
}

.dib-audio-disclaimer {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dib-audio-disclaimer a {
    color: #7DD3D3;
}

/* Buttons and CTAs */
#dib-posts .btn,
#dib-posts button[type="submit"] {
    background: linear-gradient(45deg, #60C0C0, #EEDDDC);
    color: #000000;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-family: 'Gosh', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

#dib-posts .btn:hover,
#dib-posts button[type="submit"]:hover {
    background: linear-gradient(45deg, #50B0B0, #DCC0BE);
    color: #000000;
    transform: translateY(-2px);
}

/* Forms */
#dib-posts input[type="text"],
#dib-posts input[type="email"],
#dib-posts textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    padding: 0.75rem 1rem;
    font-family: 'Gosh', sans-serif;
    width: 100%;
}

#dib-posts input[type="text"]:focus,
#dib-posts input[type="email"]:focus,
#dib-posts textarea:focus {
    border-color: #7DD3D3;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

/* Tables */
#dib-posts table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #0F0C14;
    border-radius: 8px;
    overflow: hidden;
}

#dib-posts th {
    background: rgba(96, 192, 192, 0.2);
    color: white;
    font-family: 'Kokoro', sans-serif;
    padding: 1rem;
    text-align: left;
}

#dib-posts td {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

#dib-posts tr:hover {
    background: rgba(255, 255, 255, 0.05);
}


/* Responsive adjustments */
@media (max-width: 768px) {
    #dib-posts h1 {
        font-size: 2rem;
    }
    
    #dib-posts h2 {
        font-size: 1.5rem;
    }
    
    #dib-posts h3 {
        font-size: 1.2rem;
    }
}

/* monkey patch */
.dib-post-wrap a.dib-post {
    align-items: normal !important;
}