/* Main Container */
#astro-engine-wrapper {
    font-family: 'Cinzel', 'Playfair Display', serif;
    /* Eğer import edilirse, yoksa serif fallback */
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin: 40px auto;
    position: relative;
    overflow: hidden;
}

/* Background Stars Effect (Pseudo) */
#astro-engine-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 3px),
        radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 2px),
        radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 3px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    opacity: 0.3;
    z-index: 0;
    animation: starsMove 100s linear infinite;
}

@keyframes starsMove {
    from {
        background-position: 0 0, 40px 60px, 130px 270px;
    }

    to {
        background-position: 550px 550px, 390px 410px, 680px 820px;
    }
}

.aae-header,
.aae-form-container,
#aae-results {
    position: relative;
    z-index: 1;
    /* Above stars */
}

.aae-header {
    text-align: center;
    margin-bottom: 30px;
}

.aae-header h2 {
    font-size: 2.5em;
    margin: 0;
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(191, 149, 63, 0.3);
}

.aae-header p {
    color: #ccc;
    font-style: italic;
}

/* Form Styling */
.aae-form-container {
    background: rgba(255, 255, 255, 0.05);
    /* Glass */
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #bf953f;
    /* Gold text */
    text-transform: uppercase;
    letter-spacing: 1px;
}

input[type="text"],
input[type="date"],
input[type="time"] {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(191, 149, 63, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: #bf953f;
    box-shadow: 0 0 15px rgba(191, 149, 63, 0.2);
}

/* Button */
.aae-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #bf953f, #aa771c);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1em;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.aae-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.aae-btn span {
    position: relative;
    z-index: 1;
}

/* Results & Chart */
#aae-results {
    margin-top: 30px;
}

.result-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.8s ease forwards;
}

.result-card h3 {
    color: #bf953f;
    border-bottom: 1px solid rgba(191, 149, 63, 0.3);
    padding-bottom: 10px;
    margin-top: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    font-size: 1.1em;
    color: #e0d2b2;
    margin-bottom: 10px;
}

.chart-visual-container {
    text-align: center;
    margin: 30px 0;
}

.chart-visual-container svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(191, 149, 63, 0.2));
}

/* Planetary List */
.planet-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 3px solid #bf953f;
}

.planet-item h4 {
    margin: 0 0 5px;
    color: #fff;
}

.planet-meaning {
    font-size: 0.85em;
    color: #aaa;
    margin: 0 0 5px;
}

.planet-interp {
    margin: 0;
    font-size: 0.95em;
    color: #ddd;
}

/* Element Analysis */
.element-advice {
    background: rgba(191, 149, 63, 0.1);
    padding: 10px;
    border-radius: 5px;
    font-style: italic;
    font-size: 0.9em;
    margin-top: 10px;
}

.life-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.life-area-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.score-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #bf953f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 auto 10px;
    color: #bf953f;
    box-shadow: 0 0 15px rgba(191, 149, 63, 0.2);
}

.area-title {
    color: #fff;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.9em;
}

.area-text {
    font-size: 0.9em;
    color: #ddd;
    line-height: 1.4;
}

/* Mystic Prediction */
.mystic-prediction {
    position: relative;
    overflow: hidden;
}

.mystic-prediction::after {
    content: '🔮';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 100px;
    opacity: 0.1;
    transform: rotate(30deg);
}

/* Utility */
.hidden {
    display: none !important;
}

/* Loading Animation */
.aae-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.aae-loading::after {
    content: "☾";
    font-size: 40px;
    color: #bf953f;
    animation: spin 2s linear infinite;
    display: block;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}