/* ============================================================
   Suggestion Box Modal
   ============================================================ */

.ha-suggestion-box {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ha-suggestion-box--open {
    display: flex;
}

.ha-suggestion-box::before {
    content: '';
    position: absolute;
    inset: 0;
}

[data-theme="dark"] .ha-suggestion-box::before {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

[data-theme="light"] .ha-suggestion-box::before {
    background: rgba(0, 0, 0, 0.4);
}

/* --- Glass Card Body --- */

.ha-suggestion-box__body {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 32px 28px;
}

[data-theme="dark"] .ha-suggestion-box__body {
    background: rgba(16, 125, 183, 0.1);
    border: 1px solid rgba(16, 125, 183, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 0 40px rgba(16, 125, 183, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #ffffff;
    scrollbar-width: thin;
    scrollbar-color: rgba(16, 125, 183, 0.5) rgba(16, 125, 183, 0.1);
}

[data-theme="dark"] .ha-suggestion-box__body::-webkit-scrollbar { width: 8px; }
[data-theme="dark"] .ha-suggestion-box__body::-webkit-scrollbar-track { background: rgba(16, 125, 183, 0.08); border-radius: 4px; }
[data-theme="dark"] .ha-suggestion-box__body::-webkit-scrollbar-thumb { background: rgba(16, 125, 183, 0.45); border-radius: 4px; }

[data-theme="light"] .ha-suggestion-box__body {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    color: #1a1a2e;
}

/* --- Close Button --- */

.ha-suggestion-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s ease;
}

[data-theme="dark"] .ha-suggestion-close {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .ha-suggestion-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .ha-suggestion-close {
    color: #999;
}

[data-theme="light"] .ha-suggestion-close:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

/* --- Header --- */

.ha-suggestion-header {
    text-align: center;
    margin-bottom: 24px;
}

.ha-suggestion-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px;
}

.ha-suggestion-title .mdi {
    margin-right: 8px;
    color: var(--ha-accent, #107db7);
}

.ha-suggestion-subtitle {
    font-size: 14px;
    opacity: 0.7;
    margin: 0;
}

/* --- Fields --- */

.ha-suggestion-fields {
    margin-bottom: 8px;
}

.ha-suggestion-fieldset {
    margin-bottom: 16px;
}

.ha-suggestion-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    opacity: 0.7;
}

.ha-suggestion-required {
    color: #ff6b6b;
}

.ha-suggestion-textarea,
.ha-suggestion-input {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}

.ha-suggestion-textarea {
    min-height: 100px;
    resize: vertical;
}

[data-theme="dark"] .ha-suggestion-textarea,
[data-theme="dark"] .ha-suggestion-input {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(16, 125, 183, 0.3);
    color: #ffffff;
}

[data-theme="dark"] .ha-suggestion-textarea:focus,
[data-theme="dark"] .ha-suggestion-input:focus {
    border-color: rgba(16, 125, 183, 0.6);
    outline: none;
}

[data-theme="light"] .ha-suggestion-textarea,
[data-theme="light"] .ha-suggestion-input {
    background: #f8f8f8;
    border: 1px solid #ddd;
    color: #1a1a2e;
}

[data-theme="light"] .ha-suggestion-textarea:focus,
[data-theme="light"] .ha-suggestion-input:focus {
    border-color: var(--ha-accent, #107db7);
    outline: none;
}

.ha-suggestion-textarea::placeholder,
.ha-suggestion-input::placeholder {
    opacity: 0.4;
}

/* --- Error Message --- */

.ha-suggestion-error {
    text-align: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

[data-theme="dark"] .ha-suggestion-error {
    background: rgba(255, 77, 77, 0.15);
    border: 1px solid rgba(255, 77, 77, 0.3);
    color: #ff6b6b;
}

[data-theme="light"] .ha-suggestion-error {
    background: #fff0f0;
    border: 1px solid #ffcccc;
    color: #cc3333;
}

/* --- Submit Button --- */

.ha-suggestion-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 8px;
}

[data-theme="dark"] .ha-suggestion-submit {
    background: rgba(16, 125, 183, 0.25);
    color: #ffffff;
    border: 1px solid rgba(16, 125, 183, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 0 14px rgba(16, 125, 183, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .ha-suggestion-submit:hover {
    background: rgba(16, 125, 183, 0.35);
    box-shadow:
        0 0 18px rgba(16, 125, 183, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .ha-suggestion-submit {
    background: var(--ha-accent, #107db7);
    color: #ffffff;
}

[data-theme="light"] .ha-suggestion-submit:hover {
    background: var(--ha-accent-hover, #0d6a9e);
}

.ha-suggestion-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Success Screen --- */

.ha-suggestion-success {
    text-align: center;
    padding: 40px 0;
}

.ha-suggestion-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

[data-theme="dark"] .ha-suggestion-success-icon {
    background: rgba(0, 175, 128, 0.25);
    border: 1px solid rgba(0, 175, 128, 0.4);
    color: #00af80;
}

[data-theme="light"] .ha-suggestion-success-icon {
    background: #e8f8f2;
    border: 1px solid #b8e8d8;
    color: #00875f;
}

.ha-suggestion-success .ha-suggestion-submit {
    max-width: 200px;
    margin: 24px auto 0;
}

/* --- Hero Actions Row --- */

.stadium-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

/* --- Honeypot --- */

.ha-wizard-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

/* --- Responsive --- */

@media (max-width: 600px) {
    .ha-suggestion-box {
        padding: 0;
    }

    .ha-suggestion-box__body {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 24px 20px;
    }

    .stadium-hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
