/**
 * Frontend Styles for Arcana Oracle Cards
 */

/* Container Layout */
.arcana-oracle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    min-height: 600px;
    transition: all 0.5s ease;
    position: relative;
}

/* When card is revealed, switch to single column (reveal-wrapper handles internal grid) */
.arcana-oracle-container.card-revealed {
    display: block; 
    align-items: start;
    justify-content: initial;
}

/* Deck Area */
.arcana-oracle-deck-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

/* 3-column deck layout (matches revealed card layout) */
.arcana-deck-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
    width: 100%;
}

.arcana-deck-left-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.arcana-deck-right-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arcana-deck-description {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.arcana-deck-description p {
    margin-bottom: 1em;
}

.arcana-deck-description p:last-child {
    margin-bottom: 0;
}

.arcana-oracle-deck-area.slide-left {
    transform: translateX(-50px);
    opacity: 0.3;
}

/* Complete fade out when card is drawn - faster transition */
.arcana-oracle-deck-area.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Hide completely after fade */
.arcana-oracle-deck-area.hidden {
    display: none;
}


/* Breathing animation (idle state) */
@keyframes breathe {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}
/* ==================================================
   3-CARD STACK CSS
   Add/replace these sections in frontend.css
   ================================================== */

/* Shadow Container - No shadow, just spacing */
.arcana-deck-shadow-container {
    display: inline-block;
    margin: 40px 0;
}

/* Deck Wrapper - Contains the 3 stacked cards */
.arcana-deck-wrapper {
    position: relative;
    width: 400px;
    height: 560px; /* Fixed height for stacking - proportional to width */
    margin: 0 auto;
    background: transparent;
    border-radius: 18px;
}
  

  
/* Individual Card Backs - Stacked with offsets */
.arcana-card-back {
    position: absolute;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    transition: all 0.3s ease;
}

.arcana-card-back img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: none;
    outline: none;
    vertical-align: bottom;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}
  


/* Card positioning - stacked with slight offsets */
.arcana-card-1 {
    top: 10px;
    left: 5px;
    z-index: 1;
    transform: rotate(-2deg);
}

.arcana-card-2 {
    top: 5px;
    left: 0;
    z-index: 2;
    transform: rotate(1deg);
}

.arcana-card-3 {
    top: 0;
    left: -5px;
    z-index: 3;
    transform: rotate(-1deg);
}

/* Breathing animation (idle state) - applies to all cards */
@keyframes breathe {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.01); }
}

.arcana-card-1 {
    animation: breathe 4s ease-in-out infinite;
    animation-delay: 0s;
}

.arcana-card-2 {
    animation: breathe 4s ease-in-out infinite;
    animation-delay: 0.1s;
}

.arcana-card-3 {
    animation: breathe 4s ease-in-out infinite;
    animation-delay: 0.2s;
}

/* ==================================================
   COMPLETE SHUFFLE WITH Z-INDEX CYCLING
   Cards shuffle AND move through the stack
   ================================================== */

/* CARD 1: Shuffles at 0-1s, moves to back, cycles through stack */
@keyframes shuffle-card-1 {
    0% {
        transform: rotate(0) translateX(0) scale(1);
        z-index: 3;  /* Start on top */
    }
    16.67% {  /* 0.5s - peak of shuffle */
        transform: rotate(5deg) translateX(105%) scale(0.96);
        z-index: 3;
    }
    33.33% {  /* 1s - back to center, NOW MOVE TO BACK */
        transform: rotate(0) translateX(0) scale(1);
        z-index: 1;  /* Move to back */
    }
    66.67% {  /* 2s - move up one level */
        transform: rotate(0) translateX(0) scale(1);
        z-index: 2;  /* Move to middle */
    }
    100% {  /* 3s - back to top */
        transform: rotate(0) translateX(0) scale(1);
        z-index: 3;  /* Back to top */
    }
}

/* CARD 2: Starts middle, moves to top when card 1 goes back */
@keyframes shuffle-card-2 {
    0% {  /* 0s - in middle */
        transform: rotate(0) translateX(0) scale(1);
        z-index: 2;
    }
    33.33% {  /* 1s - move to top, then shuffle */
        transform: rotate(0) translateX(0) scale(1);
        z-index: 3;  /* Now on top */
    }
    50% {  /* 1.5s - peak of shuffle */
        transform: rotate(5deg) translateX(105%) scale(0.96);
        z-index: 3;
    }
    66.67% {  /* 2s - back to center, MOVE TO BACK */
        transform: rotate(0) translateX(0) scale(1);
        z-index: 1;  /* Move to back */
    }
    100% {  /* 3s - move to middle */
        transform: rotate(0) translateX(0) scale(1);
        z-index: 2;  /* Back to middle */
    }
}

/* CARD 3: Starts back, cycles through */
@keyframes shuffle-card-3 {
    0% {  /* 0s - in back */
        transform: rotate(0) translateX(0) scale(1);
        z-index: 1;
    }
    33.33% {  /* 1s - move to middle */
        transform: rotate(0) translateX(0) scale(1);
        z-index: 2;
    }
    66.67% {  /* 2s - move to top, then shuffle */
        transform: rotate(0) translateX(0) scale(1);
        z-index: 3;  /* Now on top */
    }
    83.33% {  /* 2.5s - peak of shuffle */
        transform: rotate(5deg) translateX(105%) scale(0.96);
        z-index: 3;
    }
    100% {  /* 3s - back to center, MOVE TO BACK */
        transform: rotate(0) translateX(0) scale(1);
        z-index: 1;  /* Move to back */
    }
}

/* Card initial positioning - will be overridden by animations */
.arcana-card-1 {
    top: 0;
    left: 0;
    z-index: 3;
}

.arcana-card-2 {
    top: 4px;
    left: 0;
    z-index: 2;
}

.arcana-card-3 {
    top: 8px;
    left: 0;
    z-index: 1;
}

/* No animation when idle */
.arcana-card-1,
.arcana-card-2,
.arcana-card-3 {
    animation: none;
}

/* Apply the looping animations when shuffling */
.arcana-card-1.shuffling-subtle,
.arcana-card-1.shuffling-medium,
.arcana-card-1.shuffling-intense {
    animation: shuffle-card-1 3s linear 0s infinite normal;
}

.arcana-card-2.shuffling-subtle,
.arcana-card-2.shuffling-medium,
.arcana-card-2.shuffling-intense {
    animation: shuffle-card-2 3s linear 0s infinite normal;
}

.arcana-card-3.shuffling-subtle,
.arcana-card-3.shuffling-medium,
.arcana-card-3.shuffling-intense {
    animation: shuffle-card-3 3s linear 0s infinite normal;
}

/* Fade out all cards when drawn */
.arcana-deck-wrapper.fade-out .arcana-card-back {
    opacity: 0;
    transition: opacity 0.4s ease;
}


/* ==================================================
   HOW THE SHUFFLE WORKS:
   
   0-1s: Card 1 (top) shuffles → moves to BACK (z:1)
         Card 2 moves from middle to TOP (z:3)
         Card 3 moves from back to MIDDLE (z:2)
   
   1-2s: Card 2 (now top) shuffles → moves to BACK (z:1)
         Card 3 moves from middle to TOP (z:3)
         Card 1 moves from back to MIDDLE (z:2)
   
   2-3s: Card 3 (now top) shuffles → moves to BACK (z:1)
         Card 1 moves from middle to TOP (z:3)
         Card 2 moves from back to MIDDLE (z:2)
   
   Then the 3s cycle repeats!
   
   This creates the "dealing from top, putting on bottom"
   effect like real card shuffling.
   ================================================== */



/* Pull Button - inherits theme styles */
.arcana-pull-button {
    cursor: pointer;
    transition: all 0.3s ease;
}

.arcana-pull-button.shuffling {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Card Display Area */
.arcana-oracle-card-area {
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.arcana-oracle-card-area.reveal-area {
    display: flex;
    opacity: 1;
}

.arcana-card-display {
    width: 100%;
}

/* Fade Animations */
@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes cardFlip {
    0% {
        opacity: 0;
        transform: perspective(1000px) rotateY(-90deg);
    }
    50% {
        opacity: 0.5;
        transform: perspective(1000px) rotateY(-45deg);
    }
    100% {
        opacity: 1;
        transform: perspective(1000px) rotateY(0deg);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Revealed Card Styling */
.arcana-card-reveal-wrapper {
    display: grid;
    grid-template-columns: 200px 400px 1fr;
    gap: 40px;
    align-items: start;
}

/* Left column - contains Draw Another button only */
.arcana-card-action-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Hide action column when card is minimized */
.arcana-card-reveal-wrapper.card-minimized .arcana-card-action-column {
    display: none;
}

/* Left column wrapper (contains card image + draw another) */
.arcana-card-left-column {
    display: flex;
    flex-direction: column;
}

.arcana-revealed-card-image {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    display: flex;
    flex-direction: column;
}

.arcana-revealed-card-image.reveal-desktop {
    animation-name: cardFlip;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

.arcana-revealed-card-image.reveal-mobile {
    animation-name: fadeInDown;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

.arcana-card-content-wrapper {
    padding: 20px 0;
    opacity: 0;
    color: inherit;
}

.arcana-card-content-wrapper.reveal-desktop {
    animation-name: fadeInLeft;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

.arcana-card-content-wrapper.reveal-mobile {
    animation-name: fadeInDown;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

.arcana-card-image-wrapper {
    position: relative;
}

.arcana-card-image {
    width: 100%;
    height: auto;
    border-radius: 18px;
    display: block;
}

/* Override Elementor styles for revealed card image */
.arcana-revealed-card-image img.arcana-card-image {
    border-radius: 20px !important;
}


/* ===================================================
   CSS NEEDED FOR REVERSALS
   Add to frontend.css
   =================================================== */

/* Reversed card back during shuffle */
.arcana-card-back.will-reverse {
    transform: rotate(180deg);
}

/* Reversed card image when displayed */
.arcana-card-image.reversed {
    transform: rotate(180deg);
}

/* Draw Another section styling - in left action column */
.arcana-draw-another-wrapper {
    width: 100%;
}

.arcana-draw-another-section {
    padding-top: 0;
    text-align: center;
}

.arcana-draw-another-heading {
    font-size: 24px;
    margin: 0 0 20px 0;
    font-weight: 500;
    color: inherit;
}

.arcana-draw-another-button {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Card Content */
.arcana-card-title {
    font-size: 36px;
    font-weight: 500;
    margin: 0 0 20px 0;
    text-transform: capitalize;
    letter-spacing: 2px;
    margin-bottom: 0 !important;
}

.arcana-card-state {
    font-size: 16px;
    text-transform: uppercase;
    margin: 5px 0 20px 0;
    opacity: 0.7;
}

.arcana-card-quote {
    font-size: 22px;
      line-height: 1.2;
    font-style: italic;
    margin-bottom: 20px;
}

.arcana-card-integration {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.arcana-card-integration p:last-child {
    margin-bottom: 0;
}

/* PDF Download Button */
.arcana-card-pdf-download {
    margin: 25px 0;
    text-align: center;
}
.arcana-pdf-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.arcana-pdf-button:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.arcana-pdf-icon {
    font-size: 20px;
}

/* Photo Credit */
.arcana-photo-credit {
    font-size: 11px;
    color: #999;
    font-style: italic;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: left;
}

.arcana-photo-credit a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.arcana-photo-credit a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Error Message */
.arcana-oracle-error {
    color: #d63638;
    background: #fef7f8;
    border: 1px solid #d63638;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .arcana-oracle-container.card-revealed {
        grid-template-columns: 1fr;
    }
    
    .arcana-card-reveal-wrapper {
        grid-template-columns: 150px 350px 1fr;
        gap: 30px;
    }
    
    .arcana-deck-layout {
        grid-template-columns: 1fr 350px;
        gap: 30px;
    }
    
    .arcana-card-display.multi-card-layout {
        grid-template-columns: 350px 1fr 150px;
        gap: 30px;
    }
    
    .arcana-deck-wrapper {
        width: 350px;
        height: 490px;
    }
}

@media (max-width: 768px) {
    .arcana-oracle-container {
        padding: 20px;
    }
    
    .arcana-oracle-container.card-revealed {
        grid-template-columns: 1fr;
    }
    
    .arcana-card-reveal-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Hide action column on mobile */
    .arcana-card-action-column {
        display: none;
    }
    
    /* Stack deck layout on mobile */
    .arcana-deck-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .arcana-deck-left-column {
        order: 1;
        text-align: center;
    }
    
    .arcana-deck-right-column {
        order: 0;
    }
    
    .arcana-revealed-card-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .arcana-deck-wrapper {
        width: 280px;
        height: 392px;
    }
    
    .arcana-card-content-wrapper {
        padding: 0;
    }
    
    .arcana-card-title {
        font-size: 28px;
    }
    
    .arcana-card-quote {
        font-size: 16px;
    }
    
    .arcana-card-integration {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .arcana-oracle-container {
        padding: 15px;
    }
    
    .arcana-revealed-card-image {
        padding: 15px;
        max-width: 100%;
    }
    
    .arcana-deck-wrapper {
        width: 250px;
        height: 350px;
    }
    
    .arcana-card-title {
        font-size: 24px;
    }
    
}

/* Accessibility */
.arcana-pull-button:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .arcana-oracle-deck-area,
    .arcana-pull-button {
        display: none;
    }
    
    .arcana-oracle-container {
        display: block;
        padding: 0;
    }
    
    .arcana-card-reveal-wrapper {
        display: block;
    }
    
    .arcana-revealed-card-image {
        box-shadow: none;
        page-break-inside: avoid;
        max-width: 100%;
    }
    
    .arcana-card-content-wrapper {
        page-break-inside: avoid;
    }
}

/* ===================================================
   MULTI-CARD LAYOUT
   =================================================== */

/* Desktop multi-card layout - full card on left, minimized on right */
.arcana-card-display.multi-card-layout {
    display: grid;
    grid-template-columns: 400px 1fr 200px;
    gap: 40px;
    align-items: start;
}

/* Minimized card thumbnail - right column */
.arcana-card-reveal-wrapper.card-minimized {
    display: flex;
    flex-direction: column;
    width: 200px;
    cursor: pointer;
    transition: transform 0.3s ease;
    grid-column: 3;
    grid-row: 1;
}

.arcana-card-reveal-wrapper.card-minimized:hover {
    transform: scale(1.05);
}

/* Hide action column and content on minimized cards */
.arcana-card-reveal-wrapper.card-minimized .arcana-card-action-column,
.arcana-card-reveal-wrapper.card-minimized .arcana-card-content-wrapper {
    display: none !important;
}

/* Minimized card shows only the card image */
.arcana-card-reveal-wrapper.card-minimized .arcana-card-left-column {
    width: 100%;
}

.arcana-card-reveal-wrapper.card-minimized .arcana-revealed-card-image {
    width: 200px;
    margin-bottom: 10px;
}

/* Full card in multi-card layout - spans columns 1 and 2 */
.arcana-card-display.multi-card-layout .arcana-card-reveal-wrapper.card-full {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    grid-column: 1 / 3;
    grid-row: 1;
}

/* Hide action column on full card in multi-card layout */
.arcana-card-display.multi-card-layout .arcana-card-reveal-wrapper.card-full .arcana-card-action-column {
    display: none;
}

/* Mini title and state - shown on all cards */
.arcana-card-title-mini,
.arcana-card-state-mini {
    font-size: 10px;
    text-align: center;
    margin: 0;
}

.arcana-card-title-mini {
    text-transform: capitalize;
    letter-spacing: 1px;
    font-weight: 800;
    order: -1; /* Position at top */
}

.arcana-card-state-mini {
    text-transform: uppercase;
    opacity: 0.7;
    font-weight: 800;
    order: 999; /* Position at bottom */
}

/* Larger text on full-size cards */
.arcana-card-reveal-wrapper.card-full .arcana-card-title-mini,
.arcana-card-reveal-wrapper:not(.card-minimized):not(.card-full) .arcana-card-title-mini {
    font-size: 14px;
    margin-bottom: 5px;
}

.arcana-card-reveal-wrapper.card-full .arcana-card-state-mini,
.arcana-card-reveal-wrapper:not(.card-minimized):not(.card-full) .arcana-card-state-mini {
    font-size: 12px;
    margin-top: 5px;
}

/* Show mini labels on minimized cards */
.arcana-card-reveal-wrapper.card-minimized .arcana-revealed-card-image {
    display: flex;
    flex-direction: column;
}

/* Keep minimized card title/state smaller */
.arcana-card-reveal-wrapper.card-minimized .arcana-card-title-mini,
.arcana-card-reveal-wrapper.card-minimized .arcana-card-state-mini {
    font-size: 10px;
    margin: 0;
}

/* Optional: Flip mini labels for reversed cards */
.arcana-card-reveal-wrapper.card-minimized .arcana-card-image.reversed ~ .arcana-card-title-mini,
.arcana-card-reveal-wrapper.card-minimized .arcana-card-image.reversed ~ .arcana-card-state-mini {
    transform: rotate(180deg);
}

/* Full size card in multi-card layout */
.arcana-card-reveal-wrapper.card-full {
    flex: 1;
}

/* Draw again note */
.arcana-draw-again-note {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-style: italic;
    opacity: 0.7;
    text-align: center;
}

/* Mobile: stack cards vertically, no thumbnails */
@media (max-width: 768px) {
    .arcana-card-display.multi-card-layout {
        display: block;
    }
    
    .arcana-card-reveal-wrapper.card-minimized {
        width: 100%;
        cursor: default;
    }
    
    .arcana-card-reveal-wrapper.card-minimized:hover {
        transform: none;
    }
    
    .arcana-card-reveal-wrapper.card-minimized .arcana-card-content-wrapper {
        display: block;
    }
    
    .arcana-card-reveal-wrapper + .arcana-card-reveal-wrapper {
        margin-top: 60px;
    }
}

/* ==================================================
   CARD OF THE DAY — INLINE [arcana_daily]
   ================================================== */
.arcana-daily-card {
    max-width: 900px;
    margin: 0 auto;
}

.arcana-daily-heading {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.arcana-daily-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.arcana-daily-image {
    position: relative;
}

.arcana-daily-card-frame {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    display: inline-block;
}

.arcana-daily-card-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    transition: transform 0.3s ease;
}

.arcana-daily-image a:hover .arcana-daily-card-img {
    transform: scale(1.02);
}

.arcana-daily-card-title {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 1px;
    margin: 0 0 16px 0;
}

.arcana-daily-card-title a {
    text-decoration: none;
    color: inherit;
}

.arcana-daily-card-title a:hover {
    opacity: 0.7;
}

.arcana-daily-quote {
    font-size: 20px;
    font-style: italic;
    line-height: 1.4;
    margin: 0 0 20px 0;
    padding: 0;
    border: none;
}

.arcana-daily-integration {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.arcana-daily-integration p:last-child {
    margin-bottom: 0;
}

.arcana-daily-read-more {
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.arcana-daily-read-more:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .arcana-daily-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .arcana-daily-card-img {
        max-width: 280px;
        margin: 0 auto;
    }

    .arcana-daily-card-title {
        font-size: 24px;
    }

    .arcana-daily-quote {
        font-size: 18px;
    }
}

/* ==================================================
   CARD OF THE DAY — LINK TEASER [arcana_daily_link]
   ================================================== */
.arcana-daily-link {
    max-width: 600px;
}

.arcana-daily-link-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.arcana-daily-link-inner:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.arcana-daily-link-img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.arcana-daily-link-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.arcana-daily-link-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
    font-weight: 600;
}

.arcana-daily-link-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.arcana-daily-link-quote {
    font-size: 14px;
    font-style: italic;
    opacity: 0.7;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .arcana-daily-link-img {
        width: 60px;
        height: 90px;
    }

    .arcana-daily-link-title {
        font-size: 17px;
    }
}

/* ==================================================
   SINGLE CARD TEMPLATE
   ================================================== */
.arcana-single-card-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.arcana-single-card-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 60px;
    align-items: start;
}

.arcana-single-card-frame {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.arcana-single-card-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.arcana-single-card-title {
    font-size: 36px;
    font-weight: 500;
    letter-spacing: 2px;
    margin: 0 0 8px 0;
    text-transform: capitalize;
}

.arcana-single-card-deck {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
    margin: 0 0 32px 0;
}

.arcana-single-card-deck a {
    color: inherit;
    text-decoration: none;
}

.arcana-single-card-deck a:hover {
    opacity: 0.7;
}

.arcana-single-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.arcana-single-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.arcana-single-section-heading {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.5;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.arcana-single-quote {
    font-size: 22px;
    font-style: italic;
    line-height: 1.4;
    margin: 0 0 20px 0;
    padding: 0;
    border: none;
}

.arcana-single-integration {
    font-size: 17px;
    line-height: 1.7;
}

.arcana-single-integration p:last-child {
    margin-bottom: 0;
}

/* Actions (Print button) */
.arcana-single-actions {
    margin-top: 40px;
}

.arcana-print-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.15);
    color: inherit;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.arcana-print-button:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
}

/* Card Navigation */
.arcana-single-card-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 14px;
}

.arcana-nav-prev,
.arcana-nav-next {
    text-decoration: none;
    color: inherit;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arcana-nav-prev:hover,
.arcana-nav-next:hover {
    opacity: 1;
}

.arcana-nav-deck {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 700;
    opacity: 0.4;
    text-decoration: none;
    color: inherit;
}

.arcana-nav-deck:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .arcana-single-card-container {
        padding: 20px 15px;
    }

    .arcana-single-card-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .arcana-single-card-frame {
        max-width: 320px;
        margin: 0 auto;
    }

    .arcana-single-card-title {
        font-size: 28px;
    }

    .arcana-single-quote {
        font-size: 19px;
    }

    .arcana-single-integration {
        font-size: 16px;
    }

    .arcana-single-card-nav {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .arcana-nav-prev,
    .arcana-nav-next {
        max-width: none;
    }
}

/* ==================================================
   PRINT BUTTON ON CARD REVEAL
   (For the shortcode-based card pull experience)
   ================================================== */
.arcana-print-reading {
    margin-top: 24px;
    text-align: center;
}

.arcana-print-reading-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: inherit;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.arcana-print-reading-btn:hover {
    opacity: 1;
    border-color: rgba(0, 0, 0, 0.25);
}

/* ==================================================
   ENHANCED PRINT STYLES
   ================================================== */
@media print {
    /* Hide everything except the card content */
    body * {
        visibility: hidden;
    }

    .arcana-single-card-container,
    .arcana-single-card-container *,
    .arcana-oracle-container,
    .arcana-oracle-container * {
        visibility: visible;
    }

    .arcana-single-card-container,
    .arcana-oracle-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    /* Hide interactive elements */
    .arcana-print-button,
    .arcana-print-reading,
    .arcana-pull-button,
    .arcana-draw-another-section,
    .arcana-single-card-nav,
    .arcana-oracle-deck-area {
        display: none !important;
    }

    /* Reset layouts for print */
    .arcana-single-card-layout {
        display: block;
    }

    .arcana-single-card-frame {
        box-shadow: none;
        max-width: 300px;
        margin-bottom: 20px;
        page-break-inside: avoid;
    }

    .arcana-single-section {
        page-break-inside: avoid;
    }

    /* Card reveal print */
    .arcana-card-reveal-wrapper {
        display: block;
    }

    .arcana-card-action-column {
        display: none !important;
    }

    .arcana-revealed-card-image {
        box-shadow: none;
        max-width: 300px;
        page-break-inside: avoid;
    }

    .arcana-card-content-wrapper {
        page-break-inside: avoid;
    }

    /* Daily card print */
    .arcana-daily-inner {
        display: block;
    }

    .arcana-daily-card-img {
        max-width: 250px;
        box-shadow: none;
    }
}
