/* ── Astro Zodiac Widget Styles ─────────────────────────────────────────── */

.azw-wrapper {
    margin: 2em auto;
    max-width: 520px;
    font-family: Georgia, 'Times New Roman', serif;
}

.azw-card {
    background: linear-gradient( 145deg, #0d0d2b 0%, #1a1040 60%, #0d0d2b 100% );
    border: 1px solid rgba( 180, 140, 255, 0.25 );
    border-radius: 16px;
    padding: 2rem 2rem 1.4rem;
    color: #e8e0ff;
    box-shadow: 0 8px 40px rgba( 100, 60, 200, 0.25 );
    position: relative;
    overflow: hidden;
}

/* Subtle star-like background dots */
.azw-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient( circle, rgba(255,255,255,0.08) 1px, transparent 1px ),
        radial-gradient( circle, rgba(255,255,255,0.05) 1px, transparent 1px );
    background-size: 40px 40px, 80px 80px;
    background-position: 0 0, 20px 20px;
    pointer-events: none;
}

.azw-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #d4b8ff;
    margin: 0 0 0.3rem;
    letter-spacing: 0.01em;
}

.azw-subtitle {
    font-size: 0.85rem;
    color: #9b89c4;
    margin: 0 0 1.5rem;
    font-style: italic;
}

/* ── Form ── */
.azw-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.azw-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9b89c4;
}

.azw-input {
    background: rgba( 255, 255, 255, 0.06 );
    border: 1px solid rgba( 180, 140, 255, 0.3 );
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    color: #e8e0ff;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    color-scheme: dark;
}

.azw-input:focus {
    border-color: rgba( 180, 140, 255, 0.7 );
}

.azw-btn {
    background: linear-gradient( 135deg, #7c3aed, #a855f7 );
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: opacity 0.2s, transform 0.1s;
}

.azw-btn:hover {
    opacity: 0.9;
    transform: translateY( -1px );
}

.azw-btn:active {
    transform: translateY( 0 );
}

/* ── Result ── */
.azw-result {
    border-top: 1px solid rgba( 180, 140, 255, 0.2 );
    padding-top: 1.2rem;
    margin-top: 0.4rem;
    animation: azw-fade-in 0.4s ease;
}

@keyframes azw-fade-in {
    from { opacity: 0; transform: translateY( 8px ); }
    to   { opacity: 1; transform: translateY( 0 ); }
}

.azw-sign-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.8rem;
}

.azw-symbol {
    font-size: 2.6rem;
    line-height: 1;
}

.azw-sign-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #d4b8ff;
    margin: 0 0 0.1rem;
}

.azw-dates {
    font-size: 0.8rem;
    color: #9b89c4;
    font-style: italic;
}

.azw-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.azw-meta-item {
    font-size: 0.8rem;
    color: #c4b0f0;
}

.azw-desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #ccc0f0;
    margin: 0 0 0.9rem;
}

.azw-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.azw-trait {
    background: rgba( 140, 100, 255, 0.18 );
    border: 1px solid rgba( 160, 120, 255, 0.3 );
    color: #c4b0f0;
    border-radius: 20px;
    padding: 0.2rem 0.75rem;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}

.azw-horoscope {
    background: rgba( 120, 80, 220, 0.12 );
    border-left: 3px solid #9b59e8;
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1rem;
}

.azw-horo-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #b89eff;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin: 0 0 0.4rem;
}

.azw-horo-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ddd0ff;
    margin: 0;
    font-style: italic;
}

/* ── Error ── */
.azw-error {
    color: #f9a8d4;
    font-size: 0.88rem;
    margin: 0;
}

/* ── Credit ── */
.azw-credit {
    text-align: center;
    font-size: 0.72rem;
    color: #6b5a8a;
    margin: 1.2rem 0 0;
}

.azw-credit a {
    color: #9b89c4;
    text-decoration: none;
}

.azw-credit a:hover {
    color: #c4b0f0;
    text-decoration: underline;
}

/* ── Responsive ── */
@media ( max-width: 480px ) {
    .azw-card {
        padding: 1.4rem 1.2rem 1.1rem;
    }
    .azw-title {
        font-size: 1.1rem;
    }
}
