/* Barcode.wasm 特有のスタイル */

/* 最新リリース情報 */
.latest-release {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    display: inline-block;
}

.release-label {
    color: #666;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.release-version {
    color: #20B2AA;
    font-weight: bold;
}

/* セクション説明文 */
.section-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* 特徴グリッド */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

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

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* デモカード */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.demo-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.demo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.demo-card .demo-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.demo-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.demo-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.demo-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.demo-link {
    color: #20B2AA;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.demo-link:hover {
    color: #1a9690;
}

.demo-link.download {
    color: #4A90E2;
}

.demo-link.download:hover {
    color: #357ABD;
}

/* npmパッケージ情報 */
.package-info {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    color: white;
}

.package-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #20B2AA;
    margin-bottom: 1rem;
}

.package-install {
    background: #0d1117;
    padding: 1rem 2rem;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 1rem;
}

.package-install code {
    color: #58a6ff;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1rem;
}

.package-links {
    margin-top: 1rem;
}

.package-link {
    color: #20B2AA;
    text-decoration: none;
    transition: color 0.3s;
}

.package-link:hover {
    color: #3dd6d0;
}

/* コード例 */
.code-example {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
}

.code-example pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-example code {
    color: #d4d4d4;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 動作環境 */
.requirements {
    background: #f8f9fa;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    border-left: 4px solid #20B2AA;
}

.requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.requirements li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #20B2AA;
    font-weight: bold;
}

/* バーコード種類テーブル */
.BarcodeType {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.BarcodeType th {
    background: #1A1A1A;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 500;
}

.BarcodeType td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.BarcodeType td:first-child {
    font-weight: 500;
    width: 25%;
    background: #f8f9fa;
}

.BarcodeType ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.BarcodeType li {
    position: relative;
    padding-left: 1.2rem;
    margin: 0.4rem 0;
}

.BarcodeType li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #20B2AA;
}

/* サブセクションタイトル */
.subsection-title {
    color: #333;
    font-size: 1rem;
    margin: 1.5rem 0 0.5rem 0;
    padding-left: 0.5rem;
    border-left: 3px solid #20B2AA;
}