
/* =========================================================
   NOREYNA DIGITAL TOOLS & RESOURCES
   Custom CSS for Joomla 5 / Gantry 5 / RT Akuatik
   All styles are scoped to #noreyna-tools
   ========================================================= */

/* ---------- 1. Main Variables ---------- */

#noreyna-tools {
    --nr-primary: #176b65;
    --nr-primary-dark: #10534f;
    --nr-accent: #d6a85f;
    --nr-heading: #243b3a;
    --nr-text: #596967;
    --nr-muted: #7c8a87;
    --nr-border: #e5ece9;
    --nr-background: #f7faf8;
    --nr-card: #ffffff;
    --nr-radius: 14px;

    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    color: var(--nr-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.7;
    box-sizing: border-box;
}

#noreyna-tools *,
#noreyna-tools *::before,
#noreyna-tools *::after {
    box-sizing: border-box;
}

#noreyna-tools a {
    text-decoration: none;
}

/* ---------- 2. Page Introduction ---------- */

#noreyna-tools .nr-hero {
    padding: 48px 30px;
    margin-bottom: 32px;
    text-align: center;
    background: linear-gradient(135deg, #f1f8f5 0%, #ffffff 65%, #f9f5ed 100%);
    border: 1px solid var(--nr-border);
    border-radius: 18px;
}

#noreyna-tools .nr-hero h1 {
    margin: 0 0 18px;
    color: var(--nr-heading);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.25;
}

#noreyna-tools .nr-hero p {
    max-width: 850px;
    margin: 0 auto 14px;
    color: var(--nr-text);
    font-size: 16px;
    line-height: 1.8;
}

#noreyna-tools .nr-hero p:last-child {
    margin-bottom: 0;
}

/* ---------- 3. Search Section ---------- */

#noreyna-tools .nr-search-section {
    margin-bottom: 26px;
}

#noreyna-tools .nr-search-box {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

#noreyna-tools .nr-search-box input {
    display: block;
    width: 100%;
    min-height: 54px;
    padding: 14px 20px;
    color: var(--nr-heading);
    background: var(--nr-card);
    border: 1px solid var(--nr-border);
    border-radius: 10px;
    outline: none;
    font: inherit;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#noreyna-tools .nr-search-box input:focus {
    border-color: var(--nr-primary);
    box-shadow: 0 0 0 3px rgba(23, 107, 101, 0.10);
}

#noreyna-tools .nr-search-box input::placeholder {
    color: #9aa7a3;
}

/* ---------- 4. Category Filters ---------- */

#noreyna-tools .nr-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 26px 0 36px;
}

#noreyna-tools .nr-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 17px;
    color: var(--nr-primary);
    background: #ffffff;
    border: 1px solid #dce9e5;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.2s ease;
}

#noreyna-tools .nr-filter-btn:hover,
#noreyna-tools .nr-filter-btn.active {
    color: #ffffff;
    background: var(--nr-primary);
    border-color: var(--nr-primary);
}

/* ---------- 5. Category Sections ---------- */

#noreyna-tools .nr-category {
    margin-bottom: 48px;
    scroll-margin-top: 30px;
}

#noreyna-tools .nr-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--nr-border);
}

#noreyna-tools .nr-category-header h2 {
    margin: 0;
    color: var(--nr-heading);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.4;
}

#noreyna-tools .nr-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    color: var(--nr-primary);
    background: #eaf4f0;
    border-radius: 12px;
    font-size: 21px;
}

/* ---------- 6. Tools Grid ---------- */

#noreyna-tools .nr-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* ---------- 7. Tool Cards ---------- */

#noreyna-tools .nr-tool-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 23px;
    background: var(--nr-card);
    border: 1px solid var(--nr-border);
    border-radius: var(--nr-radius);
    box-shadow: 0 3px 12px rgba(30, 60, 50, 0.035);
    transition: transform 0.25s ease, box-shadow 0.25s ease,
                border-color 0.25s ease;
}

#noreyna-tools .nr-tool-card:hover {
    transform: translateY(-4px);
    border-color: #c8ddd5;
    box-shadow: 0 10px 26px rgba(30, 60, 50, 0.09);
}

#noreyna-tools .nr-tool-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 15px;
}

#noreyna-tools .nr-tool-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    overflow: hidden;
    background: #f5f8f6;
    border: 1px solid #edf1ee;
    border-radius: 12px;
}

#noreyna-tools .nr-tool-logo img {
    display: block;
    width: 38px;
    height: 38px;
    max-width: 100%;
    object-fit: contain;
}

#noreyna-tools .nr-tool-logo span {
    color: var(--nr-primary);
    font-size: 23px;
    font-weight: 700;
}

#noreyna-tools .nr-tool-card h3 {
    margin: 0;
    color: var(--nr-heading);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

#noreyna-tools .nr-tool-card p {
    flex-grow: 1;
    margin: 0 0 19px;
    color: var(--nr-text);
    font-size: 14px;
    line-height: 1.75;
}

#noreyna-tools .nr-tool-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 7px;
    color: var(--nr-primary);
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
}

#noreyna-tools .nr-tool-link:hover {
    color: var(--nr-primary-dark);
}

#noreyna-tools .nr-tool-link::after {
    content: "→";
    font-size: 17px;
    transition: transform 0.2s ease;
}

#noreyna-tools .nr-tool-link:hover::after {
    transform: translateX(4px);
}

/* ---------- 8. Empty Search Result ---------- */

#noreyna-tools .nr-no-results {
    display: none;
    padding: 35px 20px;
    text-align: center;
    color: var(--nr-muted);
    background: var(--nr-background);
    border: 1px dashed var(--nr-border);
    border-radius: var(--nr-radius);
}

#noreyna-tools .nr-no-results.visible {
    display: block;
}

/* ---------- 9. Contact / CTA Section ---------- */

#noreyna-tools .nr-cta {
    margin-top: 55px;
    padding: 42px 25px;
    text-align: center;
    background: linear-gradient(135deg, #eaf4f0, #f7f8f2);
    border: 1px solid #dce9e3;
    border-radius: 18px;
}

#noreyna-tools .nr-cta h2 {
    margin: 0 0 12px;
    color: var(--nr-heading);
    font-size: 26px;
    font-weight: 700;
}

#noreyna-tools .nr-cta p {
    max-width: 650px;
    margin: 0 auto 23px;
    color: var(--nr-text);
    font-size: 15px;
    line-height: 1.8;
}

#noreyna-tools .nr-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 27px;
    color: #ffffff !important;
    background: var(--nr-primary);
    border: 1px solid var(--nr-primary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
}

#noreyna-tools .nr-cta-button:hover {
    color: #ffffff !important;
    background: var(--nr-primary-dark);
    border-color: var(--nr-primary-dark);
    transform: translateY(-2px);
}

/* ---------- 10. Affiliate Disclosure ---------- */

#noreyna-tools .nr-disclosure {
    margin-top: 22px;
    padding: 14px 17px;
    color: var(--nr-muted);
    background: #fafbf9;
    border-left: 3px solid var(--nr-accent);
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.7;
}

/* ---------- 11. Hidden Items ---------- */

#noreyna-tools .nr-tool-card.nr-hidden,
#noreyna-tools .nr-category.nr-hidden {
    display: none !important;
}

/* ---------- 12. Tablet Layout ---------- */

@media (max-width: 1024px) {
    #noreyna-tools .nr-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 17px;
    }

    #noreyna-tools .nr-hero {
        padding: 38px 24px;
    }
}

/* ---------- 13. Mobile Layout ---------- */

@media (max-width: 640px) {
    #noreyna-tools {
        font-size: 15px;
    }

    #noreyna-tools .nr-hero {
        padding: 30px 18px;
        margin-bottom: 25px;
        border-radius: 13px;
    }

    #noreyna-tools .nr-hero h1 {
        font-size: 27px;
    }

    #noreyna-tools .nr-hero p {
        font-size: 14px;
    }

    #noreyna-tools .nr-filters {
        justify-content: flex-start;
        gap: 8px;
        margin: 20px 0 28px;
    }

    #noreyna-tools .nr-filter-btn {
        padding: 8px 13px;
        font-size: 12px;
    }

    #noreyna-tools .nr-tools-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    #noreyna-tools .nr-category {
        margin-bottom: 35px;
    }

    #noreyna-tools .nr-category-header h2 {
        font-size: 19px;
    }

    #noreyna-tools .nr-tool-card {
        padding: 19px;
    }

    #noreyna-tools .nr-cta {
        margin-top: 38px;
        padding: 32px 18px;
    }

    #noreyna-tools .nr-cta h2 {
        font-size: 22px;
    }
}

/* ---------- 14. Accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
    #noreyna-tools *,
    #noreyna-tools *::before,
    #noreyna-tools *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
