/* Kundalini Tantric Numerology Plugin Styles */

/* --- Base Form & Result Container Styles --- */
#kundalini-numerology-form {
  background: #f5f3f7;
  border: 1px solid #ddd;
  border-left: 5px solid #6a1b9a; /* Your original purple border */
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  font-family: 'Segoe UI', sans-serif; /* Your original font */
}

#kundalini-numerology-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #4a148c; /* Your original dark purple color */
}

#kundalini-numerology-form input[type="date"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 16px;
}

#kundalini-numerology-form button[type="submit"] { /* Explicitly target type="submit" */
  background-color: #6a1b9a; /* Your original button color */
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease; /* Smooth hover */
}

#kundalini-numerology-form button[type="submit"]:hover:not(:disabled) {
  background-color: #4a148c; /* Your original button hover color */
}

#kundalini-numerology-form button[type="submit"]:disabled {
  background-color: #a0a0a0; /* Grey out when disabled */
  cursor: not-allowed;
  opacity: 0.8;
}

#kundalini-numerology-result {
  font-family: 'Segoe UI', sans-serif; /* Your original font */
  color: #4a148c; /* Your original text color */
}

/* --- Individual Number Card Styles --- */
.kundalini-number {
  background: #f9f9f9;
  color: #4a148c; /* Your original text color */
  border-left: 5px solid #6a1b9a; /* Your original purple border */
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Added subtle shadow */
}

/* FIX: Added 'div' to increase specificity for h3 */
div.kundalini-number h3 {
  color: #4a148c; /* Your original heading color */
  margin-top: 0;
  margin-bottom: 10px;
  cursor: pointer; /* Indicate clickable for accordion */
  position: relative; /* For arrow icon */
  padding-right: 25px; /* Make space for arrow */
}

/* Accordion Styling for h3 (Number Headers) */
/* FIX: Added 'div' to increase specificity for h3::after */
div.kundalini-number h3::after {
    content: '\25BC'; /* Unicode down arrow */
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
    font-size: 0.8em;
    color: #6a1b9a; /* Arrow color matching your theme */
}

/* FIX: Added 'div' to increase specificity for h3.active::after */
div.kundalini-number h3.active::after {
    transform: translateY(-50%) rotate(180deg); /* Up arrow when active */
}

/* Initial state for accordion content - hidden by JS */
.kundalini-number-details {
    border-top: 1px solid #e0e0e0; /* Lighter border */
    padding-top: 10px;
    margin-top: 10px;
}

.kundalini-number p {
  margin: 5px 0;
  line-height: 1.5;
  color: #4a148c; /* Ensuring general paragraph text in sections gets your dark purple */
}


/* --- General UX Messages & Headers --- */

/* Loading State for Button (spinner) */
#kundalini-numerology-form button[type="submit"].loading {
    position: relative;
    padding-right: 30px; /* Make space for spinner */
}
#kundalini-numerology-form button[type="submit"].loading::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error Messages */
.kundalini-error-message {
    color: #dc3232; /* Standard error red */
    font-weight: bold;
    background-color: #ffebe8;
    border: 1px solid #dc3232;
    padding: 10px;
    border-radius: 4px;
    margin-top: 20px;
}

/* Placeholder for Results */
.kundalini-results-placeholder {
    font-style: italic;
    color: #777;
    padding: 20px;
    border: 1px dashed #ccc;
    background-color: #f0f0f0;
    text-align: center;
    border-radius: 5px;
    margin-top: 20px;
}

/* Loading Message in Result Div */
.kundalini-loading-message {
    text-align: center;
    font-style: italic;
    color: #555;
    padding: 20px;
    background-color: #f3f9ff;
    border: 1px solid #cce0f2;
    border-radius: 5px;
    margin-top: 20px;
}

/* Results Header (above all numbers) */
.kundalini-results-header {
    font-size: 1.8em;
    color: #4a148c; /* Adapting to your purple theme */
    text-align: center;
    margin-top: 30px;
    margin-bottom: 10px;
}
.kundalini-results-header strong {
    color: #6a1b9a; /* Highlight the date with your main purple */
}

.kundalini-results-intro {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.1em;
    color: #555;
}


/* --- Individual Detail Sections within Each Number Card --- */

/* Overall styling for each individual detail section */
.kundalini-detail-section {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e0e0e0; /* Subtle separator */
}

.kundalini-detail-section:last-child {
    border-bottom: none; /* No border on the last section */
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Styling for the H4 sub-headings (e.g., Essence, Mantra, etc.) */
div.kundalini-detail-section h4 {
    font-size: 1.05em;
    color: #4a148c; /* Your dark purple for sub-headings */
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Specific styling for Mantra */
.kundalini-mantra {
    font-style: italic;
    color: #6a1b9a; /* Your main purple for mantras */
    font-weight: bold;
}

/* Styling for Kriya steps (ordered list) */
.kundalini-kriya-steps {
    list-style-type: decimal;
    padding-left: 25px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.kundalini-kriya-steps li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #4a148c; /* Your dark purple for list items */
}

/* Styling for "Watch Out For" section (warning style) */
.kundalini-watch-out {
    background-color: #fffde7; /* Lighter, subtle warning background */
    border-left: 4px solid #ffeb3b; /* More vibrant yellow border */
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}
div.kundalini-watch-out h4 {
    color: #fbc02d; /* Darker yellow/orange text for watch out heading */
}
div.kundalini-watch-out p {
    color: #7a5c00; /* Darker, readable yellow/brown for paragraph text */
}

div.kundalini-affirmation-section {
    background-color: #e6f7ff; /* A light blue background for a calming effect */
    border-left: 4px solid #3399ff; /* A vibrant blue border */
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    /* Optional: Ensure no bottom border if it directly precedes a quote */
    /* border-bottom: none; if it's the last in the section */
}
div.kundalini-affirmation-section h4 {
    color: #1a75ff; /* Darker blue heading */
}
.kundalini-affirmation-text {
    font-style: italic;
    font-weight: bold;
    color: #0056b3; /* A strong blue for the affirmation text */
    line-height: 1.6;
}

/* Styling for Quote section */
.kundalini-quote-section {
    margin-top: 20px;
    margin-bottom: 0;
    border-top: 1px solid #eee; /* Light separator */
    padding-top: 15px;
    border-bottom: none; /* Ensure no bottom border if it's the last element */
}

div.kundalini-quote-section blockquote {
    font-style: italic;
    color: #444; /* Darker gray for readability against lighter background */
    margin: 0;
    padding: 0 0 0 20px;
    border-left: 3px solid #6a1b9a; /* Quote border matching your theme */
    line-height: 1.6;
}

div.kundalini-quote-section blockquote p {
    margin: 0;
    padding: 0;
    color: inherit; /* Inherit color from blockquote parent */
}


/* --- Responsive Adjustments --- */
@media screen and (max-width: 600px) {
    #kundalini-numerology-form input[type="date"] {
        max-width: 100%;
    }
    .kundalini-number {
        padding: 10px;
    }
    div.kundalini-number h3 { /* FIX: Added 'div' for specificity */
        font-size: 1.1em;
        padding-right: 20px;
    }
    .kundalini-results-header {
        font-size: 1.5em;
    }
    .kundalini-results-intro {
        font-size: 1em;
    }
    .kundalini-detail-section h4 {
        font-size: 1em;
    }
}