/* Shift-Left UAT Specific Styles */

/* Global Material Icons fix for buttons */
button i.material-icons {
    vertical-align: middle;
    line-height: 1;
}

/* Chapter 1 - Introduction */
.intro-section {
    text-align: center;
    margin-bottom: 40px;
}

.headline {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.narrative {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

.pathway-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pathway-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pathway-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.pathway-card.traditional {
    border-color: #E57373;
}

.pathway-card.traditional:hover {
    border-color: #EF5350;
    background-color: #FFEBEE;
}

.pathway-card.shift-left {
    border-color: #81C784;
}

.pathway-card.shift-left:hover {
    border-color: #66BB6A;
    background-color: #E8F5E9;
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.pathway-card.traditional .card-icon {
    background-color: #FFCDD2;
    color: #C62828;
}

.pathway-card.shift-left .card-icon {
    background-color: #C8E6C9;
    color: #2E7D32;
}

.card-icon i {
    font-size: 40px;
}

.card-title {
    font-size: 22px;
    margin-bottom: 8px;
    color: #333;
}

.card-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 16px;
}

.card-description {
    font-size: 16px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 24px;
}

.pathway-button {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pathway-card.traditional .pathway-button {
    background-color: #EF5350;
    color: white;
}

.pathway-card.traditional .pathway-button:hover {
    background-color: #E53935;
}

.pathway-card.shift-left .pathway-button {
    background-color: #66BB6A;
    color: white;
}

.pathway-card.shift-left .pathway-button:hover {
    background-color: #4CAF50;
}

/* Chapter 2 - Traditional UAT Timeline */
.timeline-container {
    padding: 20px;
}

.timeline-stages {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    position: relative;
}

.timeline-stage {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 0.6;
}

.timeline-stage.active {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.timeline-stage.complete {
    background-color: #E8F5E9;
}

.stage-icon {
    width: 60px;
    height: 60px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.timeline-stage.active .stage-icon {
    background-color: var(--primary-color);
    color: white;
}

.timeline-stage.complete .stage-icon {
    background-color: var(--success-color);
    color: white;
}

.stage-icon i {
    font-size: 28px;
}

.stage-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.stage-status {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.timeline-arrow {
    font-size: 24px;
    color: #999;
    margin: 0 10px;
}

.timeline-actions {
    text-align: center;
    margin-top: 40px;
}

.action-button {
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-button:hover:not(:disabled) {
    background-color: var(--primary-variant-color);
    transform: translateY(-2px);
}

.action-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.action-button i.material-icons {
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
}

.dish-info {
    margin-top: 20px;
    padding: 20px;
    background-color: #FFF3E0;
    border-radius: 8px;
    border: 2px solid #FFB74D;
}

.dish-info h3 {
    color: #E65100;
    margin-bottom: 8px;
}

.customer-feedback {
    margin-top: 40px;
    animation: fadeIn 0.5s ease-in;
}

.speech-bubble {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 30px;
}

.customer-icon {
    width: 60px;
    height: 60px;
    background-color: #FFE0B2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #E65100;
}

.feedback-text {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    font-size: 18px;
    color: #D32F2F;
    max-width: 400px;
}

.feedback-text::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

.rejection-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 80px;
    font-weight: 900;
    color: #D32F2F;
    opacity: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    pointer-events: none;
}

.rejection-stamp.stamp-animation {
    animation: stampEffect 0.5s ease-out forwards;
}

@keyframes stampEffect {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-15deg) scale(3);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) rotate(-15deg) scale(1);
    }
}

.failure-message {
    background-color: #FFEBEE;
    border: 2px solid #EF5350;
    border-radius: 8px;
    padding: 24px;
    margin-top: 40px;
}

.failure-message h3 {
    color: #C62828;
    margin-bottom: 12px;
}

.impact-list {
    margin-top: 20px;
}

.impact-list h4 {
    color: #D32F2F;
    margin-bottom: 8px;
}

.impact-list ul {
    list-style: none;
    padding-left: 0;
}

.impact-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: #666;
}

.impact-list li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: #D32F2F;
    font-size: 20px;
    font-weight: bold;
}

/* Chapter 3 - Shift-Left Review Environment */
.review-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 20px;
}

.pr-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.pr-header {
    background-color: #f5f5f5;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.pr-header i {
    color: #666;
}

.pr-header h3 {
    flex: 1;
    font-size: 18px;
    font-weight: 500;
}

.pr-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    background-color: #E3F2FD;
    color: #1976D2;
}

.pr-status.review-ready {
    background-color: #FFF3E0;
    color: #F57C00;
}

.pr-status.approved {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.pr-status.merged {
    background-color: #F3E5F5;
    color: #6A1B9A;
}

.pr-body {
    padding: 24px;
}

.pr-body p {
    margin-bottom: 20px;
    color: #555;
}

.pr-actions {
    margin: 20px 0;
    text-align: center;
}

.pr-button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.pr-button:hover:not(:disabled) {
    background-color: var(--primary-variant-color);
}

.pr-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.pr-button i.material-icons {
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
}

.review-environment {
    background-color: #E8F5E9;
    border: 2px solid #66BB6A;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.review-environment h4 {
    color: #2E7D32;
    margin-bottom: 12px;
}

.env-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 12px;
    background-color: white;
    border-radius: 4px;
}

.env-info i {
    color: #66BB6A;
}

.env-info span {
    font-family: monospace;
    color: #555;
}

.customer-interaction {
    margin: 20px 0;
}

.tasting-session, .chef-response {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.customer-avatar, .chef-avatar {
    width: 48px;
    height: 48px;
    background-color: #FFE0B2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chef-avatar {
    background-color: #E1F5FE;
}

.customer-avatar i, .chef-avatar i {
    font-size: 24px;
    color: #E65100;
}

.chef-avatar i {
    color: #0277BD;
}

.feedback-bubble, .action-bubble {
    background-color: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    max-width: 300px;
}

.feedback-bubble.pulse {
    animation: pulse 0.5s ease;
}

.feedback-bubble.approved {
    background-color: #E8F5E9;
    border: 1px solid #66BB6A;
}

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

.pr-approval {
    margin: 20px 0;
    text-align: center;
}

.approval-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #E8F5E9;
    color: #2E7D32;
    border-radius: 20px;
    margin-bottom: 16px;
}

.approval-badge i {
    font-size: 20px;
}

.merge-button {
    padding: 12px 24px;
    background-color: #6A1B9A;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.merge-button:hover:not(:disabled) {
    background-color: #4A148C;
}

.merge-button i.material-icons {
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
}

.success-message {
    background-color: #E8F5E9;
    border: 2px solid #66BB6A;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.success-message i {
    font-size: 48px;
    color: #2E7D32;
    margin-bottom: 16px;
}

.success-message h3 {
    color: #2E7D32;
    margin-bottom: 12px;
}

.benefits-panel {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.benefits-panel h3 {
    color: #333;
    margin-bottom: 20px;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list i {
    color: var(--success-color);
    font-size: 24px;
}

/* Chapter 4 - Technical Deep Dive */
.technical-content {
    padding: 20px;
}

.workflow-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.workflow-diagram {
    position: relative;
    padding: 40px;
    background-color: #f5f5f5;
    border-radius: 8px;
    margin-top: 20px;
}

.branch {
    position: relative;
    margin: 20px 0;
}

.branch-label {
    display: inline-block;
    padding: 6px 16px;
    background-color: #333;
    color: white;
    border-radius: 16px;
    font-size: 14px;
    font-family: monospace;
    margin-bottom: 8px;
}

.main-branch .branch-label {
    background-color: #1976D2;
}

.feature-branch .branch-label {
    background-color: #66BB6A;
}

.commit-line {
    height: 4px;
    background-color: #ddd;
    border-radius: 2px;
    position: relative;
}

.pr-marker {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.review-env-creation {
    text-align: center;
    margin-top: 30px;
}

.arrow-down {
    font-size: 32px;
    color: #666;
    margin-bottom: 16px;
}

.env-box {
    background-color: white;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    padding: 20px;
    display: inline-block;
}

.env-box i {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.env-box h4 {
    margin-bottom: 8px;
    color: #333;
}

.env-box code {
    display: block;
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-family: monospace;
    color: #555;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.benefit-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.benefit-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #333;
}

.benefit-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.code-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.code-section h2 {
    margin-bottom: 20px;
}

.code-block {
    background-color: #282c34;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    color: #abb2bf;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
}

.tech-intro {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.tech-note {
    font-size: 14px;
    color: #666;
    margin-top: 16px;
    padding: 12px;
    background-color: #f5f5f5;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

/* Chapter 5 - Conclusion */
.conclusion-content {
    padding: 20px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.comparison-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comparison-card.traditional {
    border: 2px solid #EF5350;
}

.comparison-card.shift-left {
    border: 2px solid #66BB6A;
}

.comparison-card h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.comparison-card.traditional h2 {
    color: #C62828;
}

.comparison-card.shift-left h2 {
    color: #2E7D32;
}

.metrics {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.metric {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
}

.metric.bad {
    background-color: #FFEBEE;
}

.metric.good {
    background-color: #E8F5E9;
}

.metric i {
    font-size: 24px;
}

.metric.bad i {
    color: #D32F2F;
}

.metric.good i {
    color: #388E3C;
}

.metric-label {
    font-weight: 500;
    color: #555;
}

.metric-value {
    font-weight: bold;
}

.metric.bad .metric-value {
    color: #D32F2F;
}

.metric.good .metric-value {
    color: #388E3C;
}

.summary {
    font-size: 16px;
    line-height: 1.5;
    color: #666;
}

.quiz-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.quiz-card {
    max-width: 800px;
    margin: 0 auto;
}

.question {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.question i {
    font-size: 32px;
    color: var(--primary-color);
}

.question p {
    flex: 1;
    font-size: 18px;
    line-height: 1.5;
}

.answer-options {
    display: grid;
    gap: 16px;
}

.answer-option {
    display: block;
    padding: 16px;
    background-color: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-option:hover {
    background-color: #e0e0e0;
}

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

.quiz-feedback {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.quiz-feedback.correct {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.quiz-feedback.incorrect {
    background-color: #FFEBEE;
    color: #C62828;
}

.quiz-feedback i {
    font-size: 24px;
}

.final-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.action-button.primary {
    background-color: var(--secondary-color);
}

.action-button.primary:hover {
    background-color: #00838F;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .pathway-cards {
        grid-template-columns: 1fr;
    }
    
    .timeline-stages {
        flex-direction: column;
        gap: 20px;
    }
    
    .timeline-arrow {
        transform: rotate(90deg);
    }
    
    .review-container {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .final-actions {
        flex-direction: column;
    }
    
    .action-button {
        width: 100%;
    }
}