html {
    overflow-y: scroll;
}


/* ========================================================= */
/*                         BASE                              */
/* ========================================================= */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0C0C0C;
    color: #E5E5E5;
}

.forum-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

/* ========================================================= */
/*                         HEADER                            */
/* ========================================================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}

.nav div {
    display: inline-block;
    margin-left: 20px;
    cursor: pointer;
    color: #ccc;
    transition: 0.2s;
}

.nav div:hover {
    color: #fff;
}

.nav a {
    color: #00E676;
    font-weight: 500;
    text-decoration: none;
}

/* ========================================================= */
/*                         HERO                              */
/* ========================================================= */
.hero {
    padding: 10px 0;
    text-align: center;
}

.hero-title {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
}

.hero-sub {
    margin-top: 10px;
    font-size: 16px;
    color: #888;
}

/* ========================================================= */
/*                     CATEGORY GRID                         */
/* ========================================================= */
.categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.category {
    background: #151515;
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid #1F1F1F;
}

.category:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.55);
    border-color: #2A2A2A;
}

.cat-title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.cat-title a {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-decoration: none;
}

.cat-title a:hover {
    text-decoration: underline;
}

.cat-desc {
    margin-top: 5px;
    color: #aaa;
}

/* ========================================================= */
/*                   CATEGORY LIST BLOCKS                    */
/* ========================================================= */
.category-block {
    background: #151515;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #1F1F1F;
    margin-bottom: 20px;
    transition: 0.2s;
    cursor: pointer;
}

.category-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.55);
    border-color: #2A2A2A;
}

.cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cat-stats {
    font-size: 14px;
    color: #888;
}

.cat-last {
    margin-top: 12px;
    font-size: 15px;
    color: #777;
}

.cat-last a {
    color: #00E676;
    font-weight: 500;
    text-decoration: none;
}

/* ========================================================= */
/*                     QUESTION PAGE                         */
/* ========================================================= */
.question-block {
    background: #151515;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #1F1F1F;
    margin-bottom: 30px;
}

.q-title {
    font-size: 26px;
    font-weight: bold;
    color: #fff;
}

.q-meta {
    margin-top: 10px;
    font-size: 14px;
    color: #888;
    display: flex;
    gap: 20px;
}

.q-meta span {
    color: #ccc;
}

.q-body {
    margin-top: 20px;
    font-size: 16px;
    color: #ddd;
    line-height: 1.5;
}

.q-actions {
    margin-top: 20px;
}

.q-actions button {
    background: #222;
    color: #ccc;
    border: 1px solid #333;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
    transition: 0.2s;
}

.q-actions button:hover {
    background: #00BFA5;
    color: #fff;
}

/* ========================================================= */
/*                         ANSWERS                           */
/* ========================================================= */
.answers-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #fff;
}

.answer {
    background: #151515;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #1F1F1F;
    margin-bottom: 20px;
}

.best-answer {
    border-color: #C9A86A;
    box-shadow: 0 0 12px rgba(201,168,106,0.25);
}

.a-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.a-user {
    font-weight: bold;
    color: #fff;
}

.a-role {
    font-size: 12px;
    color: #00E676;
}

.a-body {
    font-size: 15px;
    color: #ddd;
    line-height: 1.5;
}

.a-footer {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #888;
}

.a-actions button {
    background: #222;
    color: #ccc;
    border: 1px solid #333;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 10px;
    transition: 0.2s;
}

.a-actions button:hover {
    background: #00BFA5;
    color: #fff;
}

/* ========================================================= */
/*                     CATEGORY PAGE                         */
/* ========================================================= */
.category-hero {
    padding: 20px 0;
}

.category-title {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
}

.category-sub {
    margin-top: 8px;
    color: #888;
}

/* ========================================================= */
/*                       TOPICS LIST                         */
/* ========================================================= */
.topics-list {
    margin-top: 20px;
}

.topic {
    background: #151515;
    border: 1px solid #1F1F1F;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    transition: 0.2s;
    cursor: pointer;
}

.topic:hover {
    transform: translateY(-3px);
    border-color: #2A2A2A;
    box-shadow: 0 6px 18px rgba(0,0,0,0.55);
}

.topic-meta {
    margin-top: 5px;
    color: #aaa;
    font-size: 14px;
}

.topic-right {
    display: flex;
    align-items: center;
}

.topic-count {
    background: #0F0F0F;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: bold;
    color: #00E676;
}

/* ========================================================= */
/*                         FOOTER                            */
/* ========================================================= */
#footer {
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
    color: #777;
}

/* ========================================================= */
/*                        MOBILE                             */
/* ========================================================= */
@media (max-width: 700px) {
    .hero-title { font-size: 26px; }
    .categories { grid-template-columns: 1fr; }
    .header { flex-direction: column; gap: 10px; }
    .nav div { margin-left: 10px; }
    .q-title { font-size: 22px; }
    .topic { flex-direction: column; gap: 10px; }
    .topic-right { justify-content: flex-start; }
    .category-title { font-size: 24px; }
}

@media (max-width: 420px) {
    .nav { display: flex; gap: 15px; font-size: 14px; }
    .category { padding: 15px; }
    .cat-title { font-size: 16px; }
    .topic-title { font-size: 16px; }
    .topic { padding: 15px; }
}


 
/* share buttons */
#share-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.share-btn {
    position: relative;
    display: inline-block;
    padding: 5px 10px;
    background-color: #0077ff;  
    color: white;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.share-btn:hover {
    background-color: #0059b3;
}

#share-pinterest {
    background-color: #E60023;  
}

#share-pinterest:hover {
    background-color: #b0001b;  
}

.share-tooltip {
    position: absolute;
    visibility: hidden;
    width: 150px;
    background-color: gray;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    z-index: 1;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.share-btn:hover .share-tooltip {
    visibility: visible;
    opacity: 1;
}

#cookieBanner {
    font-size: 16px;  
    font-family: Georgia, Arial, Helvetica, sans-serif;    
    position: fixed;                        
    bottom: 20px;                           
    right: 20px;                            
    background-color: rgba(0, 0, 0, 0.7);  
    color: white;                           
    padding: 10px;                          
    border-radius: 5px;                     
    max-width: 400px;                       
    z-index: 9999;                          
}

#cookieBanner button {
    background-color: #fff;                 
    color: black;                           
    border-radius: 5px;                     
    cursor: pointer;                        
    padding: 5px 10px;                      
}