/*
Theme Name: Plugins Default
Theme URI: https://example.com/
Author: Gerson Campos
Author URI: https://example.com/
Description: Tema base minimalista para apresentar e navegar entre páginas de plugins WordPress.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: plugins-default
*/

:root {
    --pd-primary: #1d4ed8;
    --pd-primary-hover: #1e40af;
    --pd-text: #1f2937;
    --pd-muted: #6b7280;
    --pd-border: #e5e7eb;
    --pd-background: #ffffff;
    --pd-header: #ffffff;
    --pd-footer: #ffffff;
    --pd-container: 1200px;
}

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

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--pd-background);
    color: var(--pd-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: var(--pd-primary);
    text-decoration: none;
}

a:hover {
    color: var(--pd-primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

.pd-skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    z-index: 99999;
}

.pd-skip-link:focus {
    left: 10px;
    padding: 10px 14px;
    background: #111827;
    color: #fff;
    border-radius: 6px;
}

.pd-header {
    background: var(--pd-header);
    border-bottom: 1px solid var(--pd-border);
}

.pd-header__inner,
.pd-footer__inner,
.pd-main__inner {
    width: min(100% - 32px, var(--pd-container));
    margin-inline: auto;
}

.pd-header__inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.pd-brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--pd-text);
    font-weight: 700;
    white-space: nowrap;
}

.pd-brand:hover {
    color: var(--pd-text);
}

.pd-brand__logo {
    max-height: 40px;
    width: auto;
}

.pd-brand__name {
    font-size: 18px;
}

.pd-nav {
    display: flex;
    align-items: center;
    min-width: 0;
}

.pd-nav__toggle {
    display: none;
    border: 1px solid var(--pd-border);
    background: #fff;
    color: var(--pd-text);
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
}

.pd-nav__list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pd-nav__item,
.pd-nav__list li {
    margin: 0;
    padding: 0;
}

.pd-nav__list a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--pd-text);
    font-size: 14px;
    font-weight: 500;
    transition: background-color .15s ease, color .15s ease;
}

.pd-nav__list a:hover,
.pd-nav__list a:focus-visible,
.pd-nav__list a.is-active,
.pd-nav__list li.current-menu-item > a {
    background: #eff6ff;
    color: var(--pd-primary);
}

.pd-nav__icon {
    display: inline-flex;
    font-size: 15px;
    line-height: 1;
}

.pd-main {
    min-height: calc(100vh - 138px);
}

.pd-main__inner {
    padding-top: 32px;
    padding-bottom: 48px;
}

.pd-footer {
    background: var(--pd-footer);
    border-top: 1px solid var(--pd-border);
}

.pd-footer__inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.pd-footer__copyright {
    color: var(--pd-muted);
    font-size: 13px;
}

.pd-footer__nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pd-footer__nav a {
    color: var(--pd-muted);
    font-size: 13px;
}

.pd-footer__nav a:hover {
    color: var(--pd-primary);
}

/* Utility classes useful to plugin pages. */
.pd-container {
    width: min(100% - 32px, var(--pd-container));
    margin-inline: auto;
}

.pd-screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 800px) {
    .pd-header__inner {
        min-height: 60px;
    }

    .pd-nav {
        margin-left: auto;
    }

    .pd-nav__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .pd-nav__list {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 60px;
        z-index: 1000;
        padding: 8px;
        background: #fff;
        border: 1px solid var(--pd-border);
        border-radius: 8px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
        flex-direction: column;
        align-items: stretch;
    }

    .pd-nav__list.is-open {
        display: flex;
    }

    .pd-nav__list a {
        width: 100%;
    }

    .pd-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
