/**
 * N1110 Slide & Manga Publisher - Frontend CSS
 */

/* ============================================
   コンテナ
============================================ */
.n1110-smp-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ============================================
   ナビゲーション
============================================ */
.n1110-smp-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.n1110-smp-nav-left,
.n1110-smp-nav-center,
.n1110-smp-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.n1110-smp-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.n1110-smp-nav-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
    transform: translateY(-2px);
}

.n1110-smp-top-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
}

.n1110-smp-top-btn:hover {
    background: #fff;
    color: #764ba2;
}

.n1110-smp-icon {
    font-size: 18px;
}

/* ============================================
   言語切り替え
============================================ */
.n1110-smp-lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.n1110-smp-lang-btn {
    padding: 6px 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.n1110-smp-lang-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.n1110-smp-lang-btn.active {
    color: #667eea;
    background: #fff;
}

.n1110-smp-lang-separator {
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   ページネーション
============================================ */
.n1110-smp-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.n1110-smp-page-info {
    color: #fff;
    font-weight: 500;
    padding: 0 10px;
}

.n1110-smp-bottom-nav {
    margin-top: 25px;
    text-align: center;
}

.n1110-smp-pagination-full {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.n1110-smp-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.n1110-smp-page-num:hover {
    background: #667eea;
    color: #fff;
}

.n1110-smp-page-num.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

/* ============================================
   スライド表示
============================================ */
.n1110-smp-slides {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.n1110-smp-slide-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.n1110-smp-slide-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.n1110-smp-figure {
    margin: 0;
}

.n1110-smp-image {
    width: 100%;
    height: auto;
    display: block;
}

.n1110-smp-caption {
    padding: 20px 25px;
    background: #fafafa;
}

.n1110-smp-title {
    margin: 0 0 10px 0;
    font-size: 1.25em;
    color: #333;
}

.n1110-smp-description {
    margin: 0;
    color: #666;
    line-height: 1.7;
}

/* ============================================
   関連リンク
============================================ */
.n1110-smp-related-link {
    padding: 15px 25px 25px;
}

.n1110-smp-link-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.n1110-smp-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
    color: #fff;
}

/* ============================================
   ギャラリー表示
============================================ */
.n1110-smp-gallery {
    display: grid;
    grid-template-columns: repeat(var(--columns, 1), 1fr);
    gap: 20px;
}

.n1110-smp-gallery-item {
    position: relative;
}

.n1110-smp-gallery-item .n1110-smp-figure {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.n1110-smp-slide-number {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 10;
}

/* ============================================
   エラー表示
============================================ */
.n1110-smp-error {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    text-align: center;
}

/* ============================================
   レスポンシブ対応
============================================ */
@media (max-width: 768px) {
    .n1110-smp-container {
        padding: 15px;
    }
    
    .n1110-smp-navigation {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .n1110-smp-nav-left,
    .n1110-smp-nav-center,
    .n1110-smp-nav-right {
        width: 100%;
        justify-content: center;
    }
    
    .n1110-smp-nav-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .n1110-smp-caption {
        padding: 15px 20px;
    }
    
    .n1110-smp-gallery {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ダークモード対応
============================================ */
@media (prefers-color-scheme: dark) {
    .n1110-smp-slide-item {
        background: #1a1a2e;
    }
    
    .n1110-smp-caption {
        background: #16213e;
    }
    
    .n1110-smp-title {
        color: #eee;
    }
    
    .n1110-smp-description {
        color: #aaa;
    }
    
    .n1110-smp-page-num {
        background: #2a2a3e;
        color: #eee;
    }
}
