/* 
 * Akasha Dashboard Styling Fixes
 * Fixes for better contrast and visibility
 */

/* Main Container Fixes */
.akasha-character-analysis {
    color: #ffffff !important;
    line-height: 1.6;
}

.akasha-character-analysis.light {
    color: #333333 !important;
}

.akasha-character-analysis.dark {
    color: #ffffff !important;
}

/* Loading State Fixes */
.akasha-character-analysis .akasha-loading {
    color: #ffffff !important;
    text-align: center;
    padding: 40px 20px;
}

.akasha-character-analysis .akasha-loading p {
    color: #ffffff !important;
    font-size: 1.1rem;
    margin-top: 15px;
    opacity: 0.9;
}

.akasha-character-analysis.light .akasha-loading,
.akasha-character-analysis.light .akasha-loading p {
    color: #333333 !important;
}

.akasha-character-analysis.dark .akasha-loading,
.akasha-character-analysis.dark .akasha-loading p {
    color: #ffffff !important;
}

/* Spinner Animation */
.akasha-spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #D4AF37;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.akasha-character-analysis.light .akasha-spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid #D4AF37;
}

/* Results Container */
.akasha-results {
    color: #ffffff !important;
}

.akasha-character-analysis.light .akasha-results {
    color: #333333 !important;
}

/* Result Sections */
.akasha-result-section {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px;
    margin-bottom: 25px;
    padding: 25px;
}

.akasha-character-analysis.light .akasha-result-section {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Result Section Titles */
.akasha-result-section-title,
.akasha-result-title {
    color: #D4AF37 !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.akasha-result-title .dashicons {
    color: #D4AF37 !important;
    font-size: 1.2em;
}

/* Result Content */
.akasha-result-content {
    color: #ffffff !important;
    line-height: 1.6;
}

.akasha-character-analysis.light .akasha-result-content {
    color: #333333 !important;
}

.akasha-result-content p {
    color: inherit !important;
    margin-bottom: 12px;
}

.akasha-result-content strong {
    color: #D4AF37 !important;
    font-weight: 600;
}

/* Accordion Styling */
.akasha-accordion-header {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.akasha-character-analysis.light .akasha-accordion-header {
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.akasha-accordion-header:hover {
    background: rgba(212, 175, 55, 0.1) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
}

.akasha-accordion-title {
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.akasha-character-analysis.light .akasha-accordion-title {
    color: #333333 !important;
}

.akasha-accordion-title-text {
    color: inherit !important;
}

.akasha-accordion-toggle {
    color: #D4AF37 !important;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.akasha-accordion-header.active .akasha-accordion-toggle {
    transform: rotate(180deg);
}

/* Accordion Content */
.akasha-accordion-content {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    display: none;
}

.akasha-character-analysis.light .akasha-accordion-content {
    background: rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.akasha-accordion-content.active {
    display: block;
}

.akasha-accordion-content .content-text {
    color: #ffffff !important;
    line-height: 1.7;
}

.akasha-character-analysis.light .akasha-accordion-content .content-text {
    color: #333333 !important;
}

.akasha-accordion-content .content-text p {
    color: inherit !important;
    margin-bottom: 15px;
}

.akasha-accordion-content .content-text h3,
.akasha-accordion-content .content-text h4 {
    color: #D4AF37 !important;
    font-weight: 600;
    margin: 20px 0 10px 0;
}

.akasha-accordion-content .content-text ul,
.akasha-accordion-content .content-text ol {
    padding-left: 20px;
    margin: 15px 0;
}

.akasha-accordion-content .content-text li {
    color: #e0e0e0 !important;
    margin-bottom: 8px;
    line-height: 1.6;
}

.akasha-character-analysis.light .akasha-accordion-content .content-text li {
    color: #555555 !important;
}

/* Header Section */
#akasha-analysis-sticky-header {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(244, 226, 124, 0.08)) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.akasha-character-analysis.light #akasha-analysis-sticky-header {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(244, 226, 124, 0.05)) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
}

/* Notice Styling */
.akasha-notice {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
    border: 1px solid;
}

.akasha-notice.akasha-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.08)) !important;
    border-color: rgba(255, 193, 7, 0.4) !important;
    color: #FFE082 !important;
}

.akasha-character-analysis.light .akasha-notice.akasha-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05)) !important;
    color: #856404 !important;
}

.akasha-notice p {
    color: inherit !important;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.akasha-notice a {
    color: #D4AF37 !important;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

.akasha-notice a:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: translateY(-1px);
    text-decoration: none;
    color: #D4AF37 !important;
}

/* Disclaimer */
.akasha-disclaimer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #B8B8B8 !important;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-style: italic;
}

.akasha-character-analysis.light .akasha-disclaimer {
    color: #666666 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .akasha-result-section {
        padding: 20px !important;
        margin-bottom: 20px !important;
    }
    
    .akasha-result-section-title,
    .akasha-result-title {
        font-size: 1.2rem !important;
    }
    
    .akasha-accordion-header {
        padding: 12px 15px !important;
    }
    
    .akasha-accordion-content {
        padding: 15px !important;
    }
}

/* Hidden Class */
.hidden {
    display: none !important;
}

/* Active Class */
.active {
    display: block !important;
}

/* Results visibility fix */
.akasha-results:not(.hidden) {
    display: block !important;
}

.akasha-results.hidden {
    display: none !important;
}

/* Animation Keyframes */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ensure text is always readable */
.akasha-character-analysis * {
    color: inherit;
}

/* Override any theme styles that might interfere */
.akasha-character-analysis h1,
.akasha-character-analysis h2,
.akasha-character-analysis h3,
.akasha-character-analysis h4,
.akasha-character-analysis h5,
.akasha-character-analysis h6 {
    color: #D4AF37 !important;
}

.akasha-character-analysis p,
.akasha-character-analysis span,
.akasha-character-analysis div {
    color: #ffffff !important;
}

.akasha-character-analysis.light p,
.akasha-character-analysis.light span,
.akasha-character-analysis.light div {
    color: #333333 !important;
}

/* Birthdate display enhancement */
#akasha-birthdate-display {
    color: #D4AF37 !important;
    font-weight: 600;
}

/* Name title enhancement */
#akasha-name-title {
    color: #D4AF37 !important;
    font-weight: 600;
}

/* Analysis Recreation Form Styling */
.akasha-analysis-info {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.akasha-character-analysis.light .akasha-analysis-info {
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.akasha-analysis-info p {
    color: inherit !important;
    margin: 8px 0 !important;
    opacity: 1 !important;
}

.akasha-recreation-actions {
    text-align: center;
    margin: 30px 0;
}

.akasha-btn {
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1em !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin: 0 5px !important;
}

.akasha-btn-primary {
    background: linear-gradient(135deg, #D4AF37, #F4E27C) !important;
    color: #000000 !important;
}

.akasha-btn-primary:hover {
    background: linear-gradient(135deg, #F4E27C, #D4AF37) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3) !important;
}

.akasha-btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.akasha-character-analysis.light .akasha-btn-secondary {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #333333 !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

.akasha-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px) !important;
}

.akasha-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}
