/* Mobile-specific overrides - inherits from global.css concepts */
@import "/inputs.css";

html {
    --primary-background: #0b0b11;
    --primary-text: #efefff;
    --secondary-background: #121216;
    --secondardy-text: #55dd77;
    --red-background: #431224;
    --red-border: #ee0010aa;
    --darkGreen-background: #1c5735;
    --grey-background: #262830;
    --darkCyan-background: #2f4558;
    --brown-background: #371511;
    --blue-background: #2a3256;
    --blue-border: #5599eeaa;
    font-size: 14px;
    line-height: 1.5;
}

* { box-sizing: border-box; }
img { max-width: 100%; max-height: 100%; }

html, body{
    background-color: var(--secondary-background);
    color: var(--primary-text);
    font-family:monospace;
    margin:0;
    padding:0;
    min-height:100%;
    /* overflow-x: hidden; */
}
body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,h2,h3,h4,h5,h6, p {
    margin-block: 0 0.75em;
}

#banner-wrapper {
    height: auto;
    margin-bottom: 0;
    position: relative;
    top: 0;
    /* z-index: 1000; */
}
.nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
}
#banner {
    padding-top: 10px;
    text-align:center;
    width:100%;
    font-family:monospace;
}
.banner-background {
    background-image:url("/back.png");
    background-size:150px;
}
.bannerNav {
    z-index: 1000;
    background-color: #2f7a3baa;
    border: solid 1px #1caf5c77;
}
.bannerNav ul { 
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}
.bannerNav li { 
    flex: 1 1 50%;
    min-width: 0;
}
.bannerBtn{
    display: block;
    width: 100%;
    cursor:pointer;
    line-height: 2;
    padding: 0.25rem;
    color:#aad7ff;
    font-size: 1rem;
    transition: 0.3s;
    text-align:center;
    text-decoration:none;
    border-bottom: 1px solid #1caf5c44;
}
.bannerBtn:hover{
    background-color:#3f9a4baa;
    color:#eeefff;
    text-decoration:none;
}

footer{
    padding:10px;
    width:100%;
    background-color: #004b00;
    color:#00d7ff;
    text-align:center;
    font-size:0.85rem;
    min-height:4rem;
    margin-top:auto;
    border-color:#00FF00;
    border-style:solid solid none solid;
    border-radius:5px 5px 0px 0px;
}

a{
    color:#00d764;
    transition:0.3s;
    text-decoration:none;
}
a:hover{
    color:#FFFFFF;
    transition:0.3s;
    text-decoration:underline;
}

.content{
    width: 95%;
    display:block;
    background-color: var(--primary-background);
    border-radius: 7px;
    margin:10px auto;
    padding:1rem;
    border-style:solid;
    border-color:#00aadaaa;
    box-shadow: 0px 5px 5px 1px #00aada77;
}

/* Feature cards for mobile - stack vertically */
.featuresGrid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
.featureCard {
    height: auto;
    min-height: auto;
    position: relative;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}
.featureCard:nth-child(even) {
    grid-template-columns: 1fr;
}
.featureCard:last-child {
    margin-bottom: 2rem;
}
.featureCard img {
    width: 60%;
    max-width: 180px;
    height: auto;
    margin-bottom: 1rem;
}
.featureCard:nth-child(even) img {
    grid-column: 1;
    grid-row: 1;
}
.featureCard .descriptionWrapper {
    display: block;
    text-align: center;
}
.featureCard .descriptionWrapper>div {
    width: 100%;
    height: auto;
    max-height: none;
}
.featureCard h2 {
    color: var(--secondardy-text);
}

/* Custom thin scrollbar for content areas */
.featureCard .descriptionWrapper>div,
.content pre {
    scrollbar-width: thin;
    scrollbar-color: #444 transparent;
}
.featureCard .descriptionWrapper>div::-webkit-scrollbar,
.content pre::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.featureCard .descriptionWrapper>div::-webkit-scrollbar-track,
.content pre::-webkit-scrollbar-track {
    background: transparent;
}
.featureCard .descriptionWrapper>div::-webkit-scrollbar-thumb,
.content pre::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 3px;
}

.command{
    width:95%;
    display:block;
    border-radius:5px;
    margin:10px auto;
    padding:1rem;
    border-style:solid;
    box-shadow: 0 0 2px 0.1rem #ffffff66, 0 0 5px 0.1rem #00000066;
}
.command h6{
    float:right;
}

.optional{
    background-color:#252525;
    color:#D7D7D7;
}
.required{
    background-color:#000000;
    color:#00D7FF;
}

.brown{
    background-color: var(--brown-background);
    border-color:#654907;
}
.blue{
    background-color: var(--blue-background);
    border-color: var(--blue-border);
}
.darkCyan{
    background-color: var(--darkCyan-background);
    border-color:#00FF00;
}
.darkGreen{
    background-color: var(--darkGreen-background);
    border-color:#00FF00;
}
.red{
    background-color: var(--red-background);
    border-color: var(--red-border);
}
.cyan{
    color:#00d7ff;
}
.green{
    font-size:1.5rem;
    color:#00ff00;
}
.grey{
    background-color:#36393e;
    border-color:#7289da;
}

img{
    border-radius:5px;
}

.centered{
    text-align:center;
}
.fr{ float:none; width:100%; text-align:center; }
.fl{ float:none; width:100%; text-align:center; }

#stewIcon{
    height: 50px;
}
#stewBanner{
    height: 50px;
}

input{
    vertical-align:middle;
}

/* Tier cards - mobile */
.plan{
    background-color: #272728;
    width:100%;
    border-radius:5px;
    border-style:none none solid none;
    border-color:#00ff0033;
    border-width:1px;
    padding-top:1rem;
}
.tierWrapper{
    display:flex;
    flex-direction: column;
    align-items: center;
    width: 95%;
    margin: 0 auto;
}
.tier{
    width: 95%;
    max-width: none;
    border-style:solid;
    border-color:#00ff0022;
    margin: 0.5rem 0;
    border-radius:5px;
    background-color: #343437;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
}
.tier .bannerBtn{
    width: 90%;
    margin: auto 5% 1rem 5%;
    font-size: 1.2rem;
}
.tier ul {
    flex-grow: 1;
    list-style: none;
    padding-left: 1rem;
}
.tier li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
}
.tier li::before {
    content: "»";
    position: absolute;
    left: 0;
    color: #00d764;
}
.tier h1{
    text-align:center;
}
.tier h3{
    text-align:center;
}

/* Quick link cards for homepage */
.tier.quickLink {
    text-align: center;
    padding: 1.5rem 1rem;
    min-height: 100px;
    justify-content: center;
}
.tier.quickLink p {
    margin-bottom: 0.75rem;
    color: #aaa;
}
.tier.quickLink .bannerBtn {
    margin-top: auto;
}

#dontWait{
    background-color: var(--darkGreen-background);
    padding:1rem;
    box-shadow: 0px 0px 6px 1px #00ff0044;
    width: 95%;
    margin: 1rem auto;
    border-radius: 7px;
    border: 1px solid #00ff0033;
    font-size: 1rem;
}

#special{
    box-shadow:0px 0px 10px 3px #dfff66;
}

/* Button wrapper to prevent page expansion */
.buttonWrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 5rem;
    padding: 1rem;
}
.buttonWrapper a {
    text-decoration: none;
}
.buttonWrapper input {
    border: 2px solid #00ff0066;
}

#addButton{
    /* width: 220px; */
    height: 3.5rem;
    transition: 0.3s;
    background-color: #1c5735;
    border: 2px solid #00ff0066;
    border-radius: 8px;
    box-shadow: 0px 0px 6px 1px #00ff0033;
    font-size: 1.2rem;
    font-family: monospace;
    color: #efefff;
    cursor: pointer;
}
#addButton:hover{
    background-color: #2a7a4a;
    border-color: #00ff00aa;
    box-shadow: 0px 0px 8px 2px #00ff0055;
    color: #ffffff;
}

#donateButton{
    width: 220px;
    height: 3.5rem;
    transition: 0.3s;
    background-color: #1c5735;
    border: 2px solid #00ff0066;
    border-radius: 8px;
    box-shadow: 0px 0px 6px 1px #00ff0033;
    font-size: 1.2rem;
    font-family: monospace;
    color: #efefff;
    cursor: pointer;
}
#donateButton:hover{
    background-color: #2a7a4a;
    border-color: #00ff00aa;
    box-shadow: 0px 0px 8px 2px #00ff0055;
    color: #ffffff;
}

#moving{
    width:100%;
    margin:0;
    background-color:rgb(255,255,0);
    color:#000;
    text-align:center;
    min-height:2.5rem;
    font-size:1rem;
    padding: 0.5rem;
}

#searchTerm{
    box-sizing:border-box;
    background-color: #292932;
    color: #efefff;
    font-size: 1rem;
    transition: 0.3s;
    text-decoration:none;
    border: 1px solid #afafef44;
    border-radius: 0.3rem;
    padding: 0.5em;
    width: 100%;
    margin-bottom: 0.5rem;
}
#searchTerm:hover, #searchTerm:focus {
    border-color: #afafef88;
    cursor: text;
    outline: none;
}

#searchButton{
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 0.5rem auto;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background-color: #292932;
    color: #efefff;
    border: 1px solid #afafef44;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: 0.3s;
}
#searchButton:hover {
    background-color: #3a3a46;
    border-color: #afafef88;
}

/* Permission list styling */
.permissionList {
    list-style: none;
    padding-left: 0;
}
.permissionList li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.permissionList li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #00d764;
    font-weight: bold;
}
.permissionList li strong {
    color: var(--secondardy-text);
}

/* Primary action button - always visible, for main call-to-action */
.primaryActionBtn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background-color: #1c5735;
    border: 2px solid #00ff0066;
    border-radius: 8px;
    box-shadow: 0px 0px 6px 1px #00ff0033;
    font-size: 1rem;
    font-family: monospace;
    color: #efefff;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}
.primaryActionBtn:hover {
    background-color: #2a7a4a;
    border-color: #00ff00aa;
    box-shadow: 0px 0px 8px 2px #00ff0055;
    color: #ffffff;
    text-decoration: none;
}

/* Secondary button - subtle */
.secondaryBtn {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: #292932;
    border: 1px solid #afafef44;
    border-radius: 5px;
    font-size: 0.9rem;
    font-family: monospace;
    color: #aad7ff;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}
.secondaryBtn:hover {
    background-color: #3a3a46;
    border-color: #afafef88;
    color: #efefff;
    text-decoration: none;
}

/* Search/Filter styling for commands page */
.searchWrapper {
    margin-bottom: 1rem;
}
.searchInputGroup {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.searchInputGroup #searchTerm {
    width: 100%;
}
.searchInputGroup #searchButton {
    width: 100%;
}
.filterOptions {
    margin-bottom: 1rem;
}
.categoryFilters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.categoryFilters p {
    margin: 0;
    width: 100%;
    margin-bottom: 0.5rem;
}
.categoryLabel {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background-color: #292932;
    border-radius: 3px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
}
.categoryLabel:hover {
    background-color: #3a3a46;
}