/* 
 * Single Blog Premium Styles 
 */

/* Reading Progress Bar */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: #f97316;
    z-index: 99999;
    transition: width 0.1s ease;
}

/* Article Typography (Prose Premium) */
.prose-premium h2 {
    margin-top: 2.5em;
    margin-bottom: 1em;
    font-weight: 800;
    font-size: 1.875rem;
    color: #111827;
    line-height: 1.3;
}
.prose-premium h3 {
    margin-top: 2em;
    margin-bottom: 0.75em;
    font-weight: 700;
    font-size: 1.5rem;
    color: #1f2937;
    line-height: 1.4;
}
.prose-premium h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
    font-size: 1.25rem;
    color: #374151;
}
.prose-premium p {
    margin-bottom: 1.5em;
    line-height: 1.8;
    color: #4b5563;
}
.prose-premium ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}
.prose-premium ol {
    list-style-type: decimal;
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}
.prose-premium li {
    margin-bottom: 0.5em;
    color: #4b5563;
    line-height: 1.8;
}
.prose-premium blockquote {
    border-left: 4px solid #f97316;
    background: #fff7ed;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    border-radius: 0 0.75rem 0.75rem 0;
    margin-bottom: 1.5em;
    font-style: italic;
    color: #374151;
    font-size: 1.125rem;
    line-height: 1.7;
}
.prose-premium blockquote p {
    margin-bottom: 0;
    color: inherit;
}
.prose-premium img {
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    margin-top: 2em;
    margin-bottom: 2em;
    max-width: 100%;
    height: auto;
}
.prose-premium figure {
    margin-top: 2em;
    margin-bottom: 2em;
}
.prose-premium figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.75em;
}
.prose-premium pre {
    background-color: #111827;
    color: #f3f4f6;
    padding: 1.5em;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    font-size: 0.875rem;
    line-height: 1.7;
    box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.06);
}
.prose-premium code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background-color: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    color: #ef4444;
    font-size: 0.875em;
}
.prose-premium pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
    border-radius: 0;
}
.prose-premium table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    font-size: 0.875rem;
}
.prose-premium th, .prose-premium td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    text-align: left;
}
.prose-premium th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #111827;
}
.prose-premium a {
    color: #f97316;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}
.prose-premium a:hover {
    color: #ea580c;
}

/* Table of Contents */
.toc-link.active {
    color: #f97316;
    font-weight: 600;
    border-left-color: #f97316;
    background-color: #fff7ed;
}

/* Comments Form Styles */
.premium-comments-form input[type="text"], 
.premium-comments-form input[type="email"], 
.premium-comments-form input[type="url"], 
.premium-comments-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1.25rem;
    background-color: #f9fafb;
    color: #111827;
    transition: all 0.3s ease;
}
.premium-comments-form input:focus, 
.premium-comments-form textarea:focus {
    outline: none;
    border-color: #f97316;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(249,115,22,0.1);
}
.premium-comments-form .submit {
    background-color: #f97316;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(249,115,22,0.1);
}
.premium-comments-form .submit:hover {
    background-color: #ea580c;
    box-shadow: 0 10px 15px -3px rgba(249,115,22,0.2);
    transform: translateY(-1px);
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
    transition: all 0.3s ease;
}
