/* Wiz Library Premium Viewer Styles */
.wizm-resource-viewer {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
    background: #0f172a;
    color: #fff;
    font-family: 'Inter', sans-serif;
    transition: grid-template-columns 0.4s ease;
}

.wizm-resource-viewer.has-solution {
    grid-template-columns: 1fr 400px;
}

@media (max-width: 1024px) {
    .wizm-resource-viewer.has-solution {
        grid-template-columns: 1fr;
    }
}

/* Main Content Area */
.wizm-viewer-main {
    padding: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wizm-viewer-header {
    width: 100%;
    max-width: 1000px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wizm-viewer-title h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Gallery & Media Area */
.wizm-media-frame {
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.wizm-gallery-grid {
    display: grid;
    gap: 30px;
}

.wizm-gallery-item img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.5);
}

/* Solution Panel */
.wizm-solution-panel {
    background: rgba(15, 23, 42, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 30px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: none;
}

.wizm-resource-viewer.solution-open .wizm-solution-panel {
    display: block;
}

.wizm-solution-panel h2 {
    font-size: 1.5rem;
    color: #10b981;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wizm-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
}

.wizm-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Credits & Disclaimer */
.wizm-disclaimer {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-top: 40px;
    max-width: 600px;
}

/* Utility Buttons */
.wizm-fab-group {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.wizm-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #10b981;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.wizm-fab:hover {
    transform: scale(1.1);
}

.wizm-fab-primary { background: #10b981; }
.wizm-fab-secondary { background: #3b82f6; }
