/*
Theme Name: GeneratePress Child + Game Hub
Description: GeneratePress child theme with game directory contract interface
Author: Theme Integration
Author URI: https://example.com
Template: generatepress
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress-child
Domain Path: /languages
*/

/* Center standard page content */
.page .entry-content {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.page .entry-header,
.page .entry-content > * {
    margin-left: auto;
    margin-right: auto;
}

.page .entry-content .alignwide,
.page .entry-content .alignfull {
    margin-left: auto;
    margin-right: auto;
}

/* Header nav buttons */
.sg-nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.sg-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sg-nav-btn:hover {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .sg-nav-actions {
        width: 100%;
        justify-content: center;
        margin: 10px 0 0;
        flex-wrap: wrap;
        display: flex !important;
    }

    .main-navigation.toggled .sg-nav-actions {
        display: flex;
    }

    .site-header .inside-header {
        position: relative;
    }

    .main-navigation .sg-nav-actions {
        position: absolute;
        left: 120px;
        top: 0;
        bottom: 0;
        height: 100%;
        display: flex;
        align-items: center;
        width: auto;
        margin: 0;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 8px;
        z-index: 5;
    }

    .site-header .inside-header {
        align-items: center;
    }
}

/* Push menu + buttons to the right */
.main-navigation .inside-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.main-navigation .main-nav {
    order: 1;
    margin-right: 12px;
}

.main-navigation .sg-nav-actions {
    order: 2;
}

@media (max-width: 768px) {
    .main-navigation .inside-navigation {
        justify-content: space-between;
    }

    .main-navigation .main-nav {
        margin: 0;
    }
}

/* Footer menu */
.sg-footer-nav {
    margin-top: 8px;
}

.sg-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.sg-footer-menu a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
}

.sg-footer-menu a:hover {
    text-decoration: underline;
}

/* Category page content cards */
.sg-content-section {
    background: #ffffff;
    border: 1px solid #e6e8ef;
    border-radius: 14px;
    padding: 20px 22px;
    margin: 18px 0;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}

.sg-content-section h2,
.sg-content-section h3 {
    margin-top: 0;
}

.sg-term-keywords .sg-keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sg-term-keywords .sg-keyword {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #f2f4f7;
    border: 1px solid #e4e7ec;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #344054;
}

/* FAQ accordion */
.sg-faq-list {
    display: grid;
    gap: 10px;
}

.sg-faq__item {
    border: 1px solid #e6e8ef;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.sg-faq__question {
    width: 100%;
    text-align: left;
    background: #f8fafc;
    border: 0;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #101828;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.sg-faq__icon {
    font-size: 18px;
    line-height: 1;
    color: #667085;
    margin-left: 12px;
}

.sg-faq__answer {
    display: none;
    padding: 14px 16px 16px;
    color: #475467;
}

.sg-faq__item.active .sg-faq__answer {
    display: block;
}

.sg-faq__item.active .sg-faq__question {
    background: #eef2ff;
}

/* Platform/Decision cold style */
.pdc-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 10px 16px 40px;
    line-height: 1.75;
    color: #1d2939;
}

.pdc-container h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.pdc-container h2 {
    font-size: 23px;
    margin: 0 0 12px;
}

.pdc-container h3 {
    font-size: 18px;
    margin: 0 0 8px;
}

.pdc-section {
    margin: 18px 0;
}

.pdc-card {
    background: #f7f9fc;
    border: 1px solid #e4eaf3;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: none;
}

.pdc-position {
    border-left: 3px solid #cbd5e1;
    padding: 8px 12px;
    margin: 12px 0;
    background: #f3f6fa;
}

.pdc-position__title {
    font-weight: 700;
    font-size: 13px;
    color: #475467;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pdc-position__text {
    margin: 6px 0 0;
    color: #344054;
}

.pdc-summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pdc-summary-col p {
    margin: 0;
    color: #344054;
}

.pdc-risk-level {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pdc-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid #d7deea;
    background: #eef2f7;
    color: #475467;
}

.pdc-badge-low { background: #eef6f3; color: #3a6657; border-color: #d5e6df; }
.pdc-badge-moderate { background: #f0f3f8; color: #3e4b66; border-color: #d9e2f0; }
.pdc-badge-high { background: #f6f1f2; color: #6b3f4a; border-color: #ead8dd; }
.pdc-badge-extreme { background: #f6f0f6; color: #5a3f6b; border-color: #e3d6ea; }

.pdc-badge-hint {
    font-size: 12px;
    color: #667085;
}

.pdc-risk-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pdc-tag {
    background: #eef2f7;
    border: 1px solid #d7deea;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: #475467;
}

.pdc-decision-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 10px;
    background: #e7eef7;
    border: 1px solid #d6e0ee;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
}

.pdc-decision-button:hover {
    background: #dde7f5;
}

.pdc-checklist .pdc-check {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border: 1px solid #e1e7f1;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #f8fafc;
    cursor: pointer;
}

.pdc-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.pdc-why {
    border: 0;
    background: transparent;
    color: #667085;
    font-size: 12px;
    text-transform: lowercase;
    cursor: pointer;
}

.pdc-why-text {
    grid-column: 2 / span 2;
    font-size: 12px;
    color: #667085;
    margin-top: 6px;
}

.pdc-exit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.pdc-exit {
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #d6e0ee;
}

.pdc-return {
    background: #f1f5f9;
    color: #334155;
}

.pdc-pause {
    background: transparent;
    color: #64748b;
    border-color: transparent;
}

.pdc-proceed {
    background: #e6edf7;
    color: #475569;
    border-color: #d5dfef;
    cursor: not-allowed;
}

.pdc-proceed:disabled {
    opacity: 0.7;
}

.pdc-proceed:not(:disabled) {
    background: #cfd9e8;
    color: #1f2937;
    cursor: pointer;
}

.pdc-exit-note {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 10px;
}

@media (max-width: 900px) {
    .pdc-summary-strip {
        grid-template-columns: 1fr;
    }
}
