/* 荒野行動 集結コード掲示板 スタイルシート */

.korc-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 通知メッセージ */
.korc-notice {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.korc-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.korc-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.korc-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* 投稿フォーム */
.korc-post-form {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    color: white;
}

.korc-post-form h3 {
    margin: 0 0 10px 0;
    font-size: 1.4em;
}

.korc-info {
    opacity: 0.9;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.korc-form-row {
    margin-bottom: 15px;
}

.korc-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.korc-form-row input[type="text"],
.korc-form-row textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
}

.korc-form-row textarea {
    min-height: 80px;
    resize: vertical;
}

/* ボタン */
.korc-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.korc-btn-primary {
    background: white;
    color: #667eea;
}

.korc-btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.korc-btn-use {
    background: #28a745;
    color: white;
    padding: 8px 16px;
    font-size: 0.9em;
}

.korc-btn-use:hover {
    background: #218838;
}

/* コード一覧 */
.korc-code-list h3 {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: #333;
}

.korc-empty {
    text-align: center;
    padding: 40px;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
}

.korc-codes {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 個別コードカード */
.korc-code-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.korc-code-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.korc-code-item.korc-used-up {
    opacity: 0.6;
    background: #f5f5f5;
}

.korc-code-item.korc-already-used {
    border-left: 4px solid #17a2b8;
}

.korc-code-item.korc-own {
    border-left: 4px solid #ffc107;
}

.korc-code-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.korc-author {
    font-weight: 600;
    color: #333;
}

.korc-date {
    margin-left: auto;
    font-size: 0.85em;
    color: #888;
}

/* バッジ */
.korc-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
}

.korc-badge-used {
    background: #dc3545;
    color: white;
}

.korc-badge-mine {
    background: #17a2b8;
    color: white;
}

.korc-badge-own {
    background: #ffc107;
    color: #333;
}

.korc-code-body {
    padding: 15px;
}

.korc-code-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f4ff;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.korc-code-label {
    color: #666;
    font-size: 0.9em;
}

.korc-code-value {
    font-family: 'Courier New', monospace;
    font-size: 1.2em;
    font-weight: bold;
    color: #667eea;
    word-break: break-all;
}

.korc-copy-btn {
    margin-left: auto;
    padding: 6px 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    transition: background 0.3s;
}

.korc-copy-btn:hover {
    background: #5a6fd6;
}

.korc-message {
    color: #555;
    font-size: 0.95em;
    margin: 10px 0;
    padding: 10px;
    background: #fafafa;
    border-radius: 6px;
}

.korc-code-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}

.korc-usage-count {
    font-size: 0.9em;
    color: #666;
    background: #e9ecef;
    padding: 5px 12px;
    border-radius: 15px;
}

/* レスポンシブ */
@media (max-width: 600px) {
    .korc-container {
        padding: 10px;
    }
    
    .korc-post-form {
        padding: 15px;
    }
    
    .korc-code-display {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .korc-copy-btn {
        margin-left: 0;
        width: 100%;
    }
    
    .korc-code-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .korc-date {
        margin-left: 0;
        width: 100%;
        margin-top: 5px;
    }
}
