/* ########################################### */
/*                 Global                      */
/* ########################################### */
*{
    box-sizing: border-box;
}

html{
    font-size: 14px;
    font-family: 'Titillium Web', sans-serif;
    background-color:var(--bg-black);
    color:var(--text-white);
}

a{
    color:var(--link-purple);
    font-weight: bolder;
    text-decoration: none;
}

h1{
    font-size:16px;
    font-weight: bolder;
}

@font-face {
    font-family:aquire;
    src:url("../aquire.46a8e2a7a091.otf");
}

/* ########################################### */
/*           Create Post Styles               */
/* ########################################### */
.create-post-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.create-post-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    /* background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-light)); */
    border: 2px solid  var(--primary-purple);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-purple);
}

.create-post-header h1 {
    font-family: aquire, sans-serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.create-post-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    opacity: 0.9;
}

.create-post-form {
    border: 2px solid  var(--primary-purple);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px var(--shadow-dark);
    text-align: center;
}

.form-section-big{
    margin-bottom: 2rem;
    width: 100%;
}

.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-gray);
    border-radius: 8px;
    border-left: 4px solid var(--primary-purple);
}

.form-section h3 {
    font-family: aquire, sans-serif;
    color: var(--primary-purple);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-light);
    font-size: 1rem;
}

.form-control,
.form-select {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--bg-gray-light);
    border: 1px solid var(--border-gray-light);
    border-radius: 5px;
    color: #f1ebeb; /* This specific color is not in variables, keeping as is */
    font-size: 1rem;
    transition: border-color var(--transition-medium);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 2px var(--focus-purple);
}

.form-control::placeholder {
    color: var(--text-dark);
}

.error-message {
    color: #ff4444; /* This specific color is not in variables, keeping as is */
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--btn-primary);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--btn-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-purple);
}

.btn-secondary {
    background-color: var(--border-gray-light);
    color: var(--text-white);
}

.btn-secondary:hover {
    background-color: #555; /* This specific color is not in variables, keeping as is */
}

/* CKEditor specific styles */
.django-ckeditor-widget {
    width: 100%;
}

/* Enhanced CKEditor size control */
.ck-editor__editable {
    min-height: 500px !important;
    max-height: 800px !important;
    overflow-y: auto !important;
    width: 100% !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

/* Ultra-wide CKEditor for post content */
.form-section-big .ck-editor__editable {
    min-height: 600px !important;
    max-height: 1000px !important;
    width: 100% !important;
    max-width: none !important;
}

/* CKEditor container width enhancement */
.django-ckeditor-widget {
    width: 100% !important;
    max-width: none !important;
}

/* CKEditor responsive width */
.ck.ck-editor {
    width: 100% !important;
    max-width: none !important;
}

/* Post content section styling enhancement */
.form-section-big {
    margin-bottom: 2rem;
    width: 100%;
    max-width: none;
}

.form-section-big .form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-gray);
    border-radius: 8px;
    border-left: 4px solid var(--primary-purple);
    width: 100%;
    max-width: none;
}

/* Responsive CKEditor width */
@media (min-width: 1200px) {
    .form-section-big .ck-editor__editable {
        min-height: 700px !important;
    }
}

@media (max-width: 768px) {
    .ck-editor__editable {
        min-height: 400px !important;
        max-height: 600px !important;
    }
}

.ck.ck-editor {
    border: 1px solid var(--primary-purple);
    border-radius: 8px;
    overflow: hidden;
}

/* Image upload styling */
.ck-content .image {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ck-content .image img {
    max-width: 100%;
    height: auto;
}

/* Image upload button styling */
.ck-file-dialog-button {
    background-color: var(--primary-purple);
    color: var(--text-white);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.ck-file-dialog-button:hover {
    background-color: var(--primary-purple-light);
}

/* Responsive CKEditor */
@media (max-width: 768px) {
    .ck-editor__editable {
        min-height: 300px !important;
    }
    
    .ck.ck-editor {
        font-size: 14px;
    }
}

/* Custom image styling in CKEditor */
.ck-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Image upload progress styling */
.ck-upload__loader {
    border: 2px solid var(--primary-purple);
    border-top: 2px solid transparent;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Image upload error styling */
.ck-upload__error {
    color: var(--status-offline);
    font-size: 12px;
    margin-top: 5px;
}

/* Image upload success styling */
.ck-upload__success {
    color: var(--status-online);
    font-size: 12px;
    margin-top: 5px;
}

.cke_chrome {
    border: 1px solid var(--border-gray-light) !important;
    border-radius: 5px;
    overflow: hidden;
}


.cke_bottom {
    background: linear-gradient(135deg, rgb(49, 188, 253), var(--btn-primary)) !important;
    border-top: 1px solid var(--border-gray-light) !important;
}

.cke_contents {
    background-color: var(--bg-gray-light) !important;
    color: var(--text-white) !important;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .create-post-container {
        margin: 1rem;
        padding: 0 0.5rem;
    }
    
    .create-post-header {
        padding: 1.5rem;
    }
    
    .create-post-header h1 {
        font-size: 2rem;
    }
    
    .create-post-form {
        padding: 1rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    .create-post-header h1 {
        font-size: 1.5rem;
    }
    
    .create-post-header p {
        font-size: 1rem;
    }
    
    .form-section h3 {
        font-size: 1.1rem;
    }
}



/* ########################################### */
/*           Forums.html                       */
/* ########################################### */

.container{
    margin: 20px;
    padding: 20px;
}

.subforum{
    margin-top:20px;
}

.subforum-title{
    background-color:#292B2E; /* This specific color is not in variables, keeping as is */
    font-family:aquire;
    padding: 5px;
    border-radius: 5px;
    margin:4px;
}

.subforum-row{
    display: grid;
    grid-template-columns: 7% 60% 13% 20%;
}

.subforum-column{
    padding: 10px;
    margin:4px;
    border-radius: 5px;
    background-color:#111314; /* This specific color is not in variables, keeping as is */
}

.subforum-description *{
    margin-block: 0;
}

.center{
    display: flex;
    justify-content: center;
    align-items: center;
}

.subforum-stats {
    display: flex;
    flex-direction: column;
}

.subforum-icon i{
    font-size: 45px;
}

.subforum-devider{
    display: none;
}


/* For the smartphones */
@media screen and (max-width: 460px) {
    .container{
        margin: 10px;
        padding: 10px;
    }

    .subforum-row{
        display: grid;
        grid-template-columns: 25% 75%;
        grid-template-rows: 65% 35%;
    }

    /* .subforum-column{
        padding: 10px;
        margin: 4px;
        border-radius: 5px;
        flex-direction: column;
        background-color: #111314;
        font-size:small;
    } */


    .subforum-devider{
        display: block;
        border: 0;
        height: 1px;
        background-image: linear-gradient(to right, rgba(190, 190, 190, 0), rgba(255, 255, 255, 0.75), rgba(190, 190, 190, 0));
    }
}

/* For the tablets */
@media screen and (min-width: 460px) and (max-width: 1024px) {
    .container{
        margin: 15px;
        padding: 15px;
    }

    .subforum-row{
        display: grid;
        grid-template-columns: 10% 60% 10% 20%;
    }

    .subforum-icon i{
        font-size: 35px;
    }

    html{
        font-size: 14px;
    }

    h1{
        font-size: 16px;
    }
}
/*   Header Section    */

header{
    margin-inline: 10px;
}
  /* Nav Bar styles */
.navbar{
    display:flex;
    align-items: center;
}
.navigation{
    font-family:aquire;
    /* background-color:var(--primary-purple); */
    
    padding: 10px;
    width: 45%;
    display: inline-block;
    border-radius: 5px;
    max-height: 80px;
    margin-right:10px;
}

.border {
    border: 1px solid var(--primary-purple);
}

.close-icon i{
    font-size:60px;
    float: left;
    cursor: pointer;
}

.nav-list{
    list-style-type:none;
    overflow: hidden;
    padding-left: 0px;
}

.nav-item a{
    float: right;
    display:block;
    text-align: center;
    margin-inline: 20px;
    font-size: 20px;
    padding: 10px;
    color:var(--text-white);
}

.nav-item a:hover{
    background-color: rgb(0,0,0,0.1); /* This specific color is not in variables, keeping as is */
}

.hide{
    display: none;
}

.bar-icon{
    font-size: 60px;
    display: inline-block;
    margin-right:10px;
    color: var(--text-white);
    cursor: pointer;
}


.brand{
    font-size:60px;
    display: inline-block;
    font-family:aquire;
}

.nav-user-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    margin-right: 20px;
}

.admin-icon {
    color: var(--text-white);
    font-size: 24px;
    padding: 5px 18px;
    /* padding: 8px; */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    /* background-color: rgba(82, 5, 123, 0.7); */
    transition: all var(--transition-medium);
}

.admin-icon:hover {
    /* background-color: var(--primary-purple-light); */
    transform: scale(1.1);
}

.welcome-user {
    font-size: 14px;
    font-weight: bold;
    padding: 8px 15px;
    text-align: center;
}

.create-post-btn-nav {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 5px;
}

.create-post-btn-nav a {
    color: var(--text-white);
    border-radius: 50%;
    transition: all var(--transition-medium);
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}

.create-post-btn-nav a:hover {
    transform: scale(1.1);
}

/* Responsive styles for nav user section */
@media screen and (max-width: 768px) {
    .nav-user-section {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .admin-icon {
        font-size: 20px;
        padding: 6px;
    }

    .welcome-user {
        font-size: 14px;
        padding: 6px 12px;
    }

    .create-post-btn-nav {
        font-size: 24px;
    }

    .profile-pic-container img {
        width: 40px;
        height: 40px;
    }
}

@media screen and (max-width: 480px) {
    .nav-user-section {
        flex-direction: row;
        gap: 5px;
        align-items: center;
        margin-left: 10px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .create-post-btn-nav a {
        color: var(--text-white);
        padding-right: 8px;
        padding-left: 4px;
        border-radius: 50%;
        transition: all var(--transition-medium);
    }

    .welcome-user {
        font-size: 16px;
        padding: 4px 8px;
    }

    .admin-icon {
        font-size: 16px;
        padding: 4px;
        width: 32px;
        height: 32px;
    }

    .create-post-btn-nav {
        font-size: 24px;
    }

    .profile-pic-container img {
        width: 30px;
        height: 30px;
    }
}

@media screen and (max-width: 320px) {
    .nav-user-section {
        gap: 3px;
        flex-direction: column;
        align-items: center;
        margin-left: 0;
        margin-top: 10px;
    }

    .welcome-user {
        font-size: 16px;
        padding: 3px 6px;
    }

    .admin-icon {
        font-size: 14px;
        padding: 3px;
        width: 28px;
        height: 28px;
    }

    .create-post-btn-nav {
        font-size: 20px;
    }

    .profile-pic-container img {
        width: 30px;
        height: 30px;
    }
}

/*Navbar for the smartphones*/
@media screen and (max-width: 460px){
    .navigation{
        max-height: auto;
    }
    
    .close-icon i{
        font-size:24px;
    }
    
    .nav-item a{
        float:left;
        display:inline;
        margin-inline: 3px;
        font-size: 12px;
        padding: 5px;
    }

    .bar-icon{
        font-size: 30px;
    }
 
    .brand{
        font-size:20px;
    }
}

  /* Search Box styles */
.search-box{
    border: solid 1px var(--primary-purple);
    margin-top: 20px;
    padding: 40px;
    display:flex;
    justify-content: center;
    box-shadow:1px 2px 3px var(--primary-purple);
}

.search-box select{
    padding: 10px;
}

.search-box input{
    padding: 10px;
}

.search-box button{
    padding: 10px;
    background-color: var(--text-white);
    color: var(--bg-black);
}

.search-box button:hover{
    background-color: var(--bg-black);
    color: var(--text-white);
    box-shadow: 1px 2px 3px var(--text-white);
}

/* search box for smrtphones */
@media screen and (max-width: 460px){
    .search-box input, .search-box button, .search-box select{
        min-width: 300px;
        margin-top: 5px;
    }    

}

/* ########################################### */
/*           Search Section with Banner        */
/* ########################################### */

.search-section {
    margin: 20px 0;
    padding: 0 20px;
    background-color: var(--bg-gray-light);
}

.banner-container {
    text-align: center;
    margin-bottom: 20px;
}

.search-banner {
    width: 80%;
    max-height: 250px;
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--shadow-purple);
    transition: transform var(--transition-medium);
}

.search-banner:hover {
    transform: scale(1.02);
}

.search-form {
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
}

.search-container {
    /* background: var(--gradient-dark); */
    /* border: 1px solid var(--primary-purple); */
    border-radius: 15px;
    /* padding: 25px; */
    box-shadow: 0 4px 15px var(--shadow-purple-light);
    transition: box-shadow var(--transition-medium);
    max-width: 1000px;
    margin-left: 100px;
}

.search-container:hover {
    box-shadow: 0 6px 20px rgba(82, 5, 123, 0.4); /* This specific color is not in variables, keeping as is */
}

.search-input-group {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-wrap: wrap;
}

.search-select {
    padding: 12px 15px;
    background-color: #2a2a2a; /* This specific color is not in variables, keeping as is */
    border: 1px solid var(--primary-purple);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 12px;
    min-width: 100px;
    transition: border-color var(--transition-medium);
}

.search-select:focus {
    outline: none;
    border-color: var(--primary-purple-light);
    box-shadow: 0 0 0 2px rgba(137, 44, 220, 0.2); /* This specific color is not in variables, keeping as is */
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    background-color: #2a2a2a; /* This specific color is not in variables, keeping as is */
    border: 1px solid var(--primary-purple);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 14px;
    transition: all var(--transition-medium);
    min-width: 200px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-purple-light);
    box-shadow: 0 0 0 2px rgba(137, 44, 220, 0.2); /* This specific color is not in variables, keeping as is */
    background-color: #333; /* This specific color is not in variables, keeping as is */
}

.search-input::placeholder {
    color: #aaa; /* This specific color is not in variables, keeping as is */
}

.search-button {
    display: flex;
    align-items: center;
    /* gap: 8px; */
    padding: 12px 14px;
    background: var(--gradient-purple);
    border: none;
    border-radius: 8px;
    color: var(--text-white);
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-medium);
    white-space: nowrap;
    width: 40px;
}

.search-button:hover {
    background: linear-gradient(135deg, var(--primary-purple-light), var(--primary-purple));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(82, 5, 123, 0.4); /* This specific color is not in variables, keeping as is */
}

.search-button:active {
    transform: translateY(0);
}

.search-text {
    font-size: 12px;
}

/* Responsive Design for Search Section */
@media screen and (max-width: 768px) {
    .search-section {
        padding: 0 15px;
    }
    
    .search-container {
        padding: 20px;
        margin-left: 0;
        max-width: 100%;
    }
    
    .search-input-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-select,
    .search-input,
    .search-button {
        width: 100%;
    }
    
    .search-banner {
        max-height: 200px;
        object-fit: cover;
    }
}

@media screen and (max-width: 480px) {
    .search-container {
        padding: 15px;
        margin-left: 0;
    }
    
    .search-input-group {
        gap: 10px;
    }
    
    .search-select,
    .search-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Privacy Policy and Terms of Service Styling */
.create-post-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.create-post-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    border: 2px solid  var(--primary-purple);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-purple);
}

.create-post-header h1 {
    font-family: aquire, sans-serif;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.create-post-header p {
    font-size: 2rem;
    color: var(--text-light);
    opacity: 0.9;
}

.create-post-form {
    border: 2px solid  var(--primary-purple);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px var(--shadow-dark);
    text-align: left;
    color: var(--text-white);
}

.form-section h3 {
    font-family: aquire, sans-serif;
    color: var(--primary-purple);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.form-section p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .create-post-container {
        margin: 1rem;
        padding: 0 0.5rem;
    }
    
    .create-post-header {
        padding: 1.5rem;
    }
    
    .create-post-header h1 {
        font-size: 1.5rem;
    }
    
    .create-post-form {
        padding: 1rem;
    }
    
    .form-section h3 {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .create-post-header h1 {
        font-size: 1.2rem;
    }
    
    .create-post-header p {
        font-size: 0.9rem;
    }
    
    .form-section h3 {
        font-size: 1rem;
    }
    
    .form-section p {
        font-size: 0.9rem;
    }
}

/* forum info Styling */
.forum-info{
    padding: 20px;
    background-color: #111314; /* This specific color is not in variables, keeping as is */
}

.chart{
    font-size:20px;
    font-weight:bold;
}
/* Footer Styling */

footer{
    padding: 20px;
    background-color:  var(--primary-purple);
    display: block;
    text-align: center;
}

/* ########################################### */
/*            posts.html                       */
/* ########################################### */

/* posts table's head  */
.table-head{
    display: flex;
}

.table-head div{
    padding: 5px;
    margin: 2px;
    background-color: #2C2C2C; /* This specific color is not in variables, keeping as is */
    font-weight: bold;
}

.table-head .status{
    flex: 5%;
}

.table-head .subjects{
    flex: 70%;
}

.table-head .replies{
    flex: 10%;
}

.table-head .last-reply{
    flex: 15%;
}

/* posts table's body  */

.table-row{
    display: flex;
}

.table-row .status, .table-row .subjects, .table-row .replies, .table-row .last-reply{
    padding: 5px;
    margin: 2px;
    background-color: var(--bg-gray);
}

.table-row .status{
    flex: 5%;
    font-size: 38px;
    text-align: center;
}

.table-row .subjects{
    flex: 70%;
}

.table-row .replies{
    flex: 10%;
}

.table-row .last-reply{
    flex: 15%;
}

/* ########################################### */
/*         Topic Container Responsive          */
/* ########################################### */

/* Tablet Responsive Styles */
@media screen and (max-width: 1024px) and (min-width: 768px) {
    .topic-container {
        margin: 15px;
    }
    
    .topic-container .head {
        padding: 12px;
        font-size: 14px;
    }
    
    .topic-container .body {
        flex-direction: row;
        padding: 15px;
    }
    
    .topic-container .authors {
        flex: 20%;
        padding-right: 15px;
        margin-right: 15px;
    }
    
    .topic-container .content {
        flex: 75%;
    }
    
    .topic-container .authors img {
        width: 80px;
        height: 80px;
    }
    .content img{
        max-width: 500px;
    }
    
    .topic-container .authors .username {
        font-size: 16px;
    }
    
    .topic-container .authors .rank-name {
        font-size: 12px;
    }

}

/* Mobile Responsive Styles - max-width 470px */
@media screen and (max-width: 470px) {
    .topic-container {
        margin: 10px 5px;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .topic-container .head {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
        font-size: 12px;
    }
    
    .topic-container .head .authors {
        flex: none;
        width: 100%;
        text-align: left;
        padding-bottom: 5px;
        margin-bottom: 5px;
        border-bottom: 1px solid var(--border-gray);
    }
    
    .topic-container .head .content {
        flex: none;
        width: 100%;
        padding-left: 0;
        font-size: 11px;
    }
    
    .topic-container .body {
        flex-direction: column;
        padding: 10px 5px;
    }
    
    .topic-container .authors {
        flex: none;
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding-right: 0;
        margin-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--border-gray);
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    
    .topic-container .authors .profile-pic-container {
        position: relative; /* Added for status dot positioning */
        display: inline-block; /* Added for status dot positioning */
        margin-right: 10px;
        border-radius: 50%;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        -ms-border-radius: 50%;
        -o-border-radius: 50%;
}
    
    .topic-container .authors img {
        width: 50px;
        height: 50px;
    }

    .topic-container .authors .username {
        font-size: 14px;
        margin-bottom: 2px;
    }
    
    .topic-container .authors .rank-name {
        font-size: 10px;
    }
    
    .topic-container .authors div:not(.username):not(.rank-name) {
        font-size: 10px;
    }
    
    .topic-container .content {
        flex: none;
        width: 100%;
        padding-left: 0;
    }
    
    .topic-container .content img {
        max-width: 100%;
        height: auto;
    }
    
    /* Adjust reaction buttons for mobile */
    .topic-container .reaction-container,
    .topic-container .reaction-main-button,
    .reaction-buttons-hover {
        font-size: 12px;
    }
    
    .topic-container .button-cont,
    .reaction-buttons-hover{
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .topic-container .button-cont button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Small mobile devices */
@media screen and (max-width: 375px) {
    .topic-container {
        margin: 8px 3px;
    }
    
    .topic-container .head {
        padding: 8px;
    }
    
    .topic-container .body {
        padding: 8px 3px;
    }
    
    .topic-container .authors img {
        width: 45px;
        height: 45px;
    }
    .topic-container .content img {
        max-width: 100%;
        height: auto;
    }
    .topic-container .authors .username {
        font-size: 13px;
    }
    
    .topic-container .authors .rank-name {
        font-size: 9px;
    }
}

/* navigation path*/
.navigate{
    margin-block: 20px;
    font-weight: lighter;
    font-family:aquire;
    font-size: 24px;
}

.navigate a{
    color: var(--text-white);
}

.navigate a:hover{
    color:var(--link-purple);
    font-weight: bolder;
}

/* Pagination */

.pagination{
    padding: 20px;
    font-size: 15px;
}

.pagination a{
    color: var(--text-white);
    margin-inline: 5px;
    padding: 5px 10px;
    border: solid 0.5px var(--text-white);
}

.pagination a:hover{
    opacity: 0.5;
}

.note{
    background-color:#111314; /* This specific color is not in variables, keeping as is */
    padding: 20px;
    display: block;
}

.note span{
    font-size: 20px;
    margin-block: 5px;
}

/* ########################################### */
/*         Floating Create Post Button        */
/* ########################################### */

.floating-create-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    position: fixed;
    /* width: 20px; */
    /* height: 20px; */
    background-color: rgba(82, 5, 123, 0.34); /* This specific color is not in variables, keeping as is */
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    line-height: 40px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3); /* This specific color is not in variables, keeping as is */
    transition: background-color var(--transition-medium);
}

.create-post-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(5, 105, 123, 0.43), rgb(0 51 246 / 53%)); /* This specific color is not in variables, keeping as is */
    color: var(--text-white);
    border: none;
    border-radius: 50px;
    font-family: aquire, sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 15px var(--shadow-purple); /* This specific color is not in variables, keeping as is */
    transition: all var(--transition-medium);
    cursor: pointer;
}

.create-post-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(82, 5, 123, 0.6); /* This specific color is not in variables, keeping as is */
    background: var(--gradient-purple);
}

.create-post-btn i {
    font-size: 20px;
}

/* .btn-text {
    font-size: 12px;
} */

/* Responsive floating button */
@media screen and (max-width: 768px) {
    .floating-create-btn {
        bottom: 20px;
        right: 20px;
    }
    
    .create-post-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .create-post-btn i {
        font-size: 18px;
    }
    
    .btn-text {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .floating-create-btn {
        bottom: 15px;
        right: 15px;
        width: 40px;
    }
    
    .create-post-btn {
        padding: 10px 14px;
        font-size: 12px;
        border-radius: 25px;
    }
    
    .create-post-btn i {
        font-size: 16px;
    }
    
    .btn-text {
        display: none;
    }
}

/* ########################################### */
/*         Responsive Design                   */
/* ########################################### */

@media screen and (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 10px;
    }
    
    .posts-table {
        font-size: 14px;
    }
    
    .table-row .status {
        font-size: 24px;
    }
    
    .navigate {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .posts-table {
        font-size: 12px;
    }
    
    .table-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .table-row .status,
    .table-row .subjects,
    .table-row .replies,
    .table-row .last-reply {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .navigate {
        font-size: 16px;
    }
}

/* Pinned icon styling */
.pinned-icon {
    color: #ff0000; /* This specific color is not in variables, keeping as is */
    margin-left: 5px;
}


/* ########################################### */
/*            All Users Page Styles            */
/* ########################################### */

.users-table {
    margin: 20px 0;
    background: var(--gradient-dark);
    border: 1px solid var(--primary-purple);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-purple-light);
}

.users-table .table-head {
    display: grid;
    grid-template-columns: 15% 25% 20% 25% 15%;
    background: var(--gradient-purple);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.users-table .table-head div {
    padding: 15px;
    text-align: center;
    color: var(--text-white);
    font-size: 14px;
}

.users-table .table-row {
    display: grid;
    grid-template-columns: 15% 25% 20% 25% 15%;
    border-bottom: 1px solid var(--border-gray);
}

.users-table .table-row:hover {
    background-color: #2a2a2a; /* This specific color is not in variables, keeping as is */
}

.users-table .table-row:last-child {
    border-bottom: none;
}

.users-table .table-row div {
    padding: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.users-table .rank-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table .username a {
    color: var(--primary-purple-light);
    font-weight: bold;
    text-decoration: none;
}

.users-table .username a:hover {
    color: var(--primary-purple);
    text-decoration: underline;
}

.users-table .no-users {
    padding: 40px;
    text-align: center;
    color: var(--text-dark);
    font-size: 18px;
}

/* ########################################### */
/*            Action Buttons                   */
/* ########################################### */

.search-action-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

@media screen and (max-width: 1200px) {
    .search-action-container {
        grid-template-columns: 1fr;
        justify-content: center;
        align-items: center;
    }
}

.action-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
    margin-top: 25px;
    font-size: small;
}

@media screen and (max-width: 1200px) {
    .search-action-container {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .search-action-container {
        gap: 15px;
    }
    
    .action-buttons {
        gap: 15px;
    }
}

@media screen and (max-width: 480px) {
    .search-action-container {
        gap: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .action-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

.btn-massive {
    padding: 10px 30px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition-medium);
    box-shadow: 0 4px 15px var(--shadow-purple);
}

.btn-primary {
    background: var(--gradient-purple);
    color: var(--text-white);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-purple-light), var(--primary-purple));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 5, 123, 0.4); /* This specific color is not in variables, keeping as is */
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057); /* These specific colors are not in variables, keeping as is */
    color: var(--text-white);
    border: none;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #495057, #6c757d); /* These specific colors are not in variables, keeping as is */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4); /* This specific color is not in variables, keeping as is */
}

.head{
    display: flex;
    background-color: #2C2C2C; /* This specific color is not in variables, keeping as is */
    padding: 5px;
    font-weight: bold;
    font-size: 15px;
}

.head .content{
    padding-left: 40px;
}


.authors{
    flex: 15%;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
}

.content{
    flex: 80%;

}
.content img{
    max-width: 900px;

}


.body{
    display: flex;
    background-color: var(--bg-gray);
    padding: 10px;
    margin-top: 5px;
}


.body .authors .username{
    font-size: 20px;
    font-family: 'Titillium Web', sans-serif;

}

.body .authors{
    display: flex;
    flex-direction: column;
    padding-right: 20px;
    align-items: center;
    margin-right: 20px;
}

.sip{
    border-right: solid 0.1px var(--primary-purple-light);
    margin-right: 50px;
    /* margin-left: 5px; */
}

/* Container for profile pic and status dot */
.body .authors .profile-pic-container {
    position: relative;
    display: inline-block;
}
.body .authors .profile-pic-container img{
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}


/* Reaction Button Hover Styles */
.reaction-container {
    position: relative;
    display: inline-block;
}

.button-cont{
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-right: 20px;
}


.reaction-main-button  button,
.reaction-container button{
    background: linear-gradient(135deg, #1baef2 0%, #71c1ff 100%); /* These specific colors are not in variables, keeping as is */
    border: none;
    border-radius: 25px;
    padding: 8px 16px;
    color: var(--text-white);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* This specific color is not in variables, keeping as is */
}

.reaction-main-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15); /* This specific color is not in variables, keeping as is */
}

.reaction-buttons-hover {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-white);
    border-radius: 25px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15); /* This specific color is not in variables, keeping as is */
    display: none;
    flex-direction: row;
    gap: 5px;
    z-index: 1000;
    animation: fadeInUp var(--transition-medium);
    white-space: nowrap;
}

.reaction-container:hover .reaction-buttons-hover {
    display: flex;
}

.reaction-button-hover {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.reaction-button-hover:hover {
    transform: scale(1.2);
    background: var(--text-white);
}

.reaction-button-hover.active {
    transform: scale(1.1);
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4); /* This specific color is not in variables, keeping as is */
}

.reaction-button-hover.active:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); /* These specific colors are not in variables, keeping as is */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .reaction-buttons-hover {
        position: fixed;
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        flex-direction: row;
        flex-wrap: wrap;
        max-width: 300px;
        justify-content: center;
    }
}

/* start rank related  */
/* Rank badge base styles */
.rank-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35em 1.65em;
    font-size: 0.80em;
    font-weight: 700;
    line-height: 1;
    color: var(--text-white);
    text-align: center;
    white-space: nowrap;
    flex-wrap: wrap;
    gap: 8px;
    vertical-align: baseline;
    border-radius: 50rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2); /* This specific color is not in variables, keeping as is */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* This specific color is not in variables, keeping as is */
}

.rank-name {
    font-weight: bold;
    margin: 5px 0;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Profile Stats */
.profile-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}
.stat {
    text-align: center;
}
.stat-value {
    display: block;
    font-weight: bold;
    font-size: 1.2rem;
}
.stat-label {
    font-size: 0.8rem;
    opacity: 0.7;
    text-transform: uppercase;
}

.rank-details {
    flex-grow: 1;
}
.rank-details h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}
.rank-details p {
    margin: 0;
    font-size: 0.8rem;
    color: #6c757d; /* This specific color is not in variables, keeping as is */
}
.points-required {
    font-size: 0.7rem;
    font-weight: bold;
}


/* Hover effects */
.rank-badge:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* end rank related  */

/* comment section */
.comment-area{
    margin-bottom:50px;
}

.comment-area textarea{
    width: 100%;
    min-height: 100px;
    padding: 10px;
    margin-block: 10px;
}

.comment-area input{
    float: right;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
}

.comment-area input:hover{
    border: solid 1px var(--bg-black);
}

/* Reactions Section */
.reactions-section {
    margin: 20px 0;
    /* padding: 15px; */
    border-radius: 5px;
    display: flex;
    border-bottom: solid 2px var(--primary-purple-light);
    justify-content: space-between;
}

.reaction-count {
    display: inline-block;
    margin-right: 15px;
    padding: 0px;
    background-color: var(--bg-gray);
    border-radius: 15px;
    font-size: 14px;
}

/* for reply & quote */
blockquote {
    background-color: #292727;
    border-left: 4px solid var(--primary-purple-light) ;
    margin: 15px 0;
    padding: 10px 20px;
    font-style: italic;
    color: var(--text-white);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
}

blockquote b {
    font-style: normal;
    color: #8ea5bc; 
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

blockquote:hover {
    background: #605b5b;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    color: var(--bg-dark);
}
/* end reply & quote

/* Sidebar Blue Square */
/* Enhanced Sidebar Styles - Modern Glassmorphism Design */
.sidebar.blue-square {
    background: linear-gradient(135deg, 
        var(--hover-purple) 0%, 
        var(--bg-trans-sidebar) 100%);
    border: 1px solid var(--border-transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 17px;
    border-radius: 15px;
    color: var(--text-light);
    font-family: 'Titillium Web', sans-serif;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 22px;
    box-shadow: 
        0 8px 32px rgba(82, 5, 123, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all var(--transition-medium);
    margin-top: 0;
}

.sidebar.blue-square:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px var(--shadow-purple),
        inset 0 1px 0 var(--shadow-dark);
    border-color: var(--border-purple-light);
}

/* Enhanced Section Headers */
.sidebar.blue-square h3 {
    color: var(--link-purple);
    font-family: aquire, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgb(56 53 245 / 30%);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.sidebar.blue-square h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-purple-light));
}

/* Enhanced Discord Widget */
.discord-widget {
    background: linear-gradient(135deg, 
        rgba(114, 137, 218, 0.1) 0%, /* This specific color is not in variables, keeping as is */
        rgba(114, 137, 218, 0.05) 100%); /* This specific color is not in variables, keeping as is */
    border: 1px solid rgba(114, 137, 218, 0.3); /* This specific color is not in variables, keeping as is */
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-medium);
}

.discord-widget:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(114, 137, 218, 0.2); /* This specific color is not in variables, keeping as is */
}

.discord-header {
    background: linear-gradient(90deg, var(--link-purple), var(--primary-purple));
    color: var(--text-white);
    font-family: aquire, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.discord-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2); /* This specific color is not in variables, keeping as is */
    transition: all var(--transition-medium);
}

.discord-content:hover {
    background: rgba(0, 0, 0, 0.3); /* This specific color is not in variables, keeping as is */
}

.discord-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.discord-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.discord-logo:hover {
    transform: scale(1.1);
}

.discord-text {
    display: flex;
    flex-direction: column;
}

.discord-server-name {
    font-weight: 700;
    color: var(--text-white);
    font-size: 0.9rem;
}

.discord-chat-now {
    color: #7289da; /* This specific color is not in variables, keeping as is */
    font-weight: 600;
    font-size: 0.85rem;
    transition: color var(--transition-medium);
}

.discord-chat-now:hover {
    color: var(--text-white);
}

/* Enhanced Members Online */
.members-online {
    background: linear-gradient(135deg, 
        rgba(46, 213, 115, 0.1) 0%, /* This specific color is not in variables, keeping as is */
        rgba(46, 213, 115, 0.05) 100%); /* This specific color is not in variables, keeping as is */
    border: 1px solid rgba(46, 213, 115, 0.3); /* This specific color is not in variables, keeping as is */
    border-radius: 12px;
    padding: 15px;
}

.members-online h3 {
    color: var(--status-online);
    margin-bottom: 0.5rem;
}

.members-online h4 {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.members-online ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.members-online ul li {
    position: relative;
}

.members-online .profile-pic-container {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform var(--transition-medium);
    cursor: pointer;
}

.members-online .profile-pic-container:hover {
    transform: scale(1.1);
    z-index: 10;
}

.members-online .profile-pic-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Enhanced Latest Posts */
.latest-posts {
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.1) 0%, /* This specific color is not in variables, keeping as is */
        rgba(255, 193, 7, 0.05) 100%); /* This specific color is not in variables, keeping as is */
    border: 1px solid rgba(255, 193, 7, 0.3); /* This specific color is not in variables, keeping as is */
    border-radius: 12px;
    padding: 15px;
}

.latest-posts h3 {
    color: #ffc107; /* This specific color is not in variables, keeping as is */
    margin-bottom: 1rem;
}

.thread-latest-posts h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.thread-latest-posts .profile-pic-container-h {
    border-radius: 50%;
    width: 30px;
    height: 30px;
    overflow: hidden;
}

.thread-latest-posts .profile-pic-container-h img {
    width: 100%;
    height: 100%;

}

.thread-latest-posts a {
    color: var(--primary-purple-light);
    font-size: 0.95rem;
    transition: color var(--transition-medium);
}

.thread-latest-posts a:hover {
    color: var(--text-white);
}


/* Birthday Styles for Forums */
.todays-birthdays {
    background: linear-gradient(135deg, #ff9a9d22 0%, #fad0c424 100%);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid #ff9a9d5e;
}

.todays-birthdays h3 {
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.4em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.birthday-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.birthday-user {
    background: #9afcff71;
    border-radius: 8px;
    padding: 10px;
    transition: transform 0.2s;
}

.birthday-user:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.birthday-user a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
}

.birthday-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.birthday-info {
    display: flex;
    flex-direction: column;
}

.birthday-name {
    font-weight: bold;
    color: #000000;
}

.birthday-age {
    font-size: 0.9em;
    color: #4a4949;
}

.birthday-wishes {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    /* background: rgba(255,255,255,0.8); */
    border-radius: 5px;
}

.birthday-wishes p {
    margin: 0;
    color: #33a0d6;
    font-weight: bold;
}

/* Enhanced Forum Statistics */
.forum-statistics {
    background: linear-gradient(135deg, 
        rgba(255, 107, 107, 0.1) 0%, /* This specific color is not in variables, keeping as is */
        rgba(255, 107, 107, 0.05) 100%); /* This specific color is not in variables, keeping as is */
    border: 1px solid rgba(255, 107, 107, 0.3); /* This specific color is not in variables, keeping as is */
    border-radius: 12px;
    padding: 15px;
}

.forum-statistics h3 {
    color: #ff6b6b; /* This specific color is not in variables, keeping as is */
    margin-bottom: 1rem;
}

.forum-statistics ul {
    list-style: none;
    padding: 0;
}

.forum-statistics ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2); /* This specific color is not in variables, keeping as is */
    border-radius: 6px;
    font-size: 0.9rem;
}

.forum-statistics ul li i {
    color: #ff6b6b; /* This specific color is not in variables, keeping as is */
    margin-right: 0.5rem;
}

/* YouTube Widget Styles */
.youtube-widget {
    background: linear-gradient(135deg, 
        rgba(255, 0, 0, 0.1) 0%, /* This specific color is not in variables, keeping as is */
        rgba(255, 0, 0, 0.05) 100%); /* This specific color is not in variables, keeping as is */
    border: 1px solid rgba(255, 0, 0, 0.3); /* This specific color is not in variables, keeping as is */
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-medium);
}

.youtube-widget:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.2); /* This specific color is not in variables, keeping as is */
}

.youtube-header {
    background: linear-gradient(90deg, #ff0000, #cc0000); /* These specific colors are not in variables, keeping as is */
    color: var(--text-white);
    font-family: aquire, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.youtube-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2); /* This specific color is not in variables, keeping as is */
    transition: all var(--transition-medium);
}

.youtube-content:hover {
    background: rgba(0, 0, 0, 0.3); /* This specific color is not in variables, keeping as is */
}

.youtube-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.youtube-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.youtube-logo:hover {
    transform: scale(1.1);
}

.youtube-text {
    display: flex;
    flex-direction: column;
}

.youtube-channel-name {
    font-weight: 700;
    color: var(--text-white);
    font-size: 0.9rem;
}

.youtube-subscribers {
    color: #ff4444; /* This specific color is not in variables, keeping as is */
    font-size: 0.8rem;
    font-weight: 500;
}

.youtube-subscribe-btn {
    background: linear-gradient(135deg, #ff0000, #cc0000); /* These specific colors are not in variables, keeping as is */
    color: var(--text-white);
    padding: 8px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-medium);
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3); /* This specific color is not in variables, keeping as is */
}

.youtube-subscribe-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4); /* This specific color is not in variables, keeping as is */
    background: linear-gradient(135deg, #ff3333, #ff0000); /* These specific colors are not in variables, keeping as is */
}

/* TikTok Widget Styles */
.tiktok-widget {
    background: linear-gradient(135deg, 
        rgba(0, 242, 254, 0.1) 0%, /* This specific color is not in variables, keeping as is */
        rgba(255, 0, 80, 0.1) 100%); /* These specific colors are not in variables, keeping as is */
    border: 1px solid rgba(0, 242, 254, 0.3); /* This specific color is not in variables, keeping as is */
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-medium);
}

.tiktok-widget:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.2); /* This specific color is not in variables, keeping as is */
}

.tiktok-header {
    background: linear-gradient(90deg, #00f2fe, #ff0050); /* These specific colors are not in variables, keeping as is */
    color: var(--text-white);
    font-family: aquire, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tiktok-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2); /* This specific color is not in variables, keeping as is */
    transition: all var(--transition-medium);
}

.tiktok-content:hover {
    background: rgba(0, 0, 0, 0.3); /* This specific color is not in variables, keeping as is */
}

.tiktok-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tiktok-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.tiktok-logo:hover {
    transform: scale(1.1);
}

.tiktok-text {
    display: flex;
    flex-direction: column;
}

.tiktok-username {
    font-weight: 700;
    color: var(--text-white);
    font-size: 0.9rem;
}

.tiktok-followers {
    color: #00f2fe; /* This specific color is not in variables, keeping as is */
    font-size: 0.8rem;
    font-weight: 500;
}

.tiktok-follow-btn {
    background: linear-gradient(135deg, #00f2fe, #ff0050); /* These specific colors are not in variables, keeping as is */
    color: var(--text-white);
    padding: 8px 8px;
    border-radius: 20px;
    font-size: 0.80rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-medium);
    box-shadow: 0 2px 8px rgba(0, 242, 254, 0.3); /* This specific color is not in variables, keeping as is */
}

.tiktok-follow-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.4); /* This specific color is not in variables, keeping as is */
    background: linear-gradient(135deg, #33f5ff, #ff3370); /* These specific colors are not in variables, keeping as is */
}

/* CS Server Widget in Forums Container */
.container.forums-container .left-col {
    grid-column: 1; /* Span across both columns */
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .sidebar.blue-square {
        width: 280px;
    }
}

@media screen and (max-width: 968px) {
    .sidebar.blue-square {
        width: 100%;
        margin: 1rem 0;
    }
    
    .left-col #cs-server-widget {
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .sidebar.blue-square {
        padding: 20px;
        gap: 20px;
    }
    
    .sidebar.blue-square h3 {
        font-size: 1.1rem;
    }
    
    .members-online ul {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .sidebar.blue-square {
        padding: 15px;
        gap: 15px;
    }
    
    .discord-header,
    .sidebar.blue-square h3 {
        font-size: 1rem;
    }
}

/* Scroll animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar.blue-square > * {
    animation: slideInUp 0.5s ease forwards;
}

.sidebar.blue-square > *:nth-child(1) { animation-delay: 0.1s; }
.sidebar.blue-square > *:nth-child(2) { animation-delay: 0.2s; }
.sidebar.blue-square > *:nth-child(3) { animation-delay: 0.3s; }
.sidebar.blue-square > *:nth-child(4) { animation-delay: 0.4s; }
.sidebar.blue-square > *:nth-child(5) { animation-delay: 0.5s; }


/* Scroll to top and bottom buttons */
#scroll-to-top,
#scroll-to-bottom {
    position: fixed;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgb(0 51 246 / 53%); /* This specific color is not in variables, keeping as is */
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3); /* This specific color is not in variables, keeping as is */
    transition: background-color var(--transition-medium);
    
    z-index: 1000;
}

#scroll-to-top {
    bottom: 70px;
}

#scroll-to-bottom {
    bottom: 20px;
}

#scroll-to-top:hover,
#scroll-to-bottom:hover {
    background-color: var(--primary-purple-light);
}

/* Message Alerts Styles */
#messages-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

#messages-container:has(.alert) {
    pointer-events: auto;
}

.alert {
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* This specific color is not in variables, keeping as is */
    animation: slideInRight 0.3s ease, fadeOut 0.5s ease 6.5s forwards;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.alert.hide {
    display: none;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.alert-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    color: inherit;
}

.alert-close:hover {
    opacity: 1;
}

/* Alert type styles */
.alert-success {
    background-color: rgba(40, 167, 69, 0.9); /* This specific color is not in variables, keeping as is */
    color: var(--text-white);
    border-color: #28a745; /* This specific color is not in variables, keeping as is */
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.9); /* This specific color is not in variables, keeping as is */
    color: var(--text-white);
    border-color: var(--notification-error);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.9); /* This specific color is not in variables, keeping as is */
    color: #212529; /* This specific color is not in variables, keeping as is */
    border-color: #ffc107; /* This specific color is not in variables, keeping as is */
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.9); /* This specific color is not in variables, keeping as is */
    color: var(--text-white);
    border-color: #17a2b8; /* This specific color is not in variables, keeping as is */
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Responsive styles for messages */
@media screen and (max-width: 768px) {
    #messages-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .alert {
        margin-bottom: 8px;
        padding: 12px 15px;
    }
    
    .alert-content {
        gap: 10px;
    }
    
    .alert-icon {
        font-size: 18px;
    }
    
    .alert-message {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .alert {
        padding: 10px 12px;
    }
    
    .alert-icon {
        font-size: 16px;
    }
    
    .alert-message {
        font-size: 12px;
    }
}

/* Footer with ranks badges */
.ranks-footer {
    background-color: var(--bg-dark);
    border: var(--primary-purple);
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 30px;
    /* color: #a0d8f7; */ /* This specific color is not in variables, keeping as is */
    font-family: 'Titillium Web', sans-serif;
}

.ranks-footer h4 {
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--primary-purple);
    padding-bottom: 5px;
}

.ranks-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.ranks-badges .badge {
    padding: 5px 12px;
    font-size: 0.85rem;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 0 5px rgba(79, 195, 247, 0.7); /* This specific color is not in variables, keeping as is */
    cursor: default;
    transition: all var(--transition-medium);
}

.ranks-badges .badge:hover {
    box-shadow: 0 0 10px rgba(79, 195, 247, 1); /* This specific color is not in variables, keeping as is */
}

.users-list .username{
    font-size: 15px;
    font-family: 'Titillium Web', sans-serif;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .container.forums-container {
        display: flex;
        flex-direction: column;
        padding: 10px;
        margin: 10px;
    }

    .subforum.main-content {
        width: 100%;
        margin-bottom: 20px;
    }

    .ranks-footer {
        width: 100%;
        padding: 15px;
        border-radius: 8px;
    }

    .ranks-badges {
        justify-content: center;
    }
}

@media screen and (min-width: 769px) {
    .container.forums-container {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 20px;
        align-items: start;
    }

    .subforum.main-content {
        flex: 1 1 auto;
    }

    .ranks-footer {
        margin-top: 40px;
    }
}

/* Container for reaction count and pointer */
.reaction-counts-container {
    position: relative;
    cursor: pointer;
    display: flex;
    /* align-items: center; */
    /* gap: 10px; */
}

/* Reaction count text styling */
.reaction-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background-color: var(--bg-gray);
    border-radius: 15px;
    font-size: 14px;
    color: var(--text-white);
    user-select: none;
}

/* Reaction buttons container */
.reaction-container {
    position: relative;
    display: inline-block;
}

.reaction-main-button, .reaction-option {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 18px;
    margin: 0 2px;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.2s;
    color: var(--text-white);
}

.reaction-option.active {
    background-color: var(--accent-pink);
    box-shadow: 0 0 10px rgba(255, 0, 66, 0.5); /* This specific color is not in variables, keeping as is */
}

/* Reaction dropdown */
.reaction-dropdown {
    position: absolute;
    left: 40px;
    top: 0;
    background: var(--bg-gray-light);
    border: 1px solid var(--primary-purple);
    padding: 5px 8px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(82, 5, 123, 0.7); /* This specific color is not in variables, keeping as is */
    z-index: 10;
    display: none;
}

/* Buttons REACT, QUOTE, REPLY aligned right */
.comment .comment-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 10px;
}

.comment .comment-buttons button {
    background-color: var(--bg-gray);
    color: #a0d8f7; /* This specific color is not in variables, keeping as is */
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color var(--transition-medium);
}

.comment .comment-buttons button:hover {
    background-color: var(--primary-purple);
    color: var(--text-white);
}

/* CKEditor Custom Styles */
.ck-editor__editable {
    min-height: 400px;
    max-height: 600px;
    font-family: 'Titillium Web', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--bg-gray-light);
    border: 1px solid var(--primary-purple);
    border-radius: 5px;
    padding: 12px;
}

.ck.ck-editor {
    border: 1px solid var(--primary-purple);
    border-radius: 5px;
    box-shadow: 0 2px 10px var(--shadow-purple);
}

.ck.ck-toolbar {
    background: linear-gradient(to bottom, #2a2a2a, var(--bg-gray-light)); /* This specific color is not in variables, keeping as is */
    border-bottom: 1px solid var(--primary-purple);
    padding: 8px;
}

.ck.ck-toolbar .ck-button {
    color: var(--text-light);
    background: transparent;
    border: none;
    padding: 6px 8px;
    margin: 0 2px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.ck.ck-toolbar .ck-button:hover {
    background-color: var(--primary-purple);
    color: var(--text-white);
}

.ck.ck-toolbar .ck-button.ck-on {
    background-color: var(--primary-purple-light);
    color: var(--text-white);
}

.ck.ck-dropdown .ck-dropdown__panel {
    background: var(--bg-gray-light);
    border: 1px solid var(--primary-purple);
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(82, 5, 123, 0.4); /* This specific color is not in variables, keeping as is */
}

.ck.ck-list .ck-list__item .ck-button {
    color: var(--text-light);
    padding: 8px 12px;
}

.ck.ck-list .ck-list__item .ck-button:hover {
    background-color: var(--primary-purple);
}

/* Custom styles for CKEditor content */
.ck-content .highlighted-text {
    background-color: var(--primary-purple);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
    color: var(--text-white);
}

.ck-content .large-quote {
    font-size: 1.2em;
    font-style: italic;
    border-left: 4px solid var(--primary-purple);
    padding-left: 20px;
    margin: 15px 0;
    color: var(--text-light);
}

.ck-content .code-block {
    background-color: var(--bg-gray);
    border: 1px solid var(--primary-purple);
    border-radius: 4px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--text-light);
    overflow-x: auto;
}

/* Responsive CKEditor */
@media (max-width: 768px) {
    .ck.ck-toolbar {
        flex-wrap: wrap;
    }
    
    .ck.ck-toolbar .ck-toolbar__items {
        flex-wrap: wrap;
    }
}

/* Custom link styling in CKEditor */
.ck-content a {
    color: var(--primary-purple-light);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.ck-content a:hover {
    border-bottom-color: var(--primary-purple-light);
}

/* Custom image styling in CKEditor */
.ck-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(82, 5, 123, 0.3); /* This specific color is not in variables, keeping as is */
}

.ck-content img.image-style-side {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
    max-width: 50%;
}

.ck-content img.image-style-full {
    display: block;
    margin: 10px auto;
}

/* Custom color palette for CKEditor */
.ck.ck-color-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    padding: 8px;
}

.ck.ck-color-grid .ck-color-grid__tile {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.ck.ck-color-grid .ck-color-grid__tile:hover {
    transform: scale(1.1);
}

/* Enhanced CKEditor width and styling for create_post.html */
.create-post-form .django-ckeditor-widget {
    width: 100% !important;
    max-width: none !important;
}

.create-post-form .ck.ck-editor {
    width: 100% !important;
    max-width: none !important;
    border: 1px solid var(--primary-purple);
    border-radius: 8px;
    overflow: hidden;
}

.create-post-form .ck-editor__editable {
    min-height: 600px !important;
    max-height: 800px !important;
    width: 100% !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    padding: 20px !important;
}

.create-post-form .ck-editor__editable.ck-focused {
    border-color: var(--primary-purple-light) !important;
    box-shadow: 0 0 0 2px rgba(137, 44, 220, 0.2) !important; /* This specific color is not in variables, keeping as is */
}

/* Ultra-wide post content CKEditor */
.form-section-big .django-ckeditor-widget {
    width: 100% !important;
    max-width: none !important;
}

.form-section-big .ck.ck-editor {
    width: 100% !important;
    max-width: none !important;
}

.form-section-big .ck-editor__editable {
    min-height: 650px !important;
    max-height: 900px !important;
    width: 100% !important;
    font-size: 17px !important;
    line-height: 1.7 !important;
}

/* Responsive CKEditor width for different screen sizes */
@media (min-width: 1400px) {
    .create-post-form .ck-editor__editable {
        min-height: 700px !important;
    }
}

@media (max-width: 768px) {
    .create-post-form .ck-editor__editable {
        min-height: 400px !important;
        max-height: 600px !important;
        font-size: 14px !important;
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .create-post-form .ck-editor__editable {
        min-height: 300px !important;
        max-height: 500px !important;
        font-size: 13px !important;
        padding: 10px !important;
    }
}

/* Enhanced CKEditor toolbar styling for create post */
.create-post-form .ck.ck-toolbar {
    background: linear-gradient(135deg, #2a2a2a, var(--bg-gray-light)); /* This specific color is not in variables, keeping as is */
    border-bottom: 2px solid var(--primary-purple);
    padding: 10px;
}

.create-post-form .ck.ck-toolbar .ck-button {
    color: var(--text-light);
    margin: 0 3px;
    border-radius: 4px;
}

.create-post-form .ck.ck-toolbar .ck-button:hover {
    background-color: var(--primary-purple);
    color: var(--text-white);
}

/* CKEditor dropdown styling */
.create-post-form .ck.ck-dropdown .ck-dropdown__panel {
    background-color: var(--bg-gray-light);
    border: 1px solid var(--primary-purple);
    border-radius: 5px;
    box-shadow: 0 4px 15px var(--shadow-purple);
}

/* CKEditor color picker styling */
.create-post-form .ck.ck-color-grid {
    background-color: var(--bg-gray-light);
    border: 1px solid var(--primary-purple);
}

/* Enhanced form section for post content */
.form-section-big {
    margin-bottom: 2rem;
    width: 100%;
    max-width: none;
}

.form-section-big .form-section {
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: var(--bg-gray);
    border-radius: 10px;
    border-left: 4px solid var(--primary-purple);
    width: 100%;
    max-width: none;
}

.form-section-big .form-section h3 {
    font-family: aquire, sans-serif;
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* CKEditor focus state enhancement */
.create-post-form .ck.ck-editor.ck-focused {
    border-color: var(--primary-purple-light);
    box-shadow: 0 0 0 3px rgba(137, 44, 220, 0.3); /* This specific color is not in variables, keeping as is */
}


.contact-info {
    background-color: var(--bg-gray);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-purple);
    margin-top: 20px;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 14px;
}

.contact-info strong {
    color: var(--primary-purple-light);
}

/* Enhanced Contact Form Styles */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.form-section label {
    color: var(--primary-purple);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.form-section input[type="email"],
.form-section input[type="text"],
.form-section textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-gray-light);
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 1rem;
    transition: all var(--transition-medium);
    font-family: 'Titillium Web', sans-serif;
}

.form-section input[type="email"]:focus,
.form-section input[type="text"]:focus,
.form-section textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px var(--focus-purple);
    background-color: #222; /* This specific color is not in variables, keeping as is */
}

.form-section textarea {
    min-height: 150px;
    max-height: 400px;
    resize: vertical;
    line-height: 1.5;
}

.form-section textarea::placeholder,
.form-section input::placeholder {
    color: var(--text-dark);
}

.form-section {
    margin-bottom: 1.5rem;
}

.form-section:last-child {
    margin-bottom: 0;
}

/* Enhanced Contact Info Styling */
.contact-info-card {
    background: var(--gradient-dark);
    border: 1px solid var(--primary-purple);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px var(--shadow-purple-light);
}

.contact-info-card h3 {
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-family: aquire, sans-serif;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.contact-info-item i {
    color: var(--primary-purple-light);
    margin-right: 0.75rem;
    font-size: 1.2rem;
    width: 20px;
}

.contact-info-item p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Enhanced Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 2rem;
}

.btn-contact {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-contact-primary {
    background: var(--gradient-purple);
    color: var(--text-white);
}

.btn-contact-primary:hover {
    background: linear-gradient(135deg, var(--primary-purple-light), var(--primary-purple));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(82, 5, 123, 0.4); /* This specific color is not in variables, keeping as is */
}

.btn-contact-secondary {
    background: var(--border-gray);
    color: var(--text-white);
}

.btn-contact-secondary:hover {
    background: var(--border-gray-light);
}

/* Error Messages */
.error-message {
    color: var(--status-offline);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    padding: 0.5rem;
    background-color: rgba(255, 71, 87, 0.1); /* This specific color is not in variables, keeping as is */
    border-radius: 4px;
    border-left: 3px solid var(--status-offline);
}

/* Responsive Design */
@media screen and (max-width: 968px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-info-card {
        order: -1;
    }
}

@media screen and (max-width: 768px) {
    .create-post-container {
        margin: 1rem;
        padding: 0 0.5rem;
    }
    
    .create-post-header {
        padding: 1.5rem;
    }
    
    .create-post-header h1 {
        font-size: 2rem;
    }
    
    .create-post-form {
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-contact {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .create-post-header h1 {
        font-size: 1.5rem;
    }
    
    .create-post-header p {
        font-size: 1rem;
    }
    
    .form-section input[type="email"],
    .form-section input[type="text"],
    .form-section textarea {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-section textarea {
        min-height: 120px;
    }
    
    .contact-info-card {
        padding: 1.5rem;
    }
}

/* Focus states for accessibility */
.form-section input:focus-visible,
.form-section textarea:focus-visible {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

/* Loading state for form submission */
.btn-contact:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success state styling */
.form-success {
    background-color: rgba(46, 213, 115, 0.1); /* This specific color is not in variables, keeping as is */
    border: 1px solid var(--status-online);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: var(--status-online);
}

/* Animation for form elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section {
    animation: fadeInUp 0.3s ease;
}

/* Glowing Username Effect */
.glowing-username {
    position: relative;
    font-weight: bold;
    text-decoration: none;
    color: var(--glow-color);
    text-shadow: 
        0 0 5px var(--glow-color),
        0 0 10px var(--glow-color),
        0 0 15px var(--glow-color),
        0 0 20px var(--glow-color),
        0 0 25px var(--glow-color),
        0 0 30px var(--glow-color);
    animation: glow 2s ease-in-out infinite alternate;
    transition: all var(--transition-medium);
    display: inline-block;
    padding: 2px 4px;
    cursor: pointer;
}

.glowing-username::before {
    content: '';
    position: absolute;
    top: 0;
    left: -2px;
    right: -2px;
    bottom: 0;
    background: var(--glow-color);
    border-radius: 10px;
    filter: blur(8px);
    opacity: 0.7;
    z-index: -1;
    animation: pulse 2s ease-in-out infinite alternate;
}

.glowing-username::after {
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    right: -4px;
    bottom: 0;
    background: var(--glow-color);
    border-radius: 12px;
    filter: blur(15px);
    opacity: 0.4;
    z-index: -2;
    animation: pulse 2s ease-in-out infinite alternate;
}

.glowing-username:hover {
    text-shadow: 
        0 0 10px var(--glow-color),
        0 0 20px var(--glow-color),
        0 0 30px var(--glow-color),
        0 0 40px var(--glow-color),
        0 0 50px var(--glow-color),
        0 0 60px var(--glow-color);
    transform: scale(1.05);
}

.glowing-username:hover::before {
    opacity: 1;
    filter: blur(12px);
}

.glowing-username:hover::after {
    opacity: 0.7;
    filter: blur(20px);
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 5px var(--glow-color),
            0 0 10px var(--glow-color),
            0 0 15px var(--glow-color),
            0 0 20px var(--glow-color),
            0 0 25px var(--glow-color),
            0 0 30px var(--glow-color);
    }
    to {
        text-shadow: 
            0 0 10px var(--glow-color),
            0 0 20px var(--glow-color),
            0 0 30px var(--glow-color),
            0 0 40px var(--glow-color),
            0 0 50px var(--glow-color),
            0 0 60px var(--glow-color);
    }
}

@keyframes pulse {
    from {
        opacity: 0.7;
        filter: blur(8px);
    }
    to {
        opacity: 1;
        filter: blur(12px);
    }
}

/* Enhanced table row hover effect */
.table-row:hover .glowing-username {
    animation-duration: 1s;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .glowing-username {
        font-size: 14px;
    }
    
    .glowing-username::before,
    .glowing-username::after {
        display: none;
    }
    
    .glowing-username:hover {
        transform: scale(1.02);
    }
}
