/* 7DTD Survival Manager (Project Hugh) - スタイルシート */

/* ===== リセット & ベース ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --header-height: 72px;
    --nav-height: 48px;
    --primary: #1a9fd8;
    --text: #ecf0f1;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ecf0f1;
    min-height: 100vh;
    line-height: 1.6;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #2980b9;
}

/* ===== ヘッダー ===== */
.dashboard-header {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--header-height);
}

.site-header {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--header-height);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-left {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ecf0f1;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    white-space: nowrap;
}

.header-nav {
    display: flex;
    gap: 10px;
    flex-grow: 1;
    justify-content: center;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 6px;
    color: #bdc3c7;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
}

.nav-link.active {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* ===== ナビゲーション（分離） ===== */
.dashboard-nav {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: var(--header-height);
    z-index: 950;
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 20px;
    justify-content: center;
}

.dashboard-nav a {
    padding: 8px 14px;
    border-radius: 8px;
    color: #bdc3c7;
    transition: all 0.3s;
    font-size: 14px;
    white-space: nowrap;
}

.dashboard-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
}

.dashboard-nav a.active {
    background: rgba(52, 152, 219, 0.22);
    color: #5dade2;
    box-shadow: 0 0 0 1px rgba(52, 152, 219, 0.25) inset;
}

.site-nav {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: var(--header-height);
    z-index: 950;
    min-height: var(--nav-height);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.site-nav .nav-link {
    padding: 8px 14px;
    border-radius: 8px;
    color: #bdc3c7;
    transition: all 0.3s;
    font-size: 14px;
    white-space: nowrap;
}

.site-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
}

.site-nav .nav-link.active {
    background: rgba(52, 152, 219, 0.22);
    color: #5dade2;
    box-shadow: 0 0 0 1px rgba(52, 152, 219, 0.25) inset;
}

.global-points-display {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-name {
    font-weight: 500;
    white-space: nowrap;
}

.btn-logout {
    background: #e74c3c;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    transition: background 0.3s;
    white-space: nowrap;
}

.btn-logout:hover {
    background: #c0392b;
    color: white;
}

/* ===== コンテナ ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.page-header {
    margin-bottom: 30px;
}

.page-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.page-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.page-header p {
    color: #bdc3c7;
    font-size: 16px;
}

/* ===== コンテンツラッパー ===== */
.content-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

/* ===== サイドバー ===== */
.sidebar {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #3498db;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: #bdc3c7;
    transition: all 0.3s;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ecf0f1;
}

.sidebar-menu a.active {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border-left: 3px solid #3498db;
}

/* ===== メインコンテンツ ===== */
.main-content {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-section {
    animation: fadeIn 0.3s ease-in;
}

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

.content-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #3498db;
}

/* ===== 検索ボックス ===== */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ecf0f1;
    font-size: 14px;
}

.search-input::placeholder {
    color: #7f8c8d;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.08);
}

/* ===== ボタン ===== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ecf0f1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.language-switch {
    display: flex;
    gap: 8px;
}

.hugh-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
}

.hugh-lang-btn {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: transparent;
    color: #d8e6f2;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.hugh-lang-btn.active {
    background: rgba(88, 101, 242, 0.75);
    color: #fff;
    border-color: rgba(88, 101, 242, 0.9);
}

/* ===== 情報メッセージ ===== */
.info-message {
    background: rgba(52, 152, 219, 0.1);
    border-left: 4px solid #3498db;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.info-message p {
    margin: 8px 0;
    color: #bdc3c7;
}

.info-message code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    color: #3498db;
    font-family: 'Courier New', monospace;
}

/* ===== ダッシュボードグリッド ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    color: #ecf0f1;
}

.dashboard-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(52, 152, 219, 0.5);
    transform: translateY(-5px);
}

.dashboard-card h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #ecf0f1;
}

.dashboard-card p {
    color: #bdc3c7;
    margin-bottom: 15px;
    font-size: 14px;
}

/* ===== MODグリッド ===== */
.mod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.mod-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.mod-card-clickable {
    cursor: pointer;
}

.mod-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(52, 152, 219, 0.5);
    transform: translateY(-2px);
}

.mod-card-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.mod-card-title h4 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #ecf0f1;
}

.mod-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #ecf0f1;
}

.mod-card p {
    color: #bdc3c7;
    font-size: 14px;
    margin-bottom: 12px;
}

.mod-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ecf0f1;
    font-weight: 700;
    font-size: 22px;
    flex-shrink: 0;
}

.mod-thumb.placeholder {
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.4);
}

.mod-ai-box {
    background: rgba(52, 152, 219, 0.08);
    border-left: 3px solid rgba(52, 152, 219, 0.6);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.mod-ai-title {
    display: block;
    font-size: 12px;
    color: #7fdbff;
    margin-bottom: 6px;
    font-weight: 600;
}

.mod-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-compat {
    flex: 1;
    min-width: 120px;
    transition: all 0.3s ease;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.btn-compat:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-compat.added {
    background: #10b981 !important;
}

.btn-compat:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.installed-mods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.installed-meta {
    color: #95a5a6;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.installed-meta .meta-label {
    color: #bdc3c7;
}

.installed-meta .meta-divider {
    color: #7f8c8d;
}

.installed-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.installed-mod-card {
    border-left: 3px solid rgba(52, 152, 219, 0.4);
}

.mod-status {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.mod-status.enabled {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.mod-status.disabled {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.external-search-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.external-note {
    color: #95a5a6;
    font-size: 12px;
}

.catalog-section {
    margin-top: 30px;
}

.catalog-section h3 {
    margin-bottom: 16px;
    color: #9b59b6;
}

.catalog-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.select-input {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ecf0f1;
    font-size: 14px;
}

.select-input:focus {
    outline: none;
    border-color: #9b59b6;
}

.mod-meta {
    font-size: 12px;
    color: #95a5a6;
    margin-bottom: 8px;
}

.mod-meta-row {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #bdc3c7;
    margin-bottom: 12px;
}

.catalog-admin {
    margin-top: 30px;
    padding: 20px;
    background: rgba(155, 89, 182, 0.08);
    border: 1px solid rgba(155, 89, 182, 0.3);
    border-radius: 10px;
}

.catalog-admin h3 {
    color: #9b59b6;
    margin-bottom: 10px;
}

.catalog-admin-note {
    color: #bdc3c7;
    font-size: 13px;
    margin-bottom: 16px;
}

.catalog-import-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.catalog-import-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.file-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 10px;
    border-radius: 6px;
    color: #ecf0f1;
}

.catalog-import-help {
    font-size: 12px;
    color: #95a5a6;
}

.catalog-import-result {
    font-size: 13px;
    margin-top: 10px;
}

.catalog-import-result.success {
    color: #2ecc71;
}

.catalog-import-result.error {
    color: #e74c3c;
}

/* ===== MOD Builder ===== */
.mod-builder-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mod-builder-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.mod-builder-tab {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #ecf0f1;
    cursor: pointer;
}

.mod-builder-tab.active {
    background: rgba(26, 159, 216, 0.25);
    border-color: rgba(26, 159, 216, 0.65);
}

.mod-builder-tab.is-locked {
    opacity: 0.65;
    cursor: not-allowed;
}

.mod-builder-panel {
    display: none;
    margin-top: 14px;
}

.mod-builder-panel.active {
    display: block;
}

.mod-builder-form {
    display: grid;
    gap: 12px;
}

.mod-builder-form label {
    display: grid;
    gap: 6px;
    color: #cfd8dc;
}

.mod-builder-textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #ecf0f1;
    font-family: Consolas, Monaco, 'Courier New', monospace;
}

.mod-builder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mod-builder-table-wrap {
    overflow-x: auto;
}

.mod-builder-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mod-builder-table th,
.mod-builder-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
}

.mod-builder-table tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.mod-builder-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.mod-builder-status.status-draft {
    background: rgba(149, 165, 166, 0.2);
    color: #bdc3c7;
}

.mod-builder-status.status-pending {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.mod-builder-status.status-in_review {
    background: rgba(52, 152, 219, 0.2);
    color: #5dade2;
}

.mod-builder-status.status-approved {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.mod-builder-status.status-rejected {
    background: rgba(231, 76, 60, 0.2);
    color: #ff8a80;
}

.mod-builder-status.status-on_hold {
    background: rgba(155, 89, 182, 0.2);
    color: #d2b4de;
}

.mod-builder-pre {
    margin-top: 8px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 8px;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 360px;
    overflow: auto;
}

.mod-builder-events {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.mod-builder-event {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.mod-builder-time {
    font-size: 12px;
    color: #95a5a6;
    margin-top: 4px;
}

.mod-builder-success {
    border-left-color: #2ecc71;
}

.mod-builder-error {
    border-left-color: #e74c3c;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .mod-builder-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .mod-builder-table th,
    .mod-builder-table td {
        padding: 8px;
        font-size: 12px;
    }
}

.catalog-sync {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.catalog-sync-note {
    font-size: 12px;
    color: #95a5a6;
}

.recommendations {
    margin-top: 30px;
}

.recommendations h3 {
    margin-bottom: 16px;
    color: #f1c40f;
}

/* ===== MOD 詳細モーダル ===== */
.mod-modal {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 20, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2000;
}

.mod-modal.open {
    display: flex;
}

.mod-modal-dialog {
    width: min(820px, 95vw);
    max-height: 90vh;
    overflow: hidden;
    background: #121826;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
}

.mod-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: rgba(231, 76, 60, 0.9);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.mod-modal-body {
    padding: 28px;
    overflow-y: auto;
    max-height: 90vh;
}

.mod-modal-header {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 20px;
}

.mod-modal-thumb {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #ecf0f1;
}

.mod-modal-thumb.placeholder {
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.4);
}

.mod-modal-title-block h3 {
    font-size: 26px;
    margin-bottom: 8px;
}

.mod-modal-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mod-tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #bdc3c7;
}

.mod-modal-section {
    margin-bottom: 20px;
}

.mod-modal-section h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #9b59b6;
}

.mod-ai-intro {
    background: rgba(52, 152, 219, 0.08);
    border-left: 3px solid rgba(52, 152, 219, 0.6);
    padding: 16px;
    border-radius: 10px;
}

.mod-ai-note {
    font-size: 12px;
    color: #95a5a6;
}

.mod-modal-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.mod-modal-meta-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 10px;
    border-radius: 8px;
}

.mod-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mod-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: rgba(0, 0, 0, 0.8);
    color: #ecf0f1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 2100;
}

.mod-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== プロフィール ===== */
.profile-container {
    max-width: 1000px;
}

.profile-header-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
}

.profile-avatar img,
.avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.avatar-placeholder {
    background: linear-gradient(135deg, #3498db, #9b59b6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
}

.profile-info h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.user-role {
    display: inline-block;
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.user-id {
    color: #7f8c8d;
    font-size: 14px;
}

/* ===== 統計グリッド ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 15px;
    align-items: center;
    transition: all 0.3s;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.global-points-card {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.2), rgba(230, 126, 34, 0.2));
    border-color: rgba(243, 156, 18, 0.5);
}

.stat-icon {
    font-size: 32px;
}

.stat-info h3 {
    font-size: 14px;
    color: #bdc3c7;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #ecf0f1;
}

.stat-label {
    font-size: 12px;
    color: #7f8c8d;
    font-style: italic;
}

/* ===== 情報セクション ===== */
.info-section,
.history-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.info-section h3,
.history-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #3498db;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-table td {
    padding: 12px;
}

.info-table td:first-child {
    font-weight: 500;
    color: #3498db;
    width: 200px;
}

/* ===== 履歴テーブル ===== */
.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.history-table thead {
    background: rgba(255, 255, 255, 0.05);
}

.history-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #3498db;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.history-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.points-positive {
    color: #2ecc71;
    font-weight: 600;
}

.points-negative {
    color: #e74c3c;
    font-weight: 600;
}

/* ===== フッター ===== */
.site-footer {
    background: rgba(0, 0, 0, 0.4);
    margin-top: 60px;
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-section p {
    color: #bdc3c7;
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #bdc3c7;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-section code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    color: #3498db;
    font-size: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #7f8c8d;
    font-size: 14px;
}

/* ===== Scraper Section ===== */
.catalog-scraper {
    padding: 15px;
    background-color: rgba(16, 185, 129, 0.05);
    border-left: 4px solid #10b981;
    border-radius: 8px;
    margin-top: 15px;
}

.catalog-scraper h4 {
    font-size: 1rem;
    color: #ecf0f1;
    margin-bottom: 10px;
}

.catalog-scraper-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.catalog-scraper-buttons button {
    flex: 0 1 auto;
}

.catalog-scraper-status {
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    word-break: break-word;
    display: none;
    margin-top: 10px;
}

.catalog-scraper-status:not(:empty) {
    display: block;
}

.catalog-scraper-status.success {
    background-color: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10b981;
    color: #86efac;
}

.catalog-scraper-status.error {
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    color: #fca5a5;
}

.catalog-scraper-status.info {
    background-color: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
    color: #93c5fd;
}

.catalog-scraper-status.loading {
    background-color: rgba(100, 116, 139, 0.1);
    border-left: 4px solid #64748b;
    color: #cbd5e1;
    animation: loading-pulse 1.5s infinite;
}

@keyframes loading-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== レスポンシブ ===== */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-nav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-header-card {
        flex-direction: column;
        text-align: center;
    }

    .catalog-scraper-buttons {
        flex-direction: column;
    }

    .catalog-scraper-buttons button {
        width: 100%;
    }
}
