/* Land of Oz / Periodic Table styles
   Extracted from Layout-Flex.css for Layout6/Layout7 hosts.
   Oz HTML from astp_SocialMedia_Admin_Div7 depends on these .oz-* classes.
*/

/* ===== OZ / AI Education Specific Styles ===== */

/* OZ Main Layout - replaces TABLE-based layout */
.oz-layout {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
    width: 100%;
    background: #f5f5f5;
}

.oz-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 10px;
}

.oz-sidebar {
    flex-shrink: 0;
    width: 80px;
    position: sticky;
    top: 0;
    align-self: flex-start;
    z-index: 100;
    order: 1; /* Move to right side in flexbox */
}

/* OZ Sidebar Cards */
.oz-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 9px;
    border-radius: 6px;
    width: 60px;
    height: 55px;
    cursor: pointer;
    text-align: center;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 4px;
    margin: 2px auto;
    transition: all 0.2s;
}

.oz-card:hover {
    background-color: #e8f4ff;
    border-color: #336699;
}

.oz-card.active {
    background-color: #e8f4ff;
    border: 2px solid #336699;
}

.oz-card-symbol {
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.oz-card-label {
    font-size: 7px;
    color: #666;
    line-height: 1.2;
}

/* Periodic Table Grid */
.oz-table-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
}

.oz-table-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.oz-table-row-label {
    width: 100px;
    font-size: 11px;
    font-weight: bold;
}

.oz-table-cells {
    display: flex;
    gap: 6px;
}

.oz-table-cell {
    cursor: pointer;
    width: 60px;
    height: 55px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.oz-table-cell:hover {
    transform: translateY(-2px);
    box-shadow: 3px 3px 8px rgba(0,0,0,0.3);
}

.oz-table-cell-empty {
    width: 60px;
    height: 55px;
}

.oz-cell-symbol {
    font-size: 16px;
    font-weight: bold;
}

.oz-cell-name {
    font-size: 7px;
}

/* Color schemes for rows */
.oz-primitives { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.oz-compositions { background: linear-gradient(135deg, #059669, #10b981); }
.oz-deployment { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.oz-emerging { background: linear-gradient(135deg, #dc2626, #ef4444); }

/* Explore buttons */
.oz-explore-btn {
    cursor: pointer;
    margin-left: auto;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 9px;
    transition: opacity 0.2s;
}

.oz-explore-btn:hover {
    opacity: 0.9;
}

/* Column headers */
.oz-column-header {
    width: 60px;
    text-align: center;
    font-size: 9px;
    font-weight: bold;
}

/* Column explore links */
.oz-column-explore {
    cursor: pointer;
    width: 60px;
    padding: 4px 0;
    color: #fff;
    border-radius: 4px;
    font-size: 8px;
    text-align: center;
    transition: opacity 0.2s;
}

.oz-column-explore:hover {
    opacity: 0.9;
}

/* Operations centers */
.oz-ops-container {
    border-top: 2px solid #ccc;
    padding-top: 15px;
    margin-top: 15px;
}

.oz-ops-title {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.oz-ops-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.oz-ops-card {
    cursor: pointer;
    width: 180px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: #fff;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.oz-ops-card:hover {
    transform: translateY(-2px);
}

.oz-ops-card.mission {
    background: linear-gradient(135deg, #1e3a5f, #336699);
}

.oz-ops-card.knowledge {
    background: linear-gradient(135deg, #065f46, #10b981);
}

.oz-ops-card-title {
    font-size: 18px;
    font-weight: bold;
}

.oz-ops-card-subtitle {
    font-size: 10px;
    opacity: 0.8;
    margin-top: 5px;
}

.oz-ops-card-features {
    font-size: 9px;
    margin-top: 8px;
    opacity: 0.7;
}

/* Video panel */
.oz-video-panel {
    margin: 10px auto;
    max-width: 900px;
}

.oz-video-toggle {
    cursor: pointer;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #e94560;
    border-radius: 8px;
    color: #fff !important;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}
.oz-video-toggle,
.oz-video-toggle * {
    color: #fff !important;
}

.oz-video-toggle:hover {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
}

.oz-video-container {
    display: none;
    margin-top: -2px;
}

.oz-video-container.visible {
    display: block;
}

.oz-video-wrapper {
    background: #1a1a2e;
    border: 2px solid #e94560;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 15px;
    text-align: center;
}

/* Lesson panel styles */
.oz-lesson-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.oz-lesson-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.oz-lesson-toggle {
    cursor: pointer;
    padding: 6px 12px;
    background: #c53030;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
}

.oz-lesson-toggle.collapsed {
    background: #2b6cb0;
}

.oz-lesson-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.oz-tool-icons {
    display: none;
    gap: 8px;
    margin-left: auto;
}

.oz-tool-icons.visible {
    display: flex;
}

.oz-tool-icon {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 11px;
    text-decoration: none;
    color: #333;
}

.oz-tool-icon:hover {
    background: #e8f4ff;
    border-color: #336699;
}

.oz-lesson-content {
    flex-shrink: 0;
    max-height: 40vh;
    overflow-y: auto;
    padding: 16px;
    background: white;
    border: 2px solid #2b6cb0;
    border-radius: 8px;
    margin: 8px;
}

.oz-lesson-content.collapsed {
    display: none;
}

.oz-tool-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    overflow: hidden;
}

.oz-tool-iframe {
    flex: 1;
    width: 100%;
    border: none;
    min-height: 300px;
}

/* Responsive / touch overrides (oz-only, from Layout-Flex media queries) */
@media (max-width: 1024px) {
.oz-table-cell, .oz-card { width: 50px; height: 45px; }
.oz-table-row-label { width: 80px; font-size: 10px; }
}
@media (max-width: 768px) {
.oz-table-row-label { width: 60px; font-size: 9px; }
.oz-ops-card { width: 140px; padding: 10px; }
.oz-ops-card-title { font-size: 14px; }
.oz-column-header { font-size: 7px; }
.oz-lesson-content { max-height: 30vh; }
}
@media (max-width: 480px) {
.oz-table-cell, .oz-card { width: 40px; height: 38px; }
.oz-cell-symbol { font-size: 12px; }
.oz-cell-name { font-size: 6px; }
.oz-table-cells { gap: 3px; }
.oz-table-row-label { width: 50px; font-size: 8px; }
.oz-ops-cards { flex-direction: column; align-items: center; }
.oz-ops-card { width: 90%; max-width: 200px; }
.oz-lesson-toggle { font-size: 11px; padding: 6px 10px; }
.oz-column-explore { display: none; }
.oz-lesson-content { max-height: 25vh; padding: 10px; font-size: 13px; }
.oz-tool-icon { min-height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; }
}
@media (hover: none) and (pointer: coarse) {
.oz-card, .oz-table-cell { min-height: 44px; min-width: 44px; }
.oz-table-cell:hover, .oz-card:hover { transform: none; }
.oz-table-cell:active, .oz-card:active { transform: scale(0.95); opacity: 0.9; }
.oz-explore-btn:active, .oz-column-explore:active { opacity: 0.7; }
}
@media (max-height: 500px) and (orientation: landscape) {
.oz-lesson-content { max-height: 20vh; }
.oz-sidebar { width: 60px; }
}
