/**
 * Tarot Passport Frontend Styles
 *
 * Styles for the frontend reader display and map
 *
 * @package TarotPassport
 * @since 0.1.1
 */

:root {
    --primary-color: #6d7c5f;
    /* Evergreen Moss (lightened for dark mode) */
    --secondary-color: #9a7bff;
    /* Mystic Violet (pops on dark background) */
    --accent-gold: #e0c891;
    /* Candlelight Gold (warm accent) */
    --background-base: #1e1e1e;
    /* Deep Ink (main dark background) */
    --card-bg: #2b2b2b;
    /* Charcoal (cards, nav blocks) */
    --text-color: #d7d7d7;
    /* Fog White (main text) */
    --muted-accent: #a9a9a9;
    /* Taupe Gray (subtext, borders) */
}

/* shortocde button styles */
.shortcode-button {
    background-color: #14F1D9;
    color: #000000 !important;
    display: inline-block;
    font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif;
    letter-spacing: 0.08em;
    padding: 16px 40px;
    text-decoration: none !important;
}
.shortcode-button:hover {
    background-color: #14F1D9 !important;
    font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif;
    letter-spacing: 0.08em;
    padding: 16px 40px !important;
}

.shortcode-button-wrapper {
    text-align: center;
    margin-bottom: 36px;
}

/* View Toggle */
.readers-view-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.view-toggle-btn {
    background: var(--card-bg);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 16px;
}

.view-toggle-btn:hover {
    background: var(--primary-color);
    color: var(--background-base);
}

.view-toggle-btn.active {
    background: var(--primary-color);
    color: var(--background-base);
}

/* Controls */
.readers-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.search-control,
.sort-control {
    flex: 1;
    min-width: 200px;
}

.search-control input,
.sort-control select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--muted-accent);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 16px;
}

.search-control input:focus,
.sort-control select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(154, 123, 255, 0.1);
}

/* List View */
.readers-list-view {
    display: none;
}

.readers-list-view.active {
    display: block;
}

.readers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.reader-card {
    background: var(--card-bg);
    border: 2px solid var(--muted-accent);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.reader-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(224, 200, 145, 0.15);
}

.reader-avatar {
    text-align: center;
    margin-bottom: 15px;
}

.reader-avatar img {
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.reader-info {
    flex: 1;
}

.reader-name {
    color: var(--accent-gold);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-align: center;
}

.reader-location {
    color: var(--secondary-color);
    font-weight: 600;
    margin: 5px 0;
    text-align: center;
}

.reader-style {
    color: var(--muted-accent);
    font-size: 14px;
    margin: 5px 0;
    text-align: center;
}

.reader-youtube {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    text-align: center;
    width: 100%;
}

.reader-youtube:hover {
    color: var(--accent-gold);
}

.reader-actions {
    margin-top: 15px;
    text-align: center;
}

.reader-bio-link {
    display: inline-block;
    background: var(--primary-color);
    color: var(--background-base);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.reader-bio-link:hover {
    background: var(--accent-gold);
    color: var(--background-base);
    transform: translateY(-1px);
}

.reader-profile-link,
.special-body a:visited{
    color: #FFFFFF !important;
    text-decoration: none !important;
}
.special-body a:hover{
    text-decoration: underline !important;
}

/* Map View */
.readers-map-view {
    display: none;
}

.readers-map-view.active {
    display: block;
}

#readers-map {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--muted-accent);
    margin-bottom: 20px;
}

.current-journey-info {
    background: var(--card-bg);
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.current-journey-info h3 {
    color: var(--accent-gold);
    margin: 0 0 10px 0;
    font-size: 18px;
}

.current-journey-info p {
    color: var(--text-color);
    margin: 0;
    font-size: 16px;
}

/* Map Customization */
.leaflet-marker-icon.leaflet-zoom-animated.leaflet-interactive {
    height: 34px !important;
    width: 21px !important;
}

.leaflet-popup-content-wrapper {
    background: #2b2b2b !important;
    color: #d7d7d7 !important;
    border-radius: 8px !important;
    border: 2px solid #6d7c5f !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.leaflet-popup-tip {
    background: #2b2b2b !important;
    border: 2px solid #6d7c5f !important;
}

.leaflet-popup-content {
    margin: 15px !important;
    font-family: inherit !important;
    color: #d7d7d7 !important;
}

.leaflet-popup-close-button {
    color: #d7d7d7 !important;
    font-size: 18px !important;
    font-weight: bold !important;
}

.leaflet-popup-close-button:hover {
    color: #e0c891 !important;
}

.map-popup h3 {
    color: #e0c891 !important;
    font-weight: 700 !important;
    margin: 0 0 12px 0 !important;
    font-size: 16px !important;
    border-bottom: 1px solid #6d7c5f !important;
    padding-bottom: 8px !important;
}

.map-popup h3 .reader-link {
    color: #e0c891 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.map-popup h3 .reader-link:hover,
.map-popup h3 .reader-link:visited {
    color: #ffeaa7 !important;
    text-decoration: underline !important;
}

.map-popup p {
    margin: 8px 0 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

.map-popup strong {
    color: #9a7bff !important;
    font-weight: 600 !important;
}

.map-popup-title {
    color: var(--accent-gold);
    font-weight: 700;
    margin: 0 0 8px 0;
    font-size: 16px;
}

.map-popup-location {
    color: var(--secondary-color);
    font-weight: 600;
    margin: 5px 0;
    font-size: 14px;
}

.map-popup-link {
    display: inline-block;
    background: var(--primary-color);
    color: var(--background-base);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    font-size: 14px;
}

.map-popup-link:hover {
    background: var(--accent-gold);
    color: var(--background-base);
}

/* Responsive Design */
@media (max-width: 768px) {
    .readers-controls {
        flex-direction: column;
    }

    .readers-grid {
        grid-template-columns: 1fr;
    }

    .view-toggle-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    #readers-map {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .reader-card {
        padding: 15px;
    }

    .reader-name {
        font-size: 18px;
    }

    #readers-map {
        height: 300px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {

    .reader-card,
    .view-toggle-btn,
    .reader-bio-link,
    .map-popup-link {
        transition: none;
    }
}

/* Countdown Timer Styles */
.tarot-countdown-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle light specks background effect */
.tarot-countdown-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(2px 2px at 20px 30px,
            rgba(255, 255, 255, 0.1),
            transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 130px 80px,
            rgba(255, 255, 255, 0.1),
            transparent),
        radial-gradient(2px 2px at 160px 30px,
            rgba(255, 255, 255, 0.1),
            transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    pointer-events: none;
}

.countdown-title {
    font-family: "Concert One", display !important;
    font-size: 32px !important;
    margin: 0 0 20px 0;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.countdown-timer {
    display: flex !important;
    font-family: "Rubik", sans-serif;
    justify-content: center !important;
    gap: 20px !important;
    margin-bottom: 20px !important;
    position: relative !important;
    z-index: 1 !important;
    flex-wrap: nowrap !important;
}

.countdown-unit {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    min-width: 15% !important;
}

.countdown-number {
    font-size: 20px;
    line-height: 1;
}

.countdown-label {
    font-size: 14px;
    letter-spacing: 1px;
    opacity: 0.9;
}

.countdown-separator {
    font-size: 20px;
    font-family: inherit;
    line-height: 1;
    margin-top: -2px;
}

.countdown-message {
    font-style: italic;
    margin: 20px 0 0 0;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

/* Countdown Animation */
@keyframes countdownPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.countdown-number {
    animation: countdownPulse 2s ease-in-out infinite;
}

/* Responsive Countdown */
@media (min-width: 481px) and (max-width: 768px) {
    .countdown-timer {
        flex-wrap: wrap;
        gap: 10px;
    }

    .countdown-unit {
        min-width: 60px;
    }

    .countdown-number {
        font-size: 24px;
        padding: 8px 12px;
        min-width: 60px;
    }

    .countdown-separator {
        font-size: 24px !important;
        margin-top: 0;
    }

    .countdown-title {
        font-size: 24px !important;
    }
}

@media (max-width: 480px) {
    .countdown-timer {
        gap: 15px;
    }

    .countdown-separator {
        margin-top: 2px;
    }

    .countdown-number,
    .countdown-title {
        font-size: 18px !important;
    }

    .countdown-unit {
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }

    .countdown-label,
    .countdown-separator {
        line-height: 10px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {

    .reader-card,
    .view-toggle-btn,
    .countdown-number {
        border-width: 3px;
    }
}

/* Journey Map Shortcode Styles */
.journey-map-shortcode {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

#tarot-journey-map {
    border: 3px solid #ff4c4c;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Journey Map Dark Theme */
#tarot-journey-map .leaflet-layer,
#tarot-journey-map .leaflet-control-zoom-in,
#tarot-journey-map .leaflet-control-zoom-out,
#tarot-journey-map .leaflet-control-attribution {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

#tarot-journey-map.leaflet-container {
    background: #000;
}

.tarot-map-popup {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 300px;
}

.tarot-map-popup .map-popup h3 {
    margin: 0 0 10px 0;
    color: #23282d;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 5px;
}

.tarot-map-popup .map-popup p {
    margin: 5px 0;
    font-size: 13px;
    line-height: 1.4;
    color: #666;
}

.tarot-map-popup .map-popup strong {
    color: #23282d;
    font-weight: 600;
}

.tarot-map-popup .status-current {
    color: #0073aa;
    font-weight: 600;
}

.tarot-map-popup .status-completed {
    color: #46b450;
    font-weight: 600;
}

.tarot-map-popup .status-active {
    color: #ffa500;
    font-weight: 600;
}

/* Status colors for dark mode popups */
.map-popup .status-current {
    color: #4ecdc4 !important;
    font-weight: 600 !important;
}

.map-popup .status-completed {
    color: #96ceb4 !important;
    font-weight: 600 !important;
}

.map-popup .status-active {
    color: #ffeaa7 !important;
    font-weight: 600 !important;
}

.map-popup .status-future {
    color: #dda0dd !important;
    font-weight: 600 !important;
}

.custom-marker {
    background: transparent;
    border: none;
}

.journey-marker-stop {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
}

.journey-marker-stop img {
    width: 20px;
    height: 30px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
}

.journey-marker-tooltip {
    background: #e0c891;
    border: 3px solid #6d7c5f;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(224, 200, 145, 0.5);
    height: 20px;
    width: 20px;
}

.journey-path {
    display: inline-block;
    width: 30px;
    height: 3px;
    border-radius: 2px;
    margin-right: 10px;
}

.journey-complete {
    background: #46b450;
}

.journey-current {
    background: #ffa500;
}

.journey-future {
    background: #9c27b0;
}

/* Map Legend Styles for Shortcode */
.journey-map-shortcode .map-legend {
    /* border: 1px solid #e5e5e5; */
    border: none;
    border-radius: 8px;
    margin-top: 15px;
    padding: 10px;
}

.journey-map-shortcode .map-legend h4 {
    margin: 0 0 15px 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.journey-map-shortcode .map-legend ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.journey-map-shortcode .map-legend ul li {
    align-items: center;
    color: #ffffff;
    display: flex;
    font-size: 14px;
    margin-bottom: 8px;
}

.journey-map-shortcode .map-legend ul li img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
}

.journey-map-shortcode .map-legend ul li:last-child {
    margin-bottom: 0;
}

.journey-marker-stop-li {
    margin-bottom: 5px;
}

.journey-marker-stop img {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

/* Journey Path Styles */
.journey-path {
    z-index: 1000;
}

/* Journey Path Legend */
.journey-path-legend {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.journey-path-legend .legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.journey-path-legend .path-line {
    width: 30px;
    height: 3px;
    background: repeating-linear-gradient(to right,
            #e0c891 0,
            #e0c891 5px,
            transparent 5px,
            transparent 10px);
    margin-right: 10px;
    border-radius: 2px;
}

/* Responsive Design for Journey Map */
@media (min-width: 481px) and (max-width: 768px) {
    .journey-map-shortcode {
        padding: 15px;
    }

    #tarot-journey-map {
        height: 400px !important;
    }

    .journey-map-shortcode .map-legend {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .journey-map-shortcode {
        padding: 10px;
    }

    #tarot-journey-map {
        height: 300px !important;
    }

    .tarot-map-popup {
        max-width: 250px;
    }

    .tarot-map-popup .map-popup h3 {
        font-size: 14px;
    }

    .tarot-map-popup .map-popup p {
        font-size: 12px;
    }
}

/* ========================================
   READER BIO CARD STYLES
   ======================================== */

/* Base card styles */
.reader-card {
    background: var(--card-bg);
    border: 2px solid var(--muted-accent);
    border-radius: 16px;
    padding: 12px;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reader-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--primary-color),
            var(--secondary-color),
            var(--accent-gold));
    border-radius: 16px 16px 0 0;
}

.reader-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(224, 200, 145, 0.15);
}

/* Card titles */
.card-title {
    color: var(--accent-gold);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 25px 0 !important;
    text-align: center;
    position: relative;
}

.card-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg,
            var(--primary-color),
            var(--secondary-color));
    border-radius: 2px;
}

/* ========================================
   READER PROFILE CARD
   ======================================== */

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

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.profile-avatar {
    margin-bottom: 20px;
}

.profile-avatar img {
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(109, 124, 95, 0.3);
    transition: all 0.3s ease;
}

.profile-avatar img:hover {
    border-color: var(--accent-gold);
    transform: scale(1.05);
}

.profile-name {
    color: var(--accent-gold);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.profile-location {
    color: var(--secondary-color);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.location-icon {
    font-size: 18px;
}

.profile-section {
    margin: 20px 0;
    padding: 20px;
    background: rgba(109, 124, 95, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(109, 124, 95, 0.2);
}

.section-title {
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.reading-styles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.style-tag {
    background: var(--primary-color);
    color: var(--background-base);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.style-tag:hover {
    background: var(--accent-gold);
    transform: translateY(-1px);
}

.youtube-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ff0000;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.youtube-link:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.youtube-icon {
    font-size: 18px;
}

/* ========================================
   DECKS & TOOLS CARD
   ======================================== */

.decks-section,
.tools-section {
    margin: 25px 0;
    padding: 20px;
    background: rgba(154, 123, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(154, 123, 255, 0.2);
}

.decks-section .section-title,
.tools-section .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.section-icon {
    font-size: 20px;
}

.content-text {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* ========================================
   SOCIAL MEDIA CARD
   ======================================== */

.reader-card.layout-list .social-links {
    display: flex;
    flex-direction: column;
}

.social-link {
    align-items: center;
    border: 1px solid var(--muted-accent);
    border-radius: 6px;
    background: var(--background-base);
    color: var(--text-color);
    display: flex;
    margin-bottom: 12px;
    gap: 10px;
    padding: 15px 20px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links {
    display: flex;
    flex-direction: column;
}

.social-link:hover {
    background: var(--card-bg);
    border-color: var(--secondary-color);
    transform: translateX(5px);
}

.social-icon {
    font-size: 1.2em;
}

.social-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(224, 200, 145, 0.2);
}

.social-icon {
    font-size: 24px;
    width: 30px;
    text-align: center;
}

.social-name {
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Platform-specific colors */
.social-pinterest:hover {
    border-color: #e60023;
}

.social-youtube:hover {
    border-color: #ff0000;
}

.social-tiktok:hover {
    border-color: #000000;
}

.social-instagram:hover {
    border-color: #e4405f;
}

.social-facebook:hover {
    border-color: #1877f2;
}

.social-twitter:hover {
    border-color: #1da1f2;
}

.social-bluesky:hover {
    border-color: #00a2ff;
}

/* ========================================
   PHILOSOPHY CARD
   ======================================== */

.philosophy-section,
.highlights-section,
.traveling-deck-section {
    margin: 25px 0;
    padding: 25px;
    background: rgba(224, 200, 145, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(224, 200, 145, 0.2);
    position: relative;
}

.philosophy-section::before,
.highlights-section::before,
.traveling-deck-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--primary-color));
    border-radius: 12px 12px 0 0;
}

.philosophy-section .section-title,
.highlights-section .section-title,
.traveling-deck-section .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-gold);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* ========================================
   CALENDAR CARD
   ======================================== */

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calendar-event {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(109, 124, 95, 0.1);
    border: 2px solid var(--muted-accent);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.calendar-event:hover {
    border-color: var(--accent-gold);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(224, 200, 145, 0.2);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    background: var(--primary-color);
    border-radius: 8px;
    padding: 10px;
    color: var(--background-base);
    font-weight: 700;
}

.date-day {
    font-size: 24px;
    line-height: 1;
}

.date-month {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-details {
    flex: 1;
}

.event-title {
    color: var(--accent-gold);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.event-type {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.event-location {
    color: var(--text-color);
    font-size: 14px;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.event-description {
    color: var(--muted-accent);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .reader-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .card-title {
        font-size: 20px;
    }

    .profile-name {
        font-size: 24px;
    }

    .calendar-event {
        flex-direction: column;
        text-align: center;
    }

    .event-date {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .reader-card {
        padding: 15px;
    }

    .card-title {
        font-size: 18px;
    }

    .profile-name {
        font-size: 20px;
    }

    .reading-styles {
        gap: 8px;
    }

    .style-tag {
        padding: 6px 12px;
        font-size: 12px;
    }

    .social-link {
        padding: 12px 15px;
    }

    .social-icon {
        font-size: 20px;
    }

    .social-name {
        font-size: 14px;
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

@media (prefers-reduced-motion: reduce) {

    .reader-card,
    .social-link,
    .calendar-event,
    .style-tag,
    .youtube-link {
        transition: none;
    }

    .social-link::before {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .reader-card {
        border-width: 3px;
    }

    .social-link,
    .calendar-event {
        border-width: 3px;
    }
}

/* ========================================
   NEW READER PAGES STYLES
   ======================================== */

/* Active Readers Page Styles */
.tarot-active-readers {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: var(--background-base);
    color: var(--text-color);
}

.reader-controls {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--muted-accent);
}

.reader-search-form {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-field,
.sort-field {
    flex: 1;
    min-width: 200px;
}

.reader-search-form .et_pb_contact_field {
    background: var(--background-base);
    border: 2px solid var(--primary-color);
    color: var(--text-color);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
}

.reader-search-form .et_pb_contact_field:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(154, 123, 255, 0.1);
}

.reader-search-form .et_pb_button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reader-search-form .et_pb_button:hover {
    background: #8b6bff;
    transform: translateY(-2px);
}

.readers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.reader-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--muted-accent);
}

.reader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--secondary-color);
}

.reader-image img {
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.reader-name a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.3em;
    transition: color 0.3s ease;
}

.reader-name a:hover {
    color: var(--secondary-color);
}

.reader-location,
.reader-styles,
.reader-youtube {
    margin: 8px 0;
    font-size: 0.95em;
    color: var(--muted-accent);
}

.reader-youtube a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.reader-youtube a:hover {
    color: var(--secondary-color);
}

/* Single Reader Profile Styles */
.single-reader-profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: var(--background-base);
    color: var(--text-color);
}

.reader-header {
    background: linear-gradient(135deg,
            var(--primary-color) 0%,
            var(--secondary-color) 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.reader-header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.reader-header-content {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.reader-header .reader-image img {
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.reader-header-info h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.reader-location {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 20px;
}

.reader-header-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.reader-header-links .et_pb_button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.reader-header-links .et_pb_button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.reader-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Quote Section */
.reader-quote-section {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    position: relative;
    border: 1px solid var(--muted-accent);
}

.reader-quote {
    margin: 0;
    font-style: italic;
    font-size: 1.2em;
    line-height: 1.6;
    color: var(--text-color);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: -20px;
    font-size: 4em;
    color: var(--secondary-color);
    font-family: serif;
    opacity: 0.3;
}

/* Bio Section */
.reader-bio-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    border: 1px solid var(--muted-accent);
}

.reader-bio-section h2 {
    color: var(--text-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.bio-content {
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--muted-accent);
}

/* Reading Style Tags */
.reader-style-section,
.reader-favorites-section,
.reader-traveling-deck-section {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
    border: 1px solid var(--muted-accent);
}

.reader-style-section h3,
.reader-favorites-section h3,
.reader-traveling-deck-section h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.reading-styles {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.style-tag {
    background: var(--secondary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.style-tag:hover {
    transform: scale(1.05);
}

/* Favorites Section */
.favorites-item {
    margin-bottom: 20px;
}

.favorites-item h3 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.2em;
}

.favorites-item p {
    color: var(--muted-accent);
    line-height: 1.6;
}

/* Calendar Section */
.reader-calendar-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--muted-accent);
}

.reader-calendar-section h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.calendar-event {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border: 1px solid var(--muted-accent);
    border-radius: 8px;
    background: var(--background-base);
    transition: all 0.3s ease;
}

.calendar-event:hover {
    border-color: var(--secondary-color);
    transform: translateX(5px);
}

.event-date {
    text-align: center;
    min-width: 60px;
    background: var(--primary-color);
    border-radius: 8px;
    padding: 10px;
}

.date-day {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
    color: white;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    line-height: 1;
}

.event-details h4 {
    margin: 0 0 5px 0;
    color: var(--text-color);
    font-size: 1.1em;
}

.event-location,
.event-description {
    margin: 5px 0;
    color: var(--muted-accent);
    font-size: 0.95em;
}

/* Sidebar */
.reader-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.reader-social-sidebar,
.reader-schedule-sidebar {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--muted-accent);
}

.reader-social-sidebar h3,
.reader-schedule-sidebar h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 8px;
    font-size: 1.3em;
}

.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.schedule-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--muted-accent);
    color: var(--muted-accent);
    transition: color 0.3s ease;
}

.schedule-list li:last-child {
    border-bottom: none;
}

.schedule-list li:hover {
    color: var(--text-color);
}

/* Responsive Design for Reader Pages */
@media (max-width: 768px) {
    .reader-header-content {
        flex-direction: column;
        text-align: center;
    }

    .reader-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .reader-search-form {
        flex-direction: column;
    }

    .search-field,
    .sort-field {
        width: 100%;
    }

    .readers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .calendar-event {
        flex-direction: column;
        text-align: center;
    }

    .event-date {
        min-width: auto;
    }

    .reader-header h1 {
        font-size: 2em;
    }

    .reader-header-links {
        justify-content: center;
    }
}



/* DIVI CUSTOM CSS */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 99;
}

.font-white{
    color: #fff;
}

.special-body a:link {
color: #ffffff; /* white */
}

.special-body a:visited {
color: #ffffff; /* white for visited links */
}

.special-body a:active {
color: #f4B740; /* orange when active/clicked */
}

.special-body a:hover {
color: #f4B740; /* optional: orange on hover */
}
/* Divi Buttons */
.special-links .special-buttons .et_pb_button .et_pb_button_0 .et_hover_enabled .et_pb_bg_layout_light {
    color: #091744 !important;
    border-width: 0px !important;
    border-color: #7e7a59;
    border-radius: 100px;
    letter-spacing: 1px;
    font-size: 14px;
    font-family: 'Rubik', Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    background-color: #14f1d9;
}

.home-reader-bio {
    -webkit-animation-duration: .2s;
    animation-duration: .2s;
    background: transparent;
    border: 0;
    color: #FFFFFF !important;
    font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif;
    font-size: 100%;
    font-weight: 700;
    margin: 32px 0;
    outline: 0;
    padding: 0;
    text-align: left;
    vertical-align: baseline;
    word-wrap: break-word;
}

.reader-bio-link{
    background: transparent;
    color: #FFFFFF !important;
}
.reader-bio-link:hover{
    text-decoration: underline;
}

.home-reader-pic {
    border: 0 solid #333;
    border-color: #000000;
    border-radius: 50px 10px 10px 50px;
    border-width: 2px;
    box-shadow: 0px 12px 18px -6px rgba(0, 0, 0, 0.3);
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.home-reader-name {
    color: #FFFFFF !important;
    font-family: 'Concert One', display;
    font-size: 20px;
    line-height: 1.1em;
    margin-bottom: 0.3em !important;
    padding-bottom: 0 !important;
    text-align: right;
    text-transform: uppercase;
}
