﻿/* Estilos específicos para el módulo de POO en Java */

/* Estilos base del artículo */
.tutorial-article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid #3498db;
    position: relative;
}

.article-title {
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #3498db, #8e44ad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-subtitle {
    font-size: 1.3rem;
    color: #7f8c8d;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.module-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0 12px 0 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.badge-number {
    font-size: 1.8rem;
    line-height: 1;
}

.badge-text {
    font-size: 0.9rem;
    opacity: 0.95;
}

.module-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 2px dashed #ecf0f1;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #3498db;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: linear-gradient(135deg, #3498db15, #9b59b615);
    border-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.2);
}

.nav-link.next:hover {
    transform: translateX(5px) translateY(-3px);
}

.nav-link.prev:hover {
    transform: translateX(-5px) translateY(-3px);
}

/* Contenido principal */
.content-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid #ecf0f1;
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #3498db, #9b59b6) 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.content-section h2 i {
    font-size: 1.8rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #9b59b6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

/* Introducción a POO */
.poo-introduction {
    background: linear-gradient(135deg, #667eea15, #764ba215);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 2px solid #667eea;
}

.concept-visualization {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.concept-card {
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    border-top: 5px solid;
}

.concept-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.concept-card.class {
    border-color: #3498db;
}

.concept-card.object {
    border-color: #2ecc71;
}

.concept-card.encapsulation {
    border-color: #e74c3c;
}

.concept-card.inheritance {
    border-color: #f39c12;
}

.concept-card.polymorphism {
    border-color: #9b59b6;
}

.concept-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.concept-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.concept-card p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.analogy {
    padding: 1rem;
    border-radius: 8px;
    font-style: italic;
    border-left: 4px solid #f39c12;
}

/* Constructor Simulator */
.constructor-simulator {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 2px solid #3498db;
    margin-top: 2rem;
}

.simulator-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.simulator-tabs {
    display: flex;
    gap: 1rem;
}

.simulator-tab {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.simulator-tab.active {
    color: #3498db;
}

.constructor-visualizer {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.code-editor {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
}

.editor-content {
    padding: 1rem;
    font-family: 'Courier New', monospace;
    color: #d4d4d4;
    font-size: 0.9rem;
    line-height: 1.5;
    max-height: 400px;
    overflow-y: auto;
}

.editor-content .keyword {
    color: #569cd6;
}

.editor-content .class-name {
    color: #4ec9b0;
}

.editor-content .method {
    color: #dcdcaa;
}

.editor-content .string {
    color: #ce9178;
}

.editor-content .comment {
    color: #6a9955;
}

.object-viewer {
    border-radius: 8px;
    padding: 1.5rem;
}

.object-instance {
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.instance-header {
    color: #3498db;
    font-weight: bold;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.properties-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.property {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 4px solid #2ecc71;
}

.property .name {
    font-weight: bold;
    color: #2c3e50;
}

.property .value {
    font-family: 'Courier New', monospace;
    color: #e74c3c;
}

/* Access Modifiers Explorer */
.modifiers-explorer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.modifier-card {
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.modifier-card.public {
    border-top: 5px solid #2ecc71;
}

.modifier-card.private {
    border-top: 5px solid #e74c3c;
}

.modifier-card.protected {
    border-top: 5px solid #f39c12;
}

.modifier-card.default {
    border-top: 5px solid #3498db;
}

.modifier-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.modifier-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.modifier-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: #2c3e50;
    color: white;
    border-radius: 20px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    margin-bottom: 1rem;
}

.access-table {
    width: 100%;
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.access-table th {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1rem;
    text-align: left;
}

.access-table td {
    padding: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.access-table tr:nth-child(even) {
}

.access-yes {
    color: #2ecc71;
    font-weight: bold;
}

.access-no {
    color: #e74c3c;
    font-weight: bold;
}

/* Encapsulation Demo */
.encapsulation-demo {
    background: linear-gradient(135deg, #e74c3c15, #c0392b15);
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    border: 2px solid #e74c3c;
}

.getter-setter-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.getter-setter-visual {
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.method-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.method-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    background: #3498db;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.method-btn.getter {
    background: #2ecc71;
}

.method-btn.setter {
    background: #f39c12;
}

.method-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Inheritance Tree */
.inheritance-tree {
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.tree-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
    position: relative;
}

.tree-node {
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    width: 200px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.tree-node:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.tree-node.person {
    border: 3px solid #3498db;
}

.tree-node.student {
    border: 3px solid #2ecc71;
}

.tree-node.teacher {
    border: 3px solid #f39c12;
}

.tree-node::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background: #bdc3c7;
}

.tree-node.person::before {
    display: none;
}

.node-content h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.node-content .type {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-style: italic;
}

.node-methods {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ecf0f1;
}

.node-methods .method {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin: 0.25rem 0;
    font-family: 'Courier New', monospace;
}

.tree-connectors {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.connector {
    position: absolute;
    background: #bdc3c7;
    border-radius: 2px;
}

.connector.vertical {
    width: 2px;
}

.connector.horizontal {
    height: 2px;
}

/* Polymorphism Showcase */
.polymorphism-showcase {
    background: linear-gradient(135deg, #9b59b615, #8e44ad15);
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    border: 2px solid #9b59b6;
}

.shape-demo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.shape-card {
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.shape-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.shape-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.action-btn {
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    background: #3498db;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Interface Builder */
.interface-builder {
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 2rem;
    border: 2px solid #f39c12;
}

.builder-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-weight: bold;
    color: #2c3e50;
}

.method-select {
    padding: 0.75rem;
    border: 2px solid #ecf0f1;
    border-radius: 6px;
    font-size: 1rem;
}

.method-select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.interface-preview {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    font-family: 'Courier New', monospace;
    color: #d4d4d4;
}

/* Method Overloading Game */
.overloading-game {
    background: linear-gradient(135deg, #3498db15, #2ecc7115);
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    border: 2px solid #3498db;
}

.game-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.method-card {
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: move;
    user-select: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.method-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.method-card.dragging {
    opacity: 0.5;
}

.method-card.correct {
    border-color: #2ecc71;
    background: #d4edda;
}

.method-card.incorrect {
    border-color: #e74c3c;
    background: #f8d7da;
}

.method-signature {
    font-family: 'Courier New', monospace;
    color: #2c3e50;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.method-description {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.game-target {
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px dashed #bdc3c7;
    min-height: 200px;
    transition: all 0.3s ease;
}

.game-target.drag-over {
    border-color: #3498db;
    background: #3498db10;
}

.game-feedback {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-display {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
}

.score-display span {
    color: #2ecc71;
}

/* Exercises Section */
.exercises-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.exercise-tabs {
    display: flex;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    overflow-x: auto;
}

.exercise-tab {
    flex: 1;
    min-width: 150px;
    padding: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    border-bottom: 3px solid transparent;
}

.exercise-tab.active {
    background: rgba(255,255,255,0.1);
    border-bottom-color: #3498db;
    font-weight: bold;
}

.exercise-content {
    padding: 0;
}

.exercise-panel {
    display: none;
    padding: 2.5rem;
}

.exercise-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.exercise-instructions {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #3498db;
}

.exercise-editor {
    background: #1e1e1e;
    border-radius: 8px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.exercise-code {
    width: 100%;
    min-height: 300px;
    background: none;
    border: none;
    color: #d4d4d4;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    padding: 1.5rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
}

.editor-toolbar {
    background: #2d2d2d;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.tool-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    background: #3498db;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-btn.run {
    background: #27ae60;
}

.tool-btn.solution {
    background: #f39c12;
}

.tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.exercise-output {
    background: #2c3e50;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    padding: 1.5rem;
    border-radius: 8px;
    min-height: 150px;
    margin-top: 1.5rem;
    overflow-y: auto;
}

/* Quiz Section */
.quiz-container {
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.quiz-question {
    margin-bottom: 2rem;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.quiz-option {
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #ecf0f1;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quiz-option:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.1);
}

.quiz-option.selected {
    border-color: #3498db;
    background: #3498db10;
}

.quiz-option.correct {
    border-color: #27ae60;
    background: #d4edda;
}

.quiz-option.incorrect {
    border-color: #e74c3c;
    background: #f8d7da;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.option-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-checkbox.checked {
    background: #3498db;
    border-color: #3498db;
}

.option-checkbox.checked::after {
    content: '✓';
    color: white;
    font-weight: bold;
}

.option-text {
    flex: 1;
    color: #2c3e50;
}

/* Summary Cards */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.summary-card {
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-top: 5px solid;
}

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

.summary-card.key-concepts {
    border-color: #3498db;
}

.summary-card.best-practices {
    border-color: #2ecc71;
}

.summary-card.common-errors {
    border-color: #e74c3c;
}

.summary-card h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.summary-card ul {
    margin: 0;
    padding-left: 1.5rem;
}

.summary-card li {
    margin-bottom: 0.75rem;
    color: #666;
    line-height: 1.5;
    position: relative;
}

.summary-card li::before {
    content: '•';
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

/* Final Test */
.final-test {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 12px;
    padding: 2.5rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.test-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    height: 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.test-question {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.test-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.test-btn {
    padding: 0.75rem 2rem;
    border: 2px solid white;
    background: transparent;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.test-btn:hover {
    color: #3498db;
    transform: translateY(-2px);
}

.test-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.test-btn:disabled:hover {
    background: transparent;
    color: white;
    transform: none;
}

.test-results {
    color: #2c3e50;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    display: none;
}

.result-score {
    font-size: 3rem;
    font-weight: bold;
    color: #3498db;
    text-align: center;
    margin: 1rem 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Highlight Effect */
.highlight {
    background: linear-gradient(120deg, #a1c4fd10, #c2e9fb10);
    border-left: 4px solid #3498db;
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1rem 0;
}

/* Code Block Styling */
.code-block {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    position: relative;
}

.code-block pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.copy-code-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.code-block:hover .copy-code-btn {
    opacity: 1;
}

.copy-code-btn:hover {
    background: #2980b9;
}

/* Tooltip Styling */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted #3498db;
    cursor: help;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background: #2c3e50;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 0.5rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Badge Styling */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin: 0 0.25rem;
}

.badge.public {
    background: #2ecc71;
    color: white;
}

.badge.private {
    background: #e74c3c;
    color: white;
}

.badge.protected {
    background: #f39c12;
    color: white;
}

.badge.static {
    background: #9b59b6;
    color: white;
}

.badge.final {
    background: #3498db;
    color: white;
}