/* ==========================================
   The App Hub - Global Stylesheet (appgarden.css)
   ========================================== */

:root {
    --bg: #128577;           
    --box: #17A895;          
    --text: #FFFFFF; 
    --accent: #052622; 
    --link-color: #FFDE59;   
    --shadow: 0 15px 30px rgba(0,0,0,0.25);
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --danger: #FF6B6B;
    --neutral: #558B85;
    --item: #0F6E62;
}

body { 
    background-color: var(--bg); 
    color: var(--text); 
    font-family: var(--font-main); 
    font-size: 1.25rem; 
    line-height: 1.6; 
    margin: 0; 
    padding: 20px;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    min-height: 100vh;
    box-sizing: border-box;
}

header { 
    text-align: center; 
    margin-bottom: 2px; 
    width: 100%;
}

.brand-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0px;
    margin-top: .5px;
    letter-spacing: -0.5px;
}

header h2 {
    font-size: 1.6rem;
    font-weight: normal;
    opacity: 0.85;
    margin: 2px 0 6px 0;
}


/* ==========================================
   Dropdown & Navigation Styles
   ========================================== */
.app-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
    margin-bottom: 2px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

/* Unified styling for top-level navigation links and dropdown buttons */
.app-nav > a,
.dropbtn {
    background: transparent;
    color: var(--text);
    padding: 6px 12px;
    font-size: 1.3rem;
    font-weight: bold;
    font-family: inherit;
    border: none;
    cursor: pointer;
    opacity: 0.9;
    border-radius: 6px;
    transition: background 0.2s, opacity 0.2s;
    text-decoration: none;
    line-height: 1.2;
}

.app-nav > a:hover,
.dropdown:hover .dropbtn,
.dropbtn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--box);
    min-width: 200px;
    box-shadow: var(--shadow);
    z-index: 100;
    border-radius: 8px;
    padding: 8px 0;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown-content a {
    color: var(--text);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 1.1rem;
    font-weight: normal;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: var(--item);
    opacity: 1;
    text-decoration: none;
}

.dropdown-header {
    padding: 6px 16px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.6;
    margin-top: 4px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ==========================================
   Categorized App Hub Sections
   ========================================== */
.app-category-section {
    margin-bottom: 35px;
}

.app-category-section h3 {
    font-size: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
    margin-bottom: 15px;
    color: var(--link-color);
}

.page-indicator {
    color: var(--text);
    font-size: 2.4rem;
    font-weight: 800;
    text-align: center;
    margin: 2px 0 10px 0;
    letter-spacing: -0.5px;
}

h4 { font-weight: bold; font-size: 1.7rem; }

.card { 
    background: var(--box); 
    padding: 35px; 
    border-radius: 20px; 
    box-shadow: var(--shadow); 
    width: 95%; 
    max-width: 1100px; 
    margin: 0 auto 20px auto; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .app-grid {
        grid-template-columns: 1fr;
    }
}

.tool-card {
    background: var(--item);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-3px);
}

.tool-card h4 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    color: var(--text);
}

.tool-card p {
    margin: 0 0 15px 0;
    font-size: 1rem;
    opacity: 0.9;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: bold;
    font-size: 1.05rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #FFFFFF;
    color: #111111;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.form-group select option {
    background: #FFFFFF;
    color: #111111;
}

.error-message {
    color: var(--danger);
    font-size: 0.9rem;
    font-weight: bold;
}

.toolbar { 
    display: flex; 
    gap: 12px; 
    align-items: center; 
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.instructions {
    background: rgba(0, 0, 0, 0.15);
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.btn { 
    display: inline-block; 
    background: var(--link-color); 
    color: var(--accent); 
    padding: 12px 20px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: bold; 
    border: none; 
    cursor: pointer; 
    transition: transform 0.2s, filter 0.2s;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn:active { transform: translateY(0); }
.btn-neutral { background: var(--neutral); color: var(--text); }
.btn-danger { background: var(--danger); color: var(--text); }

/* ==========================================
   Footer Styles
   ========================================== */
footer { 
    margin-top: auto; 
    padding: 30px 20px 10px 20px; 
    text-align: center; 
    font-size: 1.1rem; 
    opacity: 0.9; 
}

footer a {
    color: var(--text);
    text-decoration: none;
    font-weight: bold;
    opacity: 0.9;
    font-size: 1.3rem;
}

footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Category column headers in footer */
.footer-categories strong {
    font-size: 1.5rem;
    text-decoration: underline;
    display: inline-block;
    margin-bottom: 8px;
}

.aux-links a {
    margin: 0 20px;
}
@media (max-width: 768px) {
    .brand-title {
        font-size: 2.2rem;
    }
    
    header h2 {
        font-size: 1.1rem;
    }

    .app-nav > a,
    .dropbtn {
        font-size: 1.1rem;
        padding: 5px 8px;
    }

    .card {
        padding: 20px;
        width: 100%;
    }
}