/* Update your oracle-card-reading-frontend/css/oracle-styles.css */

.oracle-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Lato', sans-serif;
}

.reading-form {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reading-form h2 {
    font-family: "Elsie Swash Caps", serif;
    color: #F70F9F;
    font-weight: 600;
    margin-bottom: 30px;
}

.reading-form input {
    width: 80%;
    max-width: 500px;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.reading-form button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.3s;
    font-family: 'Poppins', sans-serif;
}

.reading-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    resize: vertical;
    min-height: 100px;
    font-family: 'Lato', sans-serif;
}

.reading-form textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.2);
}

.reading-form button:hover {
    background-color: #45a049;
}

.reading-type-select {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: white;
    font-family: 'Lato', sans-serif;
}

.reading-type-select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.2);
}

/* Adjust card container for 12 cards */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.card {
    width: calc(25% - 20px);
    min-width: 200px;
    max-width: 250px;
    height: auto;
    cursor: pointer;
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-content {
    text-align: center;
}

.card-inner, .card-front, .card-back, .flip-prompt, button.narrative-button, button.patterns-button, button.relationship-button, .card-position-meaning {
    display: none;
}

/**.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-back {
    transform: rotateY(180deg);
    overflow-y: auto;
}
**/

.card-image {
    font-size: 48px;
    margin: 20px 0;
}

/**.card-position-meaning {
    margin: 12px 0;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 5px;
    font-style: italic;
}**/

.card-position-meaning {
    margin: 10px 0;
    padding: 8px;
    background-color: rgba(76, 175, 80, 0.08);
    border-radius: 5px;
    border-left: 3px solid #4CAF50;
    font-style: italic;
}

.summary-card p strong {
    color: #555;
    display: inline-block;
    min-width: 150px;
}

/* Make the position stand out more */
.card-position {
    background-color: rgba(76, 175, 80, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #3e8e41;
}

/* Animation for position meaning reveal */
@keyframes highlightPosition {
    from {
        background-color: rgba(76, 175, 80, 0.2);
    }
    to {
        background-color: rgba(76, 175, 80, 0.05);
    }
}

.card-position-meaning {
    animation: highlightPosition 1.5s ease-out forwards;
}

.card-position-meaning {
    margin: 10px 0;
    padding: 8px;
    background-color: rgba(76, 175, 80, 0.08);
    border-radius: 5px;
    border-left: 3px solid #4CAF50;
    font-style: italic;
}

.card-back .card-position-meaning {
    font-size: 0.9em;
    margin-bottom: 15px;
}

.flip-prompt {
    color: #666;
    font-size: 14px;
    margin-top: 20px;
    font-style: italic;
}

.reading-summary {
    margin-top: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reading-summary h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.reading-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.detailed-summary {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.summary-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-card h4 {
    color: #2a2a2a;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.summary-card p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.summary-card strong {
    color: #555;
}

.save-button {
    display: block;
    margin: 30px auto 0;
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.save-button:hover {
    background-color: #45a049;
}

.login-prompt {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-style: italic;
}

div#saved-readings {
    display: none;
}

.saved-readings {
    margin-top: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.saved-reading {
    background: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.saved-reading h3 {
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.saved-readings h4 {
    display: none;
}

.saved-reading .reading-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.saved-reading .reading-card {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
}

.saved-reading .reading-card h4 {
    color: #F70F9F;
    margin-bottom: 12px;
    font-family: 'Elsie Swash Caps', serif;
    font-weight: 550;
}

.saved-reading .reading-card p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.saved-reading .reading-card strong {
    color: #555;
}

/* Add date styling */
.saved-reading-date {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.saved-reading:hover {
    transform: translateY(-2px);
}

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

.loading {
    text-align: center;
    padding: 40px;
}

.loading:after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.error-message {
    color: #d32f2f;
    text-align: center;
    padding: 20px;
    background: #ffebee;
    border-radius: 5px;
    margin: 20px 0;
}

/* Position color-coding */
.card[data-position="Past/Root"] .card-position {
  background-color: rgba(255, 191, 0, 0.15);
  border-left: 3px solid #ffbf00;
}

.card[data-position="Present/Situation"] .card-position {
  background-color: rgba(0, 119, 181, 0.15);
  border-left: 3px solid #0077b5;
}

.card[data-position="Future/Potential"] .card-position {
  background-color: rgba(76, 175, 80, 0.15);
  border-left: 3px solid #4CAF50;
}

/* Reading timeline */
.reading-timeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 30px;
  position: relative;
  padding: 0 30px;
}

.timeline-bar {
  position: absolute;
  height: 3px;
  background: linear-gradient(to right, #ffbf00, #0077b5, #4CAF50);
  width: calc(100% - 60px);
  z-index: 1;
}

.timeline-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.timeline-marker::after {
  content: attr(data-label);
  position: absolute;
  top: -25px;
  white-space: nowrap;
  font-size: 14px;
}

.timeline-marker.past {
  background-color: #ffbf00;
}

.timeline-marker.present {
  background-color: #0077b5;
}

.timeline-marker.future {
  background-color: #4CAF50;
}

/* Position icons */
.position-icon {
  margin-right: 5px;
  font-size: 16px;
}

/* Interactive buttons */
.reading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    justify-content: center;
}

.reading-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.save-button {
    background-color: #4CAF50;
    color: white;
}

.relationship-button {
    background-color: #3498db;
    color: white;
}

.patterns-button {
    background-color: #f39c12;
    color: white;
}

.narrative-button {
    background-color: #9b59b6;
    color: white;
}

.reading-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* For relationships SVG overlay */
.relationship-overlay {
    pointer-events: none;
    z-index: 5;
}

/* Position influence sliders */
.position-influence {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.influence-slider {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.influence-slider label {
    width: 120px;
    font-weight: bold;
}

.slider-track {
    flex-grow: 1;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin: 0 15px;
    position: relative;
}

.slider-fill {
    position: absolute;
    height: 100%;
    background-color: #4CAF50;
    border-radius: 5px;
}

.influence-slider span {
    width: 40px;
    text-align: right;
}

/* Make this responsive */
@media (max-width: 768px) {
    .reading-actions {
        flex-direction: column;
    }
    
    .reading-actions button {
        width: 100%;
    }
    
    .timeline-marker::after {
        font-size: 12px;
    }
}

.readings-remaining {
    background: #f9f9f7;
    padding: 12px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 4px solid #4CAF50;
}

.readings-remaining p {
    margin: 5px 0;
}

.upgrade-prompt {
    font-style: italic;
    color: #666;
}

.limit-reached-message {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 30px auto;
    max-width: 600px;
}

.upgrade-button {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 15px;
    font-weight: bold;
}

.upgrade-button:hover {
    background: #45a049;
}

/* Styling for the shortcode display */
.readings-status {
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.readings-status.unlimited {
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
}

.readings-status.limited {
    background: #f9f9f7;
    border-left: 4px solid #FFC107;
}

/* Pagination controls */
.reading-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.reading-pagination button {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.reading-pagination button:hover:not(:disabled) {
    background-color: #45a049;
}

.reading-pagination button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 14px;
    color: #666;
}

/* buddypress shortcode css */

.bp-custom-member-nav ul.member-nav-list {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bp-custom-member-nav ul.member-nav-list li {
    display: inline-block;
    margin: 0 10px 0 0;
}

.bp-custom-member-nav ul.member-nav-list li a {
    display: block;
    padding: 5px 10px;
    text-decoration: none;
}

.bp-custom-member-nav ul.member-nav-list li.current a {
    font-weight: bold;
}



/* Responsive adjustments */

@media (max-width: 1024px) {
    .card {
        width: calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    .card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .card {
        width: calc(100% - 20px);
    }
}



@media (max-width: 768px) {
    .card {
        min-width: 100%;
    }
    
    .reading-form input {
        width: 100%;
    }
}