/**
 * Tarotify Demo Readings - Forced CSS
 * This CSS uses !important on all properties to ensure consistent styling across all WordPress themes
 * 
 * @package Tarotify_Demo
 * @version 1.0.0
 */

/* ============================================
   CONTAINER AND LAYOUT
   ============================================ */

.tarotify-demo-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 40px auto !important;
    padding: 40px 20px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

.tarotify-demo-container * {
    box-sizing: border-box !important;
}

/* ============================================
   HEADER
   ============================================ */

.tarotify-demo-header {
    text-align: center !important;
    margin-bottom: 50px !important;
}

.tarotify-demo-title {
    font-size: 42px !important;
    font-weight: 700 !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #3b82f6 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    line-height: 1.2 !important;
}

.tarotify-demo-subtitle {
    font-size: 18px !important;
    color: #666 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.6 !important;
}

/* ============================================
   CATEGORY CARDS GRID
   ============================================ */

.tarotify-demo-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin-bottom: 40px !important;
}

.tarotify-demo-category-card {
    position: relative !important;
    padding: 40px 30px !important;
    border-radius: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3) !important;
    text-align: center !important;
    overflow: hidden !important;
}

.tarotify-demo-category-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: inherit !important;
    opacity: 1 !important;
    transition: opacity 0.3s ease !important;
}

.tarotify-demo-category-card > * {
    position: relative !important;
    z-index: 1 !important;
}

.tarotify-demo-category-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4) !important;
}

.tarotify-demo-category-card:hover::before {
    opacity: 0.9 !important;
}

/* Love Card - Pink/Purple Gradient */
.tarotify-demo-love-card {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%) !important;
}

/* Career Card - Green/Blue Gradient */
.tarotify-demo-career-card {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%) !important;
}

/* Self Card - Amber/Red Gradient */
.tarotify-demo-self-card {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%) !important;
}

.tarotify-demo-icon {
    font-size: 48px !important;
    margin-bottom: 20px !important;
    display: block !important;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2)) !important;
}

.tarotify-demo-category-card h3 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.tarotify-demo-question {
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.tarotify-demo-button {
    display: inline-block !important;
    padding: 12px 28px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    backdrop-filter: blur(10px) !important;
}

.tarotify-demo-button:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: #ffffff !important;
    transform: scale(1.05) !important;
}

/* ============================================
   MODAL OVERLAY
   ============================================ */

.tarotify-demo-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    animation: tarotifyFadeIn 0.3s ease !important;
}

@keyframes tarotifyFadeIn {
    from {
        opacity: 0 !important;
    }
    to {
        opacity: 1 !important;
    }
}

.tarotify-demo-modal-content {
    position: relative !important;
    width: 100% !important;
    max-width: 900px !important;
    max-height: 90vh !important;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    border-radius: 20px !important;
    padding: 50px 40px 40px !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    animation: tarotifySlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@keyframes tarotifySlideUp {
    from {
        opacity: 0 !important;
        transform: translateY(40px) scale(0.95) !important;
    }
    to {
        opacity: 1 !important;
        transform: translateY(0) scale(1) !important;
    }
}

.tarotify-demo-close-btn {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 40px !important;
    height: 40px !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    font-size: 28px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.tarotify-demo-close-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: rotate(90deg) !important;
}

.tarotify-demo-modal-content h2 {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 30px 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

/* ============================================
   SHUFFLE MESSAGE
   ============================================ */

.tarotify-demo-shuffle-message {
    text-align: center !important;
    padding: 60px 20px !important;
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 500 !important;
}

.tarotify-demo-shuffle-message::after {
    content: '' !important;
    display: block !important;
    width: 50px !important;
    height: 50px !important;
    margin: 30px auto 0 !important;
    border: 5px solid rgba(255, 255, 255, 0.2) !important;
    border-top-color: #ffffff !important;
    border-radius: 50% !important;
    -webkit-animation: tarotifySpin 0.6s linear infinite !important;
    animation: tarotifySpin 0.6s linear infinite !important;
}

@-webkit-keyframes tarotifySpin {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes tarotifySpin {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

/* ============================================
   CARDS DISPLAY
   ============================================ */

.tarotify-demo-cards-container {
    margin-bottom: 40px !important;
}

.tarotify-demo-reading-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}

.tarotify-demo-card-wrapper {
    text-align: center !important;
    animation: tarotifyCardReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards !important;
}

.tarotify-demo-card-wrapper:nth-child(1) {
    animation-delay: 0.1s !important;
}

.tarotify-demo-card-wrapper:nth-child(2) {
    animation-delay: 0.2s !important;
}

.tarotify-demo-card-wrapper:nth-child(3) {
    animation-delay: 0.3s !important;
}

@keyframes tarotifyCardReveal {
    from {
        opacity: 0 !important;
        transform: translateY(20px) scale(0.9) !important;
    }
    to {
        opacity: 1 !important;
        transform: translateY(0) scale(1) !important;
    }
}

.tarotify-demo-card-image {
    width: 100% !important;
    max-width: 200px !important;
    height: auto !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    margin-bottom: 20px !important;
    transition: transform 0.3s ease !important;
}

.tarotify-demo-card-image:hover {
    transform: scale(1.05) !important;
}

.tarotify-demo-card-image.tarotify-demo-reversed {
    transform: rotate(180deg) !important;
}

.tarotify-demo-card-image.tarotify-demo-reversed:hover {
    transform: rotate(180deg) scale(1.05) !important;
}

.tarotify-demo-card-info {
    padding: 0 10px !important;
}

.tarotify-demo-position {
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0 0 8px 0 !important;
}

.tarotify-demo-card-name {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 10px 0 !important;
}

/* ============================================
   BADGES - UPRIGHT/REVERSED
   ============================================ */

.tarotify-demo-badge-upright,
.tarotify-demo-badge-reversed {
    display: inline-block !important;
    padding: 4px 12px !important;
    border-radius: 9999px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.tarotify-demo-badge-upright {
    background: rgba(250, 204, 21, 0.3) !important;
    color: rgb(254, 240, 138) !important;
    border: 1px solid rgba(250, 204, 21, 0.5) !important;
}

.tarotify-demo-badge-reversed {
    background: rgba(168, 85, 247, 0.3) !important;
    color: rgb(233, 213, 255) !important;
    border: 1px solid rgba(168, 85, 247, 0.5) !important;
}

/* ============================================
   KEYWORDS
   ============================================ */

.tarotify-demo-keywords {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-style: italic !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

/* ============================================
   CTA SECTION
   ============================================ */

.tarotify-demo-cta-container {
    text-align: center !important;
    padding: 40px 20px 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: 40px !important;
}

.tarotify-demo-cta-container h3 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 16px 0 !important;
}

.tarotify-demo-cta-container > p {
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 0 30px 0 !important;
    line-height: 1.6 !important;
}

.tarotify-demo-button-primary {
    display: inline-block !important;
    padding: 16px 40px !important;
    background: linear-gradient(to right, rgb(251, 191, 36), rgb(249, 115, 22)) !important;
    color: rgb(88, 28, 135) !important;
    border-radius: 12px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3) !important;
}

.tarotify-demo-button-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 35px rgba(251, 191, 36, 0.4) !important;
}

/* ============================================
   FOOTER
   ============================================ */

.tarotify-demo-footer {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-top: 30px !important;
}

.tarotify-demo-powered-by {
    text-align: center !important;
    margin-top: 40px !important;
    padding-top: 30px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.tarotify-demo-powered-by p {
    font-size: 14px !important;
    color: #666 !important;
    margin: 0 !important;
}

.tarotify-demo-powered-by a {
    color: #8b5cf6 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.tarotify-demo-powered-by a:hover {
    text-decoration: underline !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .tarotify-demo-container {
        padding: 30px 15px !important;
    }
    
    .tarotify-demo-title {
        font-size: 32px !important;
    }
    
    .tarotify-demo-subtitle {
        font-size: 16px !important;
    }
    
    .tarotify-demo-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .tarotify-demo-category-card {
        padding: 30px 20px !important;
    }
    
    .tarotify-demo-modal-content {
        width: 95% !important;
        padding: 40px 20px 30px !important;
        max-height: 95vh !important;
    }
    
    .tarotify-demo-modal-content h2 {
        font-size: 24px !important;
    }
    
    .tarotify-demo-reading-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .tarotify-demo-card-image {
        max-width: 180px !important;
    }
    
    .tarotify-demo-cta-container h3 {
        font-size: 22px !important;
    }
}

@media (max-width: 480px) {
    .tarotify-demo-title {
        font-size: 28px !important;
    }
    
    .tarotify-demo-category-card h3 {
        font-size: 24px !important;
    }
    
    .tarotify-demo-icon {
        font-size: 40px !important;
    }
    
    .tarotify-demo-button-primary {
        padding: 14px 32px !important;
        font-size: 16px !important;
    }
}