/* =============================================================
   Bullish Premium – Frontend Styles
   ============================================================= */

/* Paywall */
.bullish-paywall {
    text-align: center;
    background: #fff;
    margin: 2rem auto 10rem;
    max-width: 36em;
}

.bullish-paywall__lock {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
    color: #4b5563;
}

.bullish-paywall h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.bullish-paywall p, .bullish-paywall ul {
    color: #4b5563;
    margin-bottom: 1.25rem;
}

/* Knappar */
.bullish-btn {
    display: inline-block;
    background: #d1fae5;
    color: #065f46 !important;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none !important;
    margin: 0.25rem;
    transition: background 0.2s, transform 0.1s;
    border: 1px solid #a7f3d0;
}

.bullish-btn:hover {
    background: #a7f3d0;
    color: #065f46 !important;
}

.bullish-btn--secondary {
    background: #f3f4f6;
    color: #4A5568 !important;
    border-color: #DEE2E6;
}

.bullish-btn--secondary:hover {
    background: #4A5568;
    border-color: #4A5568;
    color: #fff !important;
}

/* Premiuminnehåll */
.bullish-premium-content {
    border-left: 3px solid #1a56db;
    padding-left: 1.25rem;
}

/* Kontosida */
.bullish-account {
    max-width: 36rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Profilkort */
.bullish-account__profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #fff;
}

.bullish-account__avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: #065f46;
    color: #d1fae5;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

.bullish-account__profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.bullish-account__profile-info strong {
    font-size: 0.975rem;
    color: #111827;
}

.bullish-account__profile-info span {
    font-size: 0.875rem;
    color: #6b7280;
}

.bullish-account__since {
    font-size: 0.775rem !important;
    color: #9ca3af !important;
    margin-top: 0.1rem;
}

/* Sektionskort */
.bullish-account__section {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 1.25rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.bullish-account__section-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #9ca3af;
}

/* Statusindikator */
.bullish-account__status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.bullish-account__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bullish-account__status--active { color: #065f46; }
.bullish-account__status--active .bullish-account__status-dot { background: #10b981; }

.bullish-account__status--trial { color: #92400e; }
.bullish-account__status--trial .bullish-account__status-dot { background: #f59e0b; }

.bullish-account__status--inactive { color: #6b7280; }
.bullish-account__status--inactive .bullish-account__status-dot { background: #d1d5db; }

/* Metarader (t.ex. förnyelsedatum) */
.bullish-account__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    border-top: 1px solid #f3f4f6;
}

.bullish-account__meta span { color: #6b7280; }
.bullish-account__meta strong { color: #111827; }

.bullish-account__portal-btn {
    align-self: flex-start;
    margin-top: 0.25rem;
    font-size: 0.875rem !important;
    padding: 0.55rem 1.1rem !important;
}

/* Genvägar */
.bullish-account__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.bullish-account__link-card {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 1rem;
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff;
}

.bullish-account__link-card:hover {
    background: #f1f3f5;
    border-color: #DEE2E6;
}

.bullish-account__link-card > span {
    font-size: 1.35rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.bullish-account__link-card div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.bullish-account__link-card strong {
    font-size: 0.875rem;
    color: #111827;
}

.bullish-account__link-card div span {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Sidfot */
.bullish-account__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.25rem;
}

.bullish-account__text-link {
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: none;
}

.bullish-account__text-link:hover {
    color: #374151;
    text-decoration: underline;
}

/* Bakåtkompatibel status (används ej längre i account, men kan finnas på äldre sidor) */
.bullish-status {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.bullish-status--active {
    background: #d1fae5;
    color: #065f46;
    font-weight: 600;
}

/* Välkomstsida */
.bullish-welcome {
    text-align: center;
    padding: 3rem 1rem;
}

.bullish-welcome__footer {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
}

.bullish-welcome__header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.bullish-welcome__icon {
    font-size: 3rem;
    display: flex;
    justify-content: center;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.bullish-welcome h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.bullish-welcome > p {
    color: #4b5563;
    margin-bottom: 2rem;
}

.bullish-welcome__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    text-align: left;
}

.bullish-card {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 1.25rem;
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: box-shadow 0.2s, transform 0.15s;
}

.bullish-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.bullish-card__icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.bullish-card strong {
    font-size: 1rem;
    color: #111827;
}

.bullish-card span {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Förhandsgranskning (2 stycken) ovanför paywall – med fade-effekt */
.bullish-article-preview {
    position: relative;
    overflow: hidden;
    --bullish-bg: #fff;
}

.bullish-article-preview__fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 7rem;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--bullish-bg) 100%
    );
    pointer-events: none;
}

/* Nyhetsbrev – [bullish_newsletter] */
.bullish-newsletter {
    margin: 20px auto;
}

.bullish-newsletter__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bullish-newsletter__row {
    display: flex;
    gap: 0.5rem;
}

.bullish-newsletter__row input[type="email"] {
    flex: 1;
    padding: 0.65rem 1rem;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.15s;
}

.bullish-newsletter__row input[type="email"]:focus {
    border-color: #1a56db;
}

.bullish-newsletter__legal {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0;
}

.bullish-newsletter__success {
    text-align: center;
    padding: 2rem 1rem;
}

.bullish-newsletter__icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.bullish-newsletter__success h2 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
}

.bullish-newsletter__success p {
    color: #4b5563;
}

/* Avregistreringsknapp */
.bullish-btn--danger {
    background: #b91c1c;
    border-color: #b91c1c;
}

.bullish-btn.bullish-btn--danger {
    color: #ffffff !important;
}

.bullish-btn--danger:hover {
    background: #7f1d1d;
}

/* Avregistreringslänk under formuläret */
.bullish-newsletter__unsub-link {
    margin-top: 1rem;
    font-size: 0.85rem;
    text-align: center;
}

.bullish-newsletter__unsub-link a {
    color: #6b7280;
    text-decoration: none;
}

.bullish-newsletter__unsub-link a:hover {
    color: #374151;
    text-decoration: underline;
}

/* Länk i legal-text (prenumerationsformulär) */
.bullish-newsletter__legal a {
    color: #6b7280;
    text-decoration: underline;
}

.bullish-subscribe__header {
    margin-bottom: 0.75rem;
}

.bullish-subscribe__price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.bullish-subscribe__price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #6b7280;
}

.bullish-subscribe__price em {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: #d1fae5;
    color: #065f46;
    padding: 2px 8px;
    border-radius: 999px;
    vertical-align: middle;
    margin-left: 4px;
}

.bullish-subscribe__tagline {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0.25rem 0 0;
}

.bullish-subscribe__features {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0 0 1.25rem;
    text-align: left;
}

.bullish-subscribe__features li {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

/* Provperiod-badge på subscribe-sidan */
.bullish-subscribe__trial-badge {
    display: inline-block;
    background: #d1fae5;
    color: #065f46;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.bullish-subscribe__trial-note {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.5rem;
    text-align: center;
}

/* Trialing-status i kontosidan */
.bullish-status--trial {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 4px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

/* Prenumerantnotis i premiumartiklar */
.bullish-subscriber-notice {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    margin-bottom: 1.5rem;
}

/* Auth-formulär (login / register) */
.bullish-auth {
    margin: 0 auto;
}

.bullish-auth__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.bullish-auth__field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.bullish-auth__field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
}

.bullish-auth__hint {
    font-weight: 400;
    color: #6b7280;
    font-size: 0.82rem;
    margin-left: 0.25rem;
}

.bullish-auth__field input[type="text"],
.bullish-auth__field input[type="email"],
.bullish-auth__field input[type="password"] {
    width: 100%;
    padding: 0.65rem 0.875rem;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
    background: #fff;
    color: #111827;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.bullish-auth__field input:focus {
    outline: none;
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
}

.bullish-auth__remember {
    font-size: 0.9rem;
    color: #374151;
}

.bullish-auth__remember label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.bullish-auth__submit {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

.bullish-auth__error {
    background: #fee2e2;
    color: #991b1b;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.bullish-auth__error a {
    color: #991b1b;
    font-weight: 600;
}

.bullish-auth__links {
    text-align: center;
    font-size: 0.9rem;
    color: #4b5563;
    margin-top: 1.25rem;
}

.bullish-auth__links a {
    color: #1a56db;
}

.bullish-auth__legal {
    font-size: 0.82rem;
    color: #6b7280;
    text-align: center;
    margin: 0;
}

.bullish-auth__legal a {
    color: #4b5563;
}

.bullish-auth__success {
    text-align: center;
    padding: 3rem 1rem;
}

.bullish-auth__success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.bullish-auth__success h2 {
    margin-bottom: 0.75rem;
}

.bullish-auth__success p {
    color: #4b5563;
    line-height: 1.6;
}

/* Premiumbadge i artikellistningar (v1.1) */
.bullish-premium-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #d1fae5;
    color: #065f46;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 0.4rem;
    line-height: 1.6;
}
