/* Landing Studio Pages Shared Styles */

.suite-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
}

.suite_box {
    flex: 0 0 auto;
    min-width: 200px;
    max-width: calc(50% - 15px);
    margin: 0;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    height: auto;
    width: auto !important;
    white-space: normal !important;
    overflow: visible !important;
}

.suite_box.major-arcana {
    flex: 0 0 auto;
    max-width: 100%;
    min-height: 275px; /* For rwstut */
}

/* Specific height for cbdtmtut */
.landing_studio_cbdtmtut .suite_box.major-arcana {
    min-height: 285px;
}

.suite_box h2 {
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    text-align: center;
    flex-shrink: 0;
}

.suite_box .cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    flex-grow: 1;
}

.at_card {
    width: 50px !important;
    height: auto;
    margin: 0 !important;
    cursor: grab;
    transition: transform 0.2s;
    flex-shrink: 0;
    border: 1px solid #333 !important;
}

.at_card:hover {
    transform: scale(1.1);
}

.at_card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.board {
    min-height: 500px;
    border: 3px dashed #333;
    border-radius: 10px;
    background-color: #f0f0f0;
    position: relative;
    margin-top: 20px;
    padding: 20px;
}

.board h1 {
    text-align: center;
    margin-bottom: 20px;
}

.board-card {
    position: absolute;
    width: 100px;
    height: auto;
    cursor: move;
    border: 2px solid #333;
    border-radius: 8px;
    z-index: 10;
}

.board-card:hover {
    border-color: #007bff;
}

.drop-zone {
    border-color: #007bff;
    background-color: #e6f3ff;
}

.fullscreen-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #333;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    z-index: 100;
    transition: all 0.3s ease;
    user-select: none;
}

.fullscreen-toggle:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.refresh-toggle {
    position: absolute;
    top: 10px;
    right: 70px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #333;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    z-index: 100;
    transition: all 0.3s ease;
    user-select: none;
}

.refresh-toggle:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.board.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    border-radius: 0;
    margin: 0;
    min-height: 100vh;
    background-color: #f0f0f0;
}

.board.fullscreen .fullscreen-toggle {
    background: rgba(0, 0, 0, 0.1);
    border-color: #666;
    color: #333;
}

@media (max-width: 767.98px) {
    .board h1 {
        position: absolute;
        top: 10px;
        left: 10px;
        text-align: left;
        margin-bottom: 0;
    }
}

/* =============================================================================
   Studio Landing Page Styles (v1.1.0)
   ============================================================================= */

/* Search Container */
.studio-search-container {
    position: relative;
    max-width: 500px;
    margin: 20px auto 30px;
}

.studio-search-input {
    width: 100%;
    padding: 14px 45px 14px 16px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.studio-search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.studio-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

/* Studio Content Container */
.studio-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Studio Sections */
.studio-section {
    margin-bottom: 40px;
}

.studio-section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    color: #333;
}

/* Cards Grid */
.studio-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Studio Cards */
.studio-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 24px;       /* slightly tighter top to let the card image breathe */
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    height: 100%;                  /* fill grid row so sibling cards align */
    box-sizing: border-box;
}

.studio-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

.studio-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Card Icon — portrait 3:5 ratio, like a real deck card */
.studio-card-icon {
    width: 72px;
    aspect-ratio: 3 / 5;          /* height auto-computed → 120px */
    margin-bottom: 16px;
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.studio-card-icon svg {
    width: 100%;
    height: 100%;
    padding: 12px;
}

/* Fallback when no image is loaded */
.studio-card-icon:empty {
    background-color: rgba(0, 123, 255, 0.08);
}

/* Random Card Images — portrait 3:5, full card face visible */
.studio-card-image {
    width: 72px;
    aspect-ratio: 3 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.18);
    display: block;
    flex-shrink: 0;
    background-color: #f0f0f0;
    margin-bottom: 16px;
}

/* Card Title */
.studio-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

/* Card Description */
.studio-card-description {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 767.98px) {
    .studio-content-container {
        padding: 0 16px;
    }
    
    .studio-section-title {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
    
    .studio-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .studio-card {
        padding: 20px;
    }
    
    .studio-search-input {
        padding: 12px 45px 12px 16px;
        font-size: 15px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .studio-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: more) {
    .studio-card {
        border-width: 3px;
    }
    
    .studio-search-input {
        border-width: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .studio-card,
    .studio-search-input {
        transition: none;
    }
    
    .studio-card:hover {
        transform: none;
    }
}

/* =============================================================================
    Studio Card Background Images (v1.0.0)
    ============================================================================= */

/* RWS Tarot Card - with splash image background */
.studio-card[href$="/studio/rwstut.html"],
.studio-card[href*="/studio/rwstut.html"] {
    background-image: url("/assets/images/rws-splash-1-1024.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* CBD Tarot Card - with splash image background */
.studio-card[href$="/studio/cbdtmtut.html"],
.studio-card[href*="/studio/cbdtmtut.html"] {
    background-image: url("/assets/images/cbdtm-splash-1-1024.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* AstrOracle English Card - with splash image background */
.studio-card[href$="/studio/aotut.html"],
.studio-card[href*="/studio/aotut.html"] {
    background-image: url("/assets/images/zo-splash-1-1024.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* AstrOracle French Card - with splash image background */
.studio-card[href$="/studio/aotut-fr.html"],
.studio-card[href*="/studio/aotut-fr.html"] {
    background-image: url("/assets/images/zo-splash-1-1024.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Override card styles to accommodate background images */
.studio-card.studio-card-background {
    color: #fff;
    position: relative;
    overflow: hidden;
}

.studio-card.studio-card-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.studio-card.studio-card-background .studio-card-title,
.studio-card.studio-card-background .studio-card-description {
    position: relative;
    z-index: 1;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Make icon visible on background images */
.studio-card.studio-card-background .studio-card-icon {
    position: relative;
    z-index: 1;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.studio-card.studio-card-background .studio-card-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Make random card images visible on background images */
.studio-card.studio-card-background .studio-card-image {
    position: relative;
    z-index: 1;
    box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Responsive adjustments for background images */
@media (max-width: 767.98px) {
    .studio-card.studio-card-background {
        padding: 20px;
    }
    
    .studio-card-icon,
    .studio-card-image {
        width: 54px;               /* 54 × 90 px → still 3:5 */
    }
}