/* Art Studio Visualization Styles */

.art-studio-container {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.canvas-section {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.canvas {
    width: 100%;
    height: 300px;
    background: white;
    border: 3px solid #333;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.canvas-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.sky {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, #87CEEB, #98D8E8);
    transition: background 0.5s ease;
}

.sky.night {
    background: linear-gradient(to bottom, #191970, #000080);
}

.sky.dawn {
    background: linear-gradient(to bottom, #FF6B6B, #FFE66D, #87CEEB);
}

.sky.flickering {
    animation: flicker 0.3s infinite;
}

@keyframes flicker {
    0%, 33% { background: linear-gradient(to bottom, #FF6B6B, #FFE66D, #87CEEB); }
    34%, 66% { background: linear-gradient(to bottom, #191970, #000080); }
    67%, 100% { background: linear-gradient(to bottom, #87CEEB, #98D8E8); }
}

.ground {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, #90EE90, #228B22);
}

.canvas-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.canvas-element {
    position: absolute;
    font-size: 48px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

.sun {
    top: 20px;
    right: 30px;
}

.tree {
    bottom: 80px;
    left: 50px;
}

.house {
    bottom: 60px;
    right: 100px;
    font-size: 60px;
}

/* Artist Panels */
.artists-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.artist-panel {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.artist-panel.alice {
    border-top: 4px solid #E91E63;
}

.artist-panel.bob {
    border-top: 4px solid #2196F3;
}

.artist-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.artist-status {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
    min-height: 20px;
}

.canvas-status {
    margin-top: 10px;
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.85em;
    font-weight: 500;
}

.status-stable {
    background: #4CAF50;
    color: white;
}

.status-unstable {
    background: #f44336;
    color: white;
    animation: pulse 1s infinite;
}

.status-overwritten {
    background: #FF9800;
    color: white;
}

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

/* Sketchbook Styles */
.sketchbook-container {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.main-mural-section {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-mural {
    border-color: #FFD700;
    border-width: 4px;
}

.sketchbooks-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sketchbook {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sketchbook.alice {
    border-top: 4px solid #E91E63;
}

.sketchbook.bob {
    border-top: 4px solid #2196F3;
}

.sketchbook-canvas {
    height: 200px;
    margin-bottom: 15px;
}

.sketchbook-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Pulse animation for sync buttons */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Technical Deep Dive Styles */
.architecture-diagram {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
}

.dev-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.dev-icon {
    font-size: 1.2em;
}

.arrow-down {
    text-align: center;
    color: #666;
    margin: 10px 0;
}

.branch-box {
    background: #2196F3;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-align: center;
    margin: 10px auto;
    max-width: 200px;
}

.branch-box.shared {
    background: #FF9800;
}

.branch-box.feature {
    background: #4CAF50;
}

.branch-box.main {
    background: #9C27B0;
}

.branch-boxes {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.server-box {
    background: #37474F;
    color: white;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    margin: 10px auto;
    max-width: 200px;
}

.server-box.small {
    font-size: 0.9em;
    padding: 10px;
}

.server-boxes {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.warning-box {
    background: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    margin-top: 10px;
    border: 1px solid #ef5350;
}

.merge-process {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #ccc;
}

.cli-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.code-block {
    background: #263238;
    color: #aed581;
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
    white-space: pre;
}

.code-block .comment {
    color: #546e7a;
}

.code-block .error {
    color: #ef5350;
}

.code-block .success {
    color: #66bb6a;
}

/* Quiz Styles */
.quiz-box {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.quiz-question {
    font-size: 1.1em;
    margin-bottom: 20px;
    font-weight: 500;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quiz-option {
    background: white;
    padding: 15px;
    border-radius: 4px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.quiz-option.selected {
    border-color: var(--primary-color);
    background: #f3e5f5;
}

.quiz-option input[type="radio"] {
    margin-right: 10px;
}

.quiz-feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-weight: 500;
}

.quiz-feedback.correct {
    background: #c8e6c9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.quiz-feedback.incorrect {
    background: #ffcdd2;
    color: #c62828;
    border: 1px solid #f44336;
}

/* Pros and Cons */
.pros-cons {
    margin-top: 15px;
}

.pros-cons h4 {
    margin: 15px 0 10px 0;
}

.pros-cons h4.pros {
    color: #4CAF50;
}

.pros-cons h4.cons {
    color: #f44336;
}

.pros-cons ul {
    margin: 0;
    padding-left: 25px;
}

.pros-cons li {
    margin: 5px 0;
}

/* Activity Log Styles */
#activityLog {
    max-height: 120px;
    overflow-y: auto;
}

#logEntries {
    line-height: 1.4;
}

.artist-actions .action-button {
    position: relative;
    overflow: visible;
    width: 100%;
}

/* Spinning animation for work indicators */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Simultaneous work highlight */
#simultaneousWorkIndicator {
    animation: pulse 0.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .artists-section,
    .sketchbooks-section {
        grid-template-columns: 1fr;
    }
    
    .branch-boxes,
    .server-boxes {
        flex-direction: column;
        align-items: center;
    }
    
    .dev-icons {
        flex-direction: column;
        align-items: center;
    }
}