/*
Theme Name: AI Subscription Calculator
Theme URI: https://www.aisubscriptioncalculator.com/
Author: AI Subscription Calculator
Description: WordPress theme for the AI Subscription Calculator utility.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ai-subscription-calculator
*/

html,
body {
    margin: 0;
    padding: 0;
    background: #020617;
}

body.admin-bar #root {
    min-height: calc(100dvh - 32px);
}

.aisc-anchor {
    position: absolute;
    top: 0;
}

.aisc-site-information {
    background: #020617;
    color: #94a3b8;
    padding: 0 1.25rem 4rem;
}

.aisc-site-information__inner {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(16, 185, 129, 0.24);
    border-radius: 1rem;
    margin: 0 auto;
    max-width: 76rem;
    padding: 1.75rem;
}

.aisc-site-information h2 {
    color: #f8fafc;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.aisc-site-information p {
    line-height: 1.7;
    margin: 0.75rem 0 0;
}

.aisc-site-information__updated {
    color: #34d399;
    font-size: 0.875rem;
    font-weight: 600;
}

.aisc-account-bar {
    background: #07111f;
    border-bottom: 1px solid rgba(51, 65, 85, 0.8);
    color: #e2e8f0;
    min-height: 4.25rem;
    position: relative;
    z-index: 40;
}

.aisc-account-bar__inner {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 80rem;
    min-height: 4.25rem;
    padding: 0.75rem 1.25rem;
}

.aisc-account-identity {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.aisc-account-identity strong {
    color: #f8fafc;
    font-size: 0.875rem;
}

.aisc-account-identity span {
    color: #94a3b8;
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aisc-account-actions {
    display: flex;
    flex-shrink: 0;
    gap: 0.5rem;
}

.aisc-account-actions button,
.aisc-account-form > button {
    background: #10b981;
    border: 1px solid #10b981;
    border-radius: 0.65rem;
    color: #020617;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.65rem 0.9rem;
}

.aisc-account-actions button.is-secondary {
    background: transparent;
    border-color: #475569;
    color: #cbd5e1;
}

.aisc-account-actions button:focus-visible,
.aisc-account-form button:focus-visible,
.aisc-account-form input:focus-visible,
.aisc-account-dialog__close:focus-visible {
    outline: 3px solid #6ee7b7;
    outline-offset: 2px;
}

.aisc-account-status {
    color: #94a3b8;
    font-size: 0.75rem;
    position: absolute;
    right: 1.25rem;
    top: calc(100% + 0.25rem);
}

.aisc-account-status.is-success {
    color: #34d399;
}

.aisc-account-status.is-error {
    color: #fca5a5;
}

.aisc-account-dialog {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 100000;
}

.aisc-account-dialog__backdrop {
    background: rgba(2, 6, 23, 0.88);
    inset: 0;
    position: absolute;
}

.aisc-account-dialog__panel {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 1rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
    color: #e2e8f0;
    max-height: 92vh;
    max-width: 30rem;
    overflow: auto;
    padding: 1.75rem;
    position: relative;
    width: 100%;
}

.aisc-account-dialog__panel h2 {
    color: #f8fafc;
    font-size: 1.25rem;
    margin: 0;
}

.aisc-account-dialog__description {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0.5rem 0 1.25rem;
}

.aisc-account-dialog__close {
    background: transparent;
    border: 0;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
    padding: 0.25rem;
    position: absolute;
    right: 1rem;
    top: 0.75rem;
}

.aisc-account-form {
    display: grid;
    gap: 1rem;
}

.aisc-account-form label {
    color: #cbd5e1;
    display: grid;
    font-size: 0.75rem;
    font-weight: 700;
    gap: 0.4rem;
}

.aisc-account-form input[type='email'],
.aisc-account-form input[type='password'] {
    background: #020617;
    border: 1px solid #475569;
    border-radius: 0.65rem;
    color: #f8fafc;
    font-size: 1rem;
    padding: 0.75rem;
    width: 100%;
}

.aisc-account-form__consent {
    align-items: flex-start;
    display: flex !important;
    font-weight: 400 !important;
    line-height: 1.5;
}

.aisc-account-form__consent input {
    flex: 0 0 auto;
    margin-top: 0.2rem;
}

.aisc-account-form p {
    color: #94a3b8;
    font-size: 0.8125rem;
    margin: 0;
    text-align: center;
}

.aisc-account-link {
    background: transparent;
    border: 0;
    color: #34d399;
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: underline;
}

.aisc-account-dialog__message {
    color: #94a3b8;
    font-size: 0.8125rem;
    line-height: 1.5;
    margin: 1rem 0 0;
}

.aisc-account-dialog__message.is-success {
    color: #34d399;
}

.aisc-account-dialog__message.is-error {
    color: #fca5a5;
}

@media screen and (max-width: 600px) {
    .aisc-account-bar__inner {
        align-items: stretch;
        flex-direction: column;
    }

    .aisc-account-actions button {
        flex: 1;
    }

    .aisc-account-status {
        position: static;
    }
}

@media screen and (max-width: 782px) {
    body.admin-bar #root {
        min-height: calc(100dvh - 46px);
    }
}
