
/* Community Guidelines Section */
.community-guidelines {
    padding: 2rem 4rem 6rem;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.community-guidelines .separator-line {
    margin: 0 auto 4rem auto;
    align-self: center;
}

.community-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 2;
    overflow: visible;
}

.community-title {
    font-family: 'BankGothic', 'Special Gothic Expanded One', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--color-white);
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    line-height: 1.1;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: fit-content;
    margin: 0 auto 1rem auto;
}



.community-description {
    font-family: 'Oxanium', monospace;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    text-align: center;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Guidelines Box */
.guidelines-box {
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: flex-start;
}


.guidelines-label {
    display: none;
}

.guidelines-text {
    font-family: 'BankGothic', 'Special Gothic Expanded One', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.guidelines-line {
    width: 2px;
    background: linear-gradient(to bottom, var(--color-red), transparent);
    flex: 1;
    min-height: 100px;
}


.guidelines-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}



.guideline-link {
    font-family: 'Oxanium', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.guideline-arrow {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.guideline-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-red), transparent);
    border-radius: 8px 8px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guideline-link:hover {
    background: rgba(255, 0, 0, 0.05);
    border-color: rgba(255, 0, 0, 0.3);
    color: var(--color-white);
    transform: translateX(5px);
    box-shadow: 
        0 4px 16px rgba(255, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.guideline-link:hover::before {
    opacity: 1;
}

.guideline-link:hover .guideline-arrow {
    opacity: 1;
    transform: translateX(2px) translateY(-1px);
}

/* Help Section Content within Community Guidelines */
.help-section-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    text-align: left;
    margin-top: 2rem;
    padding-top: 2rem;
}

.help-title {
    font-family: 'BankGothic', 'Special Gothic Expanded One', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-white);
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    line-height: 1.1;
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.help-title::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    width: 10px;
    height: 10px;
    background: 
        linear-gradient(var(--color-red), var(--color-red)) 0 0/10px 2px,
        linear-gradient(var(--color-red), var(--color-red)) 0 0/2px 10px;
    background-repeat: no-repeat;
}

.help-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--color-red);
    margin-left: 2rem;
}

.help-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 2rem 2rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}



.help-message {
    font-family: 'Oxanium', monospace;
    font-size: 1.3rem;
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
    text-align: left;
    flex: 1;
    margin-right: 2rem;
}

.discord-button {
    font-family: 'Oxanium', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.3);
    padding: 1.2rem 3rem;
    border-radius: 8px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(88, 101, 242, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: inline-block;
    flex-shrink: 0;

}

.discord-button:hover {
    background: rgba(88, 101, 242, 0.25);
    border-color: rgba(88, 101, 242, 0.5);
    transform: translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(88, 101, 242, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: var(--color-white);
}

.discord-button:hover::before {
    opacity: 1;
}

.discord-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(88, 101, 242, 0.6), transparent);
    border-radius: 8px 8px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* FAQ Section Styles */
.faq-section {
    width: 100%;
    margin-bottom: 3rem;
}

.faq-subtitle {
    font-family: 'Oxanium', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-red);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    position: relative;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.faq-question-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-paperclip {
    background: none;
    border: none;
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    flex-shrink: 0;
}

.paperclip-icon {
    width: 1.2rem;
    height: 1.2rem;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.faq-paperclip:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.faq-paperclip:active {
    transform: scale(0.95);
}

.faq-paperclip.copied .paperclip-icon {
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

.faq-item.highlighted {
    background: rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3), 0 4px 20px rgba(255, 0, 0, 0.2);
    animation: highlightPulse 2s ease-out;
}

@keyframes highlightPulse {
    0% {
        background: rgba(255, 0, 0, 0.25);
        border-color: rgba(255, 0, 0, 0.7);
        box-shadow: 0 0 30px rgba(255, 0, 0, 0.5), 0 4px 25px rgba(255, 0, 0, 0.3);
        transform: scale(1.02);
    }
    50% {
        background: rgba(255, 0, 0, 0.2);
        border-color: rgba(255, 0, 0, 0.6);
        box-shadow: 0 0 25px rgba(255, 0, 0, 0.4), 0 4px 22px rgba(255, 0, 0, 0.25);
        transform: scale(1.01);
    }
    100% {
        background: rgba(255, 0, 0, 0.1);
        border-color: rgba(255, 0, 0, 0.3);
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.2), 0 4px 18px rgba(255, 0, 0, 0.1);
        transform: scale(1);
    }
}

.faq-question {
    font-family: 'Oxanium', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.faq-answer {
    font-family: 'Oxanium', monospace;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-light-gray);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
    letter-spacing: 0.2px;
}

/* FAQ Image Container */
.faq-image-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.faq-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Code styling within FAQ */
.faq-answer code {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--color-white);
    font-weight: 600;
    letter-spacing: 0.1px;
    white-space: nowrap;
}

/* Discord link styling within FAQ */
.faq-answer .discord-link {
    color: #5865F2;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.faq-answer .discord-link:hover {
    color: #7289DA;
    text-shadow: 0 0 8px rgba(88, 101, 242, 0.5);
}

.faq-answer .discord-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #5865F2, #7289DA);
    transition: width 0.3s ease;
}

.faq-answer .discord-link:hover::after {
    width: 100%;
}

.faq-link {
    font-family: 'Oxanium', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-red);
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.2);
    padding: 1rem 2rem;
    border-radius: 6px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(255, 0, 0, 0.1);
}

.faq-link:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.2);
    color: var(--color-white);
}

.faq-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.6), transparent);
    border-radius: 6px 6px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-link:hover::before {
    opacity: 1;
}

.discord-button:active {
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .community-guidelines {
        padding: 2rem 3rem 5rem;
    }
    
    .community-guidelines .separator-line {
        margin-bottom: 3rem;
    }
    
    .guidelines-box {
        padding: 1.5rem;
    }
    
    .guideline-link {
        font-size: 1.1rem;
        padding: 0.9rem 1.3rem;
    }
    
    
    .guidelines-label {
        display: none;
    }
    
    .help-section-content {
        margin-top: 2rem;
        padding-top: 2rem;
    }
    
    .help-box {
        padding: 1.8rem 1.5rem;
    }
    
    .faq-item {
        padding: 1.2rem;
    }
    
    .paperclip-icon {
        width: 1rem;
        height: 1rem;
    }
    
    .faq-question {
        font-size: 1rem;
    }
    
    .faq-answer {
        font-size: 0.9rem;
    }
    
    .faq-image {
        max-width: 350px;
    }
    
    .faq-link {
        font-size: 0.9rem;
        padding: 0.9rem 1.5rem;
    }
    
    .help-message {
        font-size: 1.2rem;
    }
    
    .guideline-arrow {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 768px) {
    .community-guidelines {
        padding: 2rem 2rem 4rem;
    }
    
    .community-guidelines .separator-line {
        margin-bottom: 2.5rem;
    }
    
    .guidelines-box {
        padding: 1.3rem;
    }
    
    .guideline-link {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }
    
    .help-section-content {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .help-box {
        padding: 1.5rem 1.2rem;
    }
    
    .faq-item {
        padding: 1rem;
    }
    
    .paperclip-icon {
        width: 0.9rem;
        height: 0.9rem;
    }
    
    .faq-question {
        font-size: 0.95rem;
    }
    
    .faq-answer {
        font-size: 0.85rem;
    }
    
    .faq-image {
        max-width: 300px;
    }
    
    /* Allow code blocks to wrap on mobile */
    .faq-answer code {
        white-space: normal;
    }
    
    /* Center help and FAQ titles on mobile */
    .help-title {
        text-align: center;
        justify-content: center;
    }
    
    .help-title::before,
    .help-title::after {
        display: none;
    }
    
    .faq-subtitle {
        text-align: center;
    }
    
    /* Hide all decorative brackets on mobile */
    .guideline-link::before,
    .guideline-link::after {
        display: none;
    }
    
    .discord-button::before,
    .discord-button::after {
        display: none;
    }
    
    .faq-link::before,
    .faq-link::after {
        display: none;
    }
    
    .faq-link {
        font-size: 0.85rem;
        padding: 0.8rem 1.2rem;
    }
    
    .help-message {
        font-size: 1.1rem;
    }
    
    .discord-button {
        font-size: 1.1rem;
        padding: 1rem 2.5rem;
        border-radius: 6px;
    }
    
}

@media (max-width: 480px) {
    .community-guidelines {
        padding: 1.5rem 1rem 3rem;
    }
    
    .community-guidelines .separator-line {
        margin-bottom: 2rem;
    }
    
    .community-content {
        gap: 2rem;
    }
    
    .help-title::after {
        display: none;
    }
    
    .server-guideline-box {
        padding: 0.7rem 1.2rem;
        min-height: 42px;
    }
    
    .server-guidelines-toggle {
        font-size: 1rem;
        gap: 0.6rem;
    }
    
    .main-guidelines-arrow {
        width: 28px;
        height: 28px;
    }
    
    .guideline-arrow {
        width: 20px;
        height: 20px;
    }
    
    .toggle-arrow {
        width: 28px;
        height: 28px;
    }
    
    .toggle-arrow-icon {
        width: 20px;
        height: 20px;
    }
    
    .toggle-arrow.text-mode {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.6);
    }
    
    .server-guideline-title {
        font-size: 0.95rem;
        letter-spacing: 0.2px;
    }
    
    .main-guidelines-link {
        font-size: 1.1rem;
        padding: 1rem 2.5rem;
        border-radius: 5px;
    }
    
    .help-section-content {
        margin-top: 1.5rem;
        padding-top: 1rem;
        gap: 1.5rem;
    }
    
    .help-box {
        padding: 1.2rem 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .faq-item {
        padding: 0.8rem;
    }
    
    .paperclip-icon {
        width: 0.8rem;
        height: 0.8rem;
    }
    
    .faq-question {
        font-size: 0.9rem;
    }
    
    .faq-answer {
        font-size: 0.8rem;
    }
    
    .faq-image {
        max-width: 250px;
    }
    
    .faq-link {
        font-size: 0.8rem;
        padding: 0.7rem 1rem;
    }
    
    .help-message {
        font-size: 1rem;
        margin-right: 0;
        text-align: center;
    }
    
    .discord-button {
        font-size: 1rem;
        padding: 0.9rem 2rem;
        border-radius: 5px;
        align-self: center;
    }
    
}

@media (max-width: 360px) {
    .community-guidelines {
        padding: 1.5rem 0.5rem 2.5rem;
    }
    
    .community-guidelines .separator-line {
        margin-bottom: 2rem;
    }
    
    .guidelines-box {
        padding: 0.8rem;
    }
    
    .guideline-link {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
    
    .help-section-content {
        margin-top: 1rem;
        padding-top: 1rem;
        gap: 1.2rem;
    }
    
    .help-box {
        padding: 1rem 0.8rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
    }
    
    .faq-item {
        padding: 0.6rem;
    }
    
    .paperclip-icon {
        width: 0.7rem;
        height: 0.7rem;
    }
    
    .faq-question {
        font-size: 0.85rem;
    }
    
    .faq-answer {
        font-size: 0.75rem;
    }
    
    .faq-image {
        max-width: 200px;
    }
    
    .faq-link {
        font-size: 0.75rem;
        padding: 0.6rem 0.8rem;
    }
    
    .help-message {
        font-size: 0.95rem;
        margin-right: 0;
        text-align: center;
    }
    
    .discord-button {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
        border-radius: 4px;
        align-self: center;
    }
    
    .guideline-arrow {
        width: 14px;
        height: 14px;
    }
}
