/*
Bug Bounty Page Styles (simplified)
Template: page-bug-bounty.php
*/

body.page-template-page-bug-bounty {
    width: 100%;
    min-height: calc(100vh - 200px);
    position: relative;
}

body.page-template-page-bug-bounty .site-main {
    width: 100%;
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

body.page-template-page-bug-bounty .breadcrumb-container {
    width: 100%;
    margin-top: 0;
    margin-bottom: 20px;
}

.bug-bounty-wrapper {
    max-width: 900px;
    width: 100%;
    margin: 0 auto 40px auto;
}

.bug-bounty-content {
    width: 100%;
}

.bug-bounty-main {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Hero */
.bug-bounty-hero {
    padding: 24px 20px;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

.bug-bounty-hero-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bug-bounty-title {
    font-size: 2em;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--accent-primary);
}

.bug-bounty-intro {
    font-size: 1em;
    line-height: 1.8;
    color: var(--text-body);
    text-align: justify;
}

.bug-bounty-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 600;
    box-shadow: var(--shadow-subtle);
    cursor: pointer;
    transition: all 0.25s ease;
    width: fit-content;
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
}

.bug-bounty-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: #ffffff !important;
}

.bug-bounty-primary-btn:focus {
    outline: none;
}

.bug-bounty-primary-btn:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.bug-bounty-note {
    margin-top: 6px;
    font-size: 0.88em;
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--nav-bg);
    border-radius: 8px;
    padding: 8px 12px;
    width: fit-content;
}

/* Sections */
.bug-bounty-section {
    padding: 0 4px;
}

.bug-bounty-section-title {
    font-size: 1.35em;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.bug-bounty-section-desc {
    margin: 0 0 12px 0;
    font-size: 0.95em;
    line-height: 1.75;
    color: var(--text-body);
    text-align: justify;
}

.bug-bounty-section-desc a {
    color: var(--accent-primary);
    font-weight: 500;
}

/* Levels list */
.bug-bounty-levels {
    margin: 0;
    padding-right: 22px;
    list-style: none;
    font-size: 0.95em;
    line-height: 2;
    color: var(--text-body);
}

.bug-bounty-levels li {
    margin-bottom: 4px;
}

.severity-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    margin-left: 8px;
    vertical-align: middle;
}

.severity-critical { background-color: #c9030d; }
.severity-high     { background-color: #ff1b41; }
.severity-medium   { background-color: #ef5602; }
.severity-low      { background-color: #2072c5; }

/* Report checklist */
.bug-bounty-report-checklist {
    margin: 0 0 16px 0;
    padding-right: 22px;
    list-style: disc;
    font-size: 0.95em;
    line-height: 1.9;
    color: var(--text-body);
}

.bug-bounty-report-checklist li {
    margin-bottom: 4px;
}

/* Contact card */
.bug-bounty-contact-card {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--nav-bg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bug-bounty-contact-email {
    font-weight: 700;
    font-size: 1em;
    direction: ltr;
    color: var(--accent-primary);
}

/* Rules / how-to list */
.bug-bounty-rules-list {
    margin: 0 0 16px 0;
    padding-right: 22px;
    list-style: decimal;
    font-size: 0.95em;
    line-height: 1.9;
    color: var(--text-body);
    text-align: justify;
}

.bug-bounty-rules-list li {
    margin-bottom: 8px;
}

/* Rules list */
.bug-bounty-list {
    margin: 0;
    padding-right: 22px;
    list-style: disc;
    font-size: 0.95em;
    line-height: 1.9;
    color: var(--text-body);
    text-align: justify;
}

.bug-bounty-list li {
    margin-bottom: 6px;
}

/* Form section */
.bug-bounty-form-section {
    padding: 20px 0;
}

.bug-bounty-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bug-bounty-form-success {
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(43, 186, 67, 0.12);
    border: 1px solid rgba(43, 186, 67, 0.4);
    color: #1a6b2a;
    font-size: 0.95em;
    line-height: 1.6;
}

.bug-bounty-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bug-bounty-label {
    font-weight: 600;
    font-size: 0.95em;
    color: var(--text-primary);
}

.bug-bounty-label .required {
    color: #b50a0a;
}

.bug-bounty-input,
.bug-bounty-textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-body);
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bug-bounty-input:focus,
.bug-bounty-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(43, 186, 67, 0.2);
}

.bug-bounty-textarea {
    resize: vertical;
    min-height: 100px;
}

.bug-bounty-field-error {
    font-size: 0.85em;
    color: #b50a0a;
    min-height: 1.2em;
}

.bug-bounty-char-count {
    font-size: 0.8em;
    color: var(--text-secondary);
}

/* Level cards (selectable) */
.bug-bounty-level-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.bug-bounty-level-card {
    padding: 16px 12px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.bug-bounty-level-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-subtle);
}

.bug-bounty-level-card.selected {
    border-color: #2072c5;
    background: rgba(32, 114, 197, 0.12);
    box-shadow: 0 0 0 2px rgba(32, 114, 197, 0.25);
}

.bug-bounty-level-card:focus {
    outline: none;
}

.bug-bounty-level-card .severity-dot {
    display: block;
    margin: 0 auto 8px;
}

.bug-bounty-level-card strong {
    display: block;
    font-size: 0.95em;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.bug-bounty-level-card p {
    margin: 0;
    font-size: 0.8em;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Fieldset */
.bug-bounty-fieldset {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bug-bounty-legend {
    font-weight: 600;
    font-size: 0.95em;
    color: var(--text-primary);
    padding: 0;
    margin: 0 0 6px 0;
    float: none;
    width: 100%;
}

.bug-bounty-fieldset-hint {
    margin: 0 0 10px 0;
    font-size: 0.88em;
    line-height: 1.65;
    color: var(--text-secondary);
    text-align: justify;
}

.bug-bounty-fieldset .bug-bounty-contact-grid {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--nav-bg);
}

[data-theme="dark"] .bug-bounty-fieldset .bug-bounty-contact-grid {
    background: rgba(255, 255, 255, 0.04);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .bug-bounty-fieldset .bug-bounty-contact-grid {
        background: rgba(255, 255, 255, 0.04);
    }
}

.bug-bounty-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 16px;
}

.bug-bounty-submit-wrap {
    margin-top: 8px;
}

.bug-bounty-submit-btn {
    min-width: 160px;
}

.bug-bounty-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.bug-bounty-submit-btn[aria-busy="true"] {
    pointer-events: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive */
@media (max-width: 768px) {
    body.page-template-page-bug-bounty .site-main {
        padding: 40px 16px;
    }

    .bug-bounty-main {
        gap: 28px;
    }

    .bug-bounty-hero {
        padding: 20px 16px;
    }

    .bug-bounty-title {
        font-size: 1.7em;
    }

    .bug-bounty-contact-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .bug-bounty-level-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .bug-bounty-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bug-bounty-title {
        font-size: 1.5em;
    }

    .bug-bounty-contact-email {
        font-size: 0.95em;
    }

    .bug-bounty-level-cards {
        grid-template-columns: 1fr;
    }
}