/* Docker講座共通CSS */

/* コンテンツセクション */
.content-section h3 {
    color: #22d3ee;
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: rgba(34, 211, 238, 0.05);
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.content-section h3:hover {
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.4);
}

.content-section h3::after {
    content: '▼';
    font-size: 16px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.content-section h3.collapsed::after {
    transform: rotate(-90deg);
}

.content-section .collapsible-content {
    display: block !important;
    margin-bottom: 8px;
}

.content-section .collapsible-content.collapsed {
    display: none !important;
}

.content-section h4 {
    color: #67e8f9;
    margin: 8px 0 8px;
    font-size: 20px;
    font-weight: 600;
}

.content-section p {
    margin: 8px 0;
    line-height: 1.8;
    color: #d1d5db;
}

/* コードブロック */
.command-box {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    overflow-x: auto;
    position: relative;
}

.yaml-code {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    overflow-x: auto;
    white-space: pre;
    position: relative;
}

.dockerfile-code {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    overflow-x: auto;
    white-space: pre;
    position: relative;
}

.file-tree {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.command {
    color: #22d3ee;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.command::before {
    content: '$';
    color: #94a3b8;
}

.output {
    color: #86efac;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    white-space: pre-wrap;
    line-height: 1.6;
}

/* 情報ボックス */
.info-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-left: 4px solid #3b82f6;
    padding: 16px;
    margin: 16px 0;
    border-radius: 4px;
}

.warning-box {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-left: 4px solid #fbbf24;
    padding: 16px;
    margin: 16px 0;
    border-radius: 4px;
}

.success-box {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.05) 100%);
    border-left: 4px solid #22c55e;
    padding: 16px;
    margin: 16px 0;
    border-radius: 4px;
}

.error-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-left: 4px solid #ef4444;
    padding: 16px;
    margin: 16px 0;
    border-radius: 4px;
}

/* YAMLコピーボタン */
.yaml-code .copy-button {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 6px 12px;
    background: rgba(34, 211, 238, 0.2);
    border: 1px solid rgba(34, 211, 238, 0.4);
    border-radius: 4px;
    color: #22d3ee;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    font-family: 'Noto Sans JP', sans-serif;
}

.yaml-code .copy-button:hover {
    background: rgba(34, 211, 238, 0.3);
    border-color: rgba(34, 211, 238, 0.6);
}

/* その他 */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.comparison-table th,
.comparison-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(100, 116, 139, 0.3);
}

.comparison-table th {
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
    font-weight: 600;
}

.step-box {
    background: rgba(34, 211, 238, 0.05);
    border-left: 4px solid #22d3ee;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
    margin-right: 12px;
}

.visual-diagram {
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(34, 211, 238, 0.3);
    border-radius: 12px;
    padding: 32px;
    margin: 24px 0;
}
