/**
 * 紹介リンクカードのリデザイン
 * モダンで洗練されたデザインに改善
 */

/* リンクアイテムカード */
.link-item {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 102, 255, 0.1);
}

.link-item:hover {
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(0, 102, 255, 0.2);
}

/* リンクヘッダー */
.link-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.link-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-info h3::before {
    content: '#';
    color: #0066ff;
    font-weight: 400;
}

.link-code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-size: 0.875rem;
    color: #4a5568;
    background: #f7fafc;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    display: inline-block;
    letter-spacing: 0.05em;
}

/* 統計情報 */
.link-stats {
    display: flex;
    gap: 1.5rem;
}

.link-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4a5568;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.link-stats .stat:hover {
    background: #e9ecef;
    color: #2d3748;
}

.link-stats .stat i {
    color: #0066ff;
    font-size: 1rem;
}

/* URLセクション */
.link-url {
    margin-bottom: 1.25rem;
    position: relative;
}

.link-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #f8f9fb;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-family: 'SF Mono', monospace;
    font-size: 0.875rem;
    color: #2d3748;
    transition: all 0.2s ease;
}

.link-input:focus {
    outline: none;
    border-color: #0066ff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* アクションボタン */
.link-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.link-actions .btn {
    flex: 1;
    min-width: 100px;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.link-actions .btn i {
    font-size: 0.875rem;
}

/* コピーボタン */
.link-actions .copy-btn {
    background: #f0f4f8;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.link-actions .copy-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

/* 共有ボタン */
.link-actions .share-btn {
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 102, 255, 0.2);
}

.link-actions .share-btn:hover {
    background: linear-gradient(135deg, #0052cc 0%, #0041a8 100%);
    box-shadow: 0 4px 8px rgba(0, 102, 255, 0.3);
    transform: translateY(-1px);
}

/* 削除ボタン */
.link-actions .delete-btn {
    background: #fff5f5;
    color: #e53e3e;
    border: 1px solid #feb2b2;
}

.link-actions .delete-btn:hover {
    background: #fed7d7;
    border-color: #fc8181;
    transform: translateY(-1px);
}

/* モバイルレスポンシブ */
@media (max-width: 640px) {
    .link-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .link-stats {
        width: 100%;
        justify-content: space-around;
    }
    
    .link-actions {
        flex-direction: column;
    }
    
    .link-actions .btn {
        width: 100%;
    }
}