/* Local fonts (TTF) in repo root: FreeSans*.ttf and FreeMono*.ttf */
@font-face {
    font-family: 'FreeSans';
    src: url('FreeSans.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FreeSans';
    src: url('FreeSansBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FreeSans';
    src: url('FreeSansOblique.ttf') format('truetype');
    font-weight: 400;
    font-style: oblique;
    font-display: swap;
}

@font-face {
    font-family: 'FreeSans';
    src: url('FreeSansBoldOblique.ttf') format('truetype');
    font-weight: 700;
    font-style: oblique;
    font-display: swap;
}

@font-face {
    font-family: 'FreeMono';
    src: url('FreeMono.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FreeMono';
    src: url('FreeMonoBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FreeMono';
    src: url('FreeMonoOblique.ttf') format('truetype');
    font-weight: 400;
    font-style: oblique;
    font-display: swap;
}

@font-face {
    font-family: 'FreeMono';
    src: url('FreeMonoBoldOblique.ttf') format('truetype');
    font-weight: 700;
    font-style: oblique;
    font-display: swap;
}

:root {
    --acreetion-green: #2ecc71;
    --acreetion-body-bg: #121212;
    --acreetion-panel-bg: #1a1a1a;
    --acreetion-box-bg: #222222;
    --acreetion-box-border: #333333;
    --acreetion-text-bright: #e5e5e5;
    --acreetion-text: #b2b2b2;
    --acreetion-code-bg: rgba(46, 204, 113, 0.1);
    --gnome-color: #e06c75;
    --storm-color: #61afef;
    --flasher-color: #f39c12;
    --acreetion-purple: #9b59b6;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

/* removed body opacity to prevent FOUC */

/* Background grid */
#background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: linear-gradient(to right, rgba(46, 204, 113, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(46, 204, 113, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: pan-grid 90s linear infinite;
    opacity: 0.28;
}

@keyframes pan-grid {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: -500px -500px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Header & Announcement Bar */
.announcement-bar {
    background-color: var(--acreetion-panel-bg);
    border-bottom: 1px solid var(--acreetion-box-border);
    padding: 0.5rem 0;
    color: var(--acreetion-text-bright);
    display: flex;
    justify-content: center;
    align-items: center;
}

.announcement-content {
    font-size: 0.95rem;
}

.announcement-bar .separator {
    margin: 0 1.5rem;
    color: var(--acreetion-box-border);
}

.announcement-bar a {
    color: var(--acreetion-green);
    font-weight: bold;
    text-decoration: none;
}

.announcement-bar a:hover {
    text-decoration: underline;
}

.page-header{background-color:rgba(24,26,27,0.85);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:2px solid var(--acreetion-green);border-radius:0 0 16px 16px;position:sticky;top:0;z-index:1000;}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 700;
    color: var(--acreetion-text-bright);
    text-decoration: none;
}

.logo-img {
    height: 45px;
}

.logo-text span {
    color: var(--acreetion-green);
}

.main-nav a {
    color: var(--acreetion-text);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--acreetion-text-bright);
}

/* Layout */
.page-wrapper {
    flex-grow: 1;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.main-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Icons */
.icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    vertical-align: middle;
    display: inline-block;
}

.social-link .icon {
    width: 18px;
    height: 18px;
    margin-right: 0.2rem;
}

/* Boxes */
.content-box {
    background-color: var(--acreetion-box-bg);
    border: 1px solid var(--acreetion-box-border);
    border-radius: 12px;
}

.box-header {
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid var(--acreetion-box-border);
    background-color: #222;
}

.box-header h2,
.box-header h3 {
    font-size: 1.2rem;
    color: var(--acreetion-text-bright);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.box-header .icon {
    width: 20px;
    height: 20px;
    fill: var(--acreetion-green);
}

.box-body {
    padding: 1.5rem;
}

.box-body p {
    color: var(--acreetion-text);
    margin-bottom: 1rem;
}

.box-body a {
    font-weight: 500;
}

.box-body .btn {
    display: inline-block;
    background-color: var(--acreetion-green);
    color: black;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    transition: filter 0.2s;
}

.box-body .btn:hover {
    filter: brightness(1.1);
    text-decoration: none;
}

.styled-list {
    list-style: none;
    padding: 0;
}

.styled-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--acreetion-box-border);
}

.styled-list li:last-child {
    border-bottom: none;
}

.list-item-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--acreetion-text-bright);
}

.list-item-desc {
    display: block;
    font-size: 0.9rem;
    color: var(--acreetion-text);
    margin-bottom: 0.5rem;
}

.list-item-contact {
    font-size: 0.9rem;
    color: var(--acreetion-text);
}

.list-item-contact strong {
    color: var(--acreetion-text-bright);
    font-weight: 500;
}

.resource-list {
    list-style: none;
    padding: 0;
}

.resource-list li {
    margin-bottom: 0.5rem;
}

.resource-list a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--acreetion-text-bright);
    transition: background-color 0.2s;
}

.resource-list a:hover {
    background-color: #3a3a3a;
    text-decoration: none;
}

.resource-list .icon {
    width: 24px;
    height: 24px;
    fill: var(--acreetion-green);
    flex-shrink: 0;
}

.resource-list .resource-info {
    display: flex;
    flex-direction: column;
}

.resource-list .resource-title {
    font-weight: 700;
}

.resource-list .resource-desc {
    font-size: 0.9rem;
    color: var(--acreetion-text);
}

#bug-reports .box-header h2,
#bug-reports .icon {
    color: var(--flasher-color);
    fill: var(--flasher-color);
}

#bug-reports .btn {
    background-color: var(--flasher-color);
}

/* Tabs */
.contact-tabs .tab-header {
    display: flex;
    background-color: #222;
    border-bottom: 1px solid var(--acreetion-box-border);
}

.contact-tabs .tab-link {
    background: none;
    border: none;
    color: var(--acreetion-text);
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-tabs .tab-link.active {
    color: var(--acreetion-text-bright);
    background-color: var(--acreetion-box-bg);
    border-bottom: 2px solid var(--acreetion-green);
}

.contact-tabs .tab-link .icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.contact-tabs .tab-content {
    display: none;
}

.contact-tabs .tab-content.active {
    display: block;
}

/* Form */
.contact-form {
    padding: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--acreetion-text-bright);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: var(--acreetion-panel-bg);
    border: 1px solid var(--acreetion-box-border);
    border-radius: 12px;
    padding: 0.75rem;
    color: var(--acreetion-text-bright);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.visible {
    display: flex;
}

.modal-box {
    position: relative;
    cursor: default;
    background-color: var(--acreetion-box-bg);
    border: 1px solid var(--acreetion-box-border);
    padding: 2rem 3rem;
    max-width: 600px;
    border-radius: 12px;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--gnome-color);
    color: black;
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 700;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    line-height: 40px;
    text-align: center;
}

.modal-box h2 {
    color: var(--acreetion-green);
}

/* Footer */
.page-footer {
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    border-top: 1px solid var(--acreetion-box-border);
    color: #777;
    font-size: 0.9rem;
    background-color: var(--acreetion-panel-bg);
    position: relative;
    z-index: 1;
}

.page-footer p {
    color: #777;
    margin-bottom: 0.5rem;
}

.page-footer a {
    color: var(--acreetion-green);
    text-decoration: none;
}

.page-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .page-wrapper {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .sidebar-column {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem 1rem;
    }

    .main-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .main-nav a {
        margin-left: 0;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .page-wrapper {
        margin: 1rem auto;
        gap: 1rem;
    }
    
    .box-header h2,
    .box-header h3 {
        font-size: 1.1rem;
    }
    
    .box-body {
        padding: 1rem;
    }
    
    .modal-box {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .announcement-bar {
        padding: 0.5rem;
    }
    
    .announcement-content {
        font-size: 0.85rem;
        text-align: center;
    }
    
    .announcement-bar .separator {
        margin: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.5rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .main-nav a {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    
    .page-wrapper {
        padding: 0 0.5rem;
    }
    
    .box-header {
        padding: 0.6rem 1rem;
    }
    
    .box-header h2,
    .box-header h3 {
        font-size: 1rem;
    }
    
    .box-body {
        padding: 0.75rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .modal-box {
        padding: 1rem;
    }
    
    .modal-close-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .announcement-content {
        font-size: 0.8rem;
    }
    
    .announcement-bar .separator {
        display: none;
    }
    
    .contact-tabs .tab-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
    }
}

/* Utility */
.btn {
    display: inline-block;
    background-color: var(--acreetion-green);
    color: black;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
}

.btn.btn-storm {
    background-color: var(--storm-color);
    color: black;
}

.main-nav a.btn-storm {
    color: white;
}

/* ensure contact.js transitions work */
body.fade-out {
    animation: fadeOut 0.45s ease-in-out forwards;
}
::-webkit-scrollbar{width:10px;}::-webkit-scrollbar-track{background:var(--acreetion-body-bg,#121212);}::-webkit-scrollbar-thumb{background:var(--acreetion-box-border,#333);border-radius:10px;}::-webkit-scrollbar-thumb:hover{background:var(--acreetion-green,#2ecc71);}
.btn{transition:all 0.3s ease;}.btn:hover{box-shadow:0 0 15px rgba(46,204,113,0.4);transform:translateY(-2px);}.content-box{transition:transform 0.3s ease,box-shadow 0.3s ease;}.content-box:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(0,0,0,0.5);}
.reveal{opacity:0;transform:translateY(30px);transition:all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);will-change:opacity, transform;}.reveal.active{opacity:1;transform:translateY(0);}

html{scroll-behavior:smooth;}
::selection{background:rgba(46,204,113,0.3);color:var(--acreetion-text-bright,#fff);}
:focus-visible{outline:2px solid var(--acreetion-green,#2ecc71);outline-offset:3px;border-radius:4px;}
a:focus-visible,button:focus-visible{outline:2px solid var(--acreetion-green,#2ecc71);outline-offset:3px;}
.skip-link{position:absolute;top:-40px;left:0;background:var(--acreetion-green,#2ecc71);color:#000;padding:8px 16px;text-decoration:none;font-weight:700;z-index:10000;transition:top 0.3s;border-radius:0 0 8px 0;}
.skip-link:focus{top:0;}
@media (prefers-reduced-motion: reduce) {
  html{scroll-behavior:auto;}
  *,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important;}
}


/* removed pageLoadFade animation to prevent page flash */


a{color:var(--acreetion-green,#2ecc71);text-decoration:none;position:relative;}
a:not(.btn):not(.logo):not(.skip-link):not(.social-link):hover{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:2px;}


#back-to-top{position:fixed;bottom:30px;right:30px;background:var(--acreetion-green,#2ecc71);color:#000;border:none;border-radius:50%;width:48px;height:48px;cursor:pointer;z-index:999;font-size:1.2rem;font-weight:700;opacity:0;visibility:hidden;transition:all 0.3s ease;box-shadow:0 4px 12px rgba(0,0,0,0.3);display:flex;align-items:center;justify-content:center;padding-bottom:4px;}
#back-to-top.visible{opacity:1;visibility:visible;}
#back-to-top:hover{transform:translateY(-3px);box-shadow:0 6px 20px rgba(46,204,113,0.4);}


body{background-color:var(--acreetion-body-bg);color:var(--acreetion-text-bright);background-image:radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);background-size:40px 40px;}


.main-nav a.active,.main-nav a[aria-current="page"]{background-color:var(--acreetion-green,#2ecc71);color:#000;font-weight:700;border-radius:12px;padding:0.5rem 1rem;}

/* Social media icon bar */
.acreetion-social-bar{display:flex;justify-content:center;gap:0.5rem;padding:0.75rem 1rem;flex-wrap:wrap}
.acreetion-social-link{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--acreetion-box-bg,#222);border:1px solid var(--acreetion-box-border,#333);color:var(--acreetion-text,#b2b2b2);text-decoration:none;transition:all 0.2s ease;font-size:1.1rem}
.acreetion-social-link:hover{color:var(--acreetion-green,#2ecc71);border-color:var(--acreetion-green,#2ecc71);transform:translateY(-2px);box-shadow:0 4px 12px rgba(46,204,113,0.2)}
.acreetion-social-link:hover i{transform:scale(1.1)}
.acreetion-social-link i{transition:transform 0.2s ease}
