/* WordPress-specific additions on top of main.css (the original RepLocker UI). */

/* Elements that were <button>/<div> on the static site are real links here. */
a.logo,
a.nav-btn,
a.launch-btn,
a.tool-action {
    text-decoration: none;
}

a.nav-btn,
a.launch-btn,
a.tool-action {
    display: inline-block;
    text-align: center;
}

.replocker-grid-message {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 50px;
}

/* Single product page: the product dialog shown inline. */
.product-page-wrap {
    max-width: 980px;
}

.product-page-back {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .85rem;
}

.product-page-back:hover {
    color: var(--neon-cyan);
}

.product-page {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--panel-border-strong);
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, #0a1226, #030812);
    color: var(--text-main);
    box-shadow: 0 28px 90px rgba(0,0,0,.45), 0 0 36px color-mix(in srgb, var(--neon-cyan) 12%, transparent);
}

body[data-mode="light"] .product-page {
    background: var(--panel-bg);
    box-shadow: var(--shadow);
}

.product-page .product-dialog-content {
    overflow: visible;
}

h1.product-detail-title {
    font-size: inherit;
}

.product-detail-description {
    margin-top: 22px;
    color: var(--text-muted);
    line-height: 1.7;
}

.product-detail-page-link {
    display: inline-block;
    margin-left: 14px;
}

/* Generic WordPress content (pages, posts, 404, extra content on Tools/How To). */
.replocker-page-content {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    padding: 28px;
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    background: var(--panel-bg);
    box-shadow: var(--shadow);
    line-height: 1.7;
    font-size: 1.05rem;
}

.replocker-page-content a {
    color: var(--neon-cyan);
}

.replocker-page-content img {
    max-width: 100%;
    height: auto;
}

.replocker-page-content h2,
.replocker-page-content h3 {
    margin: 22px 0 10px;
    font-family: 'Montserrat', sans-serif;
}

.replocker-page-content p,
.replocker-page-content ul,
.replocker-page-content ol {
    margin-bottom: 14px;
}

.replocker-page-content ul,
.replocker-page-content ol {
    padding-left: 22px;
}

.replocker-noscript-list {
    position: relative;
    z-index: 1;
    padding: 20px 0;
}

.replocker-noscript-list li {
    margin: 6px 0 6px 20px;
}

/* WordPress pagination reuses the class name "nav-links"; keep it visible on mobile too. */
.pagination .nav-links {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
