/* css/guide-detail.css */

/* --- Main Layout & Loader --- */
.guide-detail-container {
    max-width: 68.75rem;
    margin: 0 auto;
    padding: 2rem;
}

.loader {
    text-align: center;
    padding: 5rem;
    color: #8b949e;
    font-size: 1.2rem;
}

/* --- Guide Header Banner --- */
.guide-header {
    height: 25rem;
    position: relative;
    display: flex;
    align-items: flex-end;
    border-radius: 0.5rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    margin-bottom: 2.5rem;
}

.guide-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 30%, transparent 100%);
    padding: 2rem;
    display: flex;
    align-items: flex-end;
}

.guide-category-tag {
    display: inline-block;
    background-color: #2f81f7;
    color: white;
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.guide-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 0 0 1rem;
    color: #f0f6fc;
}

.guide-meta-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #8b949e;
}


/* --- Two-Column Content Layout --- */
.guide-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 18.75rem;
    gap: 2.5rem;
}

.guide-body {
    min-width: 0; /* Prevents overflow issues with grid */
}

/* --- Main Guide Article Styling --- */
.guide-body h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #30363d;
}
.guide-body h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}
.guide-body p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #c9d1d9;
}
.guide-body ul {
    list-style-position: inside;
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 1rem;
}
.guide-body blockquote {
    border-left: 0.25rem solid #2f81f7;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #8b949e;
    font-style: italic;
}
.guide-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

/* --- Sidebar & Widgets --- */
.guide-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.sidebar-widget {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.sidebar-widget h4 {
    margin: 0 0 1rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
}

/* Vote Widget */
#vote-widget {
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.vote-button {
    background: none;
    border: 1px solid #30363d;
    color: #8b949e;
    width: 3.125rem;
    height: 3.125rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}
.vote-button:hover {
    background-color: #21262d;
    color: #c9d1d9;
}
.vote-button:disabled {
    cursor: not-allowed;
    color: #238636;
}
.vote-button svg { width: 1.5rem; height: 1.5rem; }
.vote-widget-count {
    font-size: 2rem;
    font-weight: 700;
}

/* Meta Details Widget */
#guide-meta-details .meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
#guide-meta-details .meta-item img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
}
#guide-meta-details .meta-item span { font-weight: 600; }

/* --- Comments Section --- */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #30363d;
}
.comments-section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}
#comment-form textarea {
    width: 100%;
    min-height: 6.25rem;
    padding: 1rem;
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 0.375rem;
    color: #c9d1d9;
    font-size: 1rem;
    margin-bottom: 1rem;
}
#comment-auth-warning {
    text-align: center;
    padding: 2rem;
    background-color: #161b22;
    border: 1px dashed #30363d;
    border-radius: 0.5rem;
}
#comments-list-container .comment {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.comment-body {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 0.5rem;
    padding: 1rem;
    width: 100%;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #8b949e;
    font-size: 0.9rem;
}
.comment-header .author-name {
    font-weight: 700;
    color: #c9d1d9;
}
.comment-text {
    color: #c9d1d9;
}

/* --- Responsive Design --- */
@media (max-width: 56.25rem) {
    .guide-content-wrapper {
        grid-template-columns: 1fr; /* Stack columns */
    }
    .guide-sidebar {
        position: static;
        top: auto;
        order: -1; /* Move sidebar to the top */
    }
    .guide-header {
        height: 18.75rem;
    }
    .guide-header h1 {
        font-size: 2.5rem;
    }
}
