/* ==================================================
   Astro Portal Styles - Premium Dark Mode
   ================================================== */
:root {
    --astro-bg: #09090e;
    --astro-card: rgba(25, 25, 45, 0.7);
    --astro-accent: #c49eff;
    --astro-accent-hover: #e0ccff;
    --astro-text: #eaeaea;
    --astro-text-muted: #9ba1b0;
    --astro-border: rgba(196, 158, 255, 0.15);
    --astro-font-base: 'General Sans', sans-serif;
    --astro-font-heading: 'Playfair Display', serif;
}

.astro-portal-wrapper {
    background: var(--astro-bg);
    color: var(--astro-text);
    font-family: var(--astro-font-base);
    max-width: 1000px;
    margin: 2rem auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--astro-border);
}

/* Tabs */
.astro-tabs {
    display: flex;
    background: rgba(15, 15, 25, 0.95);
    border-bottom: 1px solid var(--astro-border);
    overflow-x: auto;
}

.astro-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 1.5rem 1rem;
    color: var(--astro-text-muted);
    font-size: 1.1rem;
    font-family: var(--astro-font-heading);
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.astro-tab-btn:hover {
    color: var(--astro-accent-hover);
    background: rgba(255, 255, 255, 0.02);
}

.astro-tab-btn.active {
    color: var(--astro-accent);
    background: rgba(196, 158, 255, 0.05);
    border-bottom: 2px solid var(--astro-accent);
}

/* Content Areas */
.astro-tab-content {
    display: none;
    padding: 3rem 2rem;
    text-align: center;
    background-image: radial-gradient(circle at top, rgba(196, 158, 255, 0.05), transparent 70%);
}

.astro-tab-content.active {
    display: block;
    animation: astroFadeIn 0.5s ease;
}

@keyframes astroFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.astro-title {
    font-family: var(--astro-font-heading);
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.astro-subtitle {
    color: var(--astro-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* Grids & Forms */
.astro-zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.astro-sign-btn, .astro-btn {
    background: var(--astro-card);
    border: 1px solid var(--astro-border);
    padding: 1rem;
    border-radius: 12px;
    color: var(--astro-text);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: var(--astro-font-base);
    font-size: 1.1rem;
}

.astro-sign-btn:hover, .astro-btn:hover {
    border-color: var(--astro-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 158, 255, 0.1);
}

.astro-btn {
    background: linear-gradient(135deg, rgba(80, 50, 150, 0.8), rgba(40, 20, 80, 0.8));
    border-color: var(--astro-accent);
    padding: 1rem 2.5rem;
    margin-top: 1.5rem;
}

.astro-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Inputs & Textareas */
.astro-dream-form textarea, .astro-input {
    width: 100%;
    max-width: 600px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--astro-border);
    border-radius: 12px;
    padding: 1rem;
    color: #fff;
    font-family: var(--astro-font-base);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.astro-dream-form textarea:focus, .astro-input:focus {
    border-color: var(--astro-accent);
}

.comp-selects {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comp-plus {
    font-size: 2rem;
    color: var(--astro-accent);
}

/* Tarot Deck */
.astro-tarot-deck {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    perspective: 1000px;
}

.astro-tarot-card {
    width: 70px;
    height: 110px;
    background: linear-gradient(135deg, #2a2a4a, #151525);
    border: 1px solid var(--astro-border);
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.4s ease;
    position: relative;
    transform-style: preserve-3d;
}

.astro-tarot-card::before {
    content: '✧';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--astro-accent);
    opacity: 0.4;
    font-size: 2rem;
}

.astro-tarot-card:hover {
    transform: translateY(-5px);
}

.astro-tarot-card.selected {
    transform: translateY(-15px) rotateY(180deg);
    border-color: #ffd700;
}

.astro-tarot-card.selected::before { display: none; }
.astro-tarot-card.selected::after {
    content: attr(data-card-name);
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111;
    color: #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transform: rotateY(180deg);
    border-radius: 8px;
    text-align: center;
    padding: 5px;
    box-sizing: border-box;
    font-family: var(--astro-font-heading);
}

.astro-tarot-counter {
    margin-top: 1rem;
    color: var(--astro-accent);
    font-size: 1.1rem;
}

/* Results */
.astro-result {
    margin: 2rem;
    padding: 2rem;
    background: rgba(0,0,0,0.4);
    border-radius: 15px;
    border: 1px solid var(--astro-border);
    min-height: 100px;
    text-align: left;
    line-height: 1.8;
}

.astro-loader {
    text-align: center;
    color: var(--astro-accent);
    font-style: italic;
    animation: astroPulse 1.5s infinite alternate;
}

@keyframes astroPulse {
    0% { opacity: 0.5; text-shadow: 0 0 5px var(--astro-accent); }
    100% { opacity: 1; text-shadow: 0 0 15px var(--astro-accent); }
}

.hidden { display: none !important; }
.mt-3 { margin-top: 1.5rem; }
