/**
 * ショートコード共通スタイル
 * SUGOまとMEDIA
 */

/* =================================
   共通フォームスタイル
================================= */
.sugo-form-group {
    margin-bottom: 16px;
}

.sugo-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.sugo-form-group label .required {
    color: #ef4444;
    font-size: 12px;
}

.sugo-form-group input[type="text"],
.sugo-form-group input[type="email"],
.sugo-form-group input[type="url"],
.sugo-form-group input[type="password"],
.sugo-form-group input[type="number"],
.sugo-form-group textarea,
.sugo-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    color: #111827;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sugo-form-group input:focus,
.sugo-form-group textarea:focus,
.sugo-form-group select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.sugo-form-group input::placeholder,
.sugo-form-group textarea::placeholder {
    color: #9ca3af;
}

.sugo-form-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.sugo-form-actions {
    margin-top: 20px;
}

.sugo-form-result {
    margin-top: 16px;
}

/* =================================
   ボタンスタイル
================================= */
.sugo-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.sugo-btn:hover {
    opacity: 0.9;
}

.sugo-btn:active {
    transform: scale(0.98);
}

.sugo-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sugo-btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
}

.sugo-btn-secondary {
    background: #6b7280;
    color: #fff;
}

.sugo-btn-outline {
    background: transparent;
    border: 2px solid #8b5cf6;
    color: #8b5cf6;
}

.sugo-btn-outline:hover {
    background: #8b5cf6;
    color: #fff;
}

/* =================================
   メッセージスタイル
================================= */
.sugo-success {
    padding: 12px 16px;
    background: #d1fae5;
    border: 1px solid #10b981;
    border-radius: 8px;
    color: #065f46;
    font-size: 14px;
}

.sugo-error {
    padding: 12px 16px;
    background: #fee2e2;
    border: 1px solid #ef4444;
    border-radius: 8px;
    color: #991b1b;
    font-size: 14px;
}

.sugo-warning {
    padding: 12px 16px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    color: #92400e;
    font-size: 14px;
}

.sugo-info {
    padding: 12px 16px;
    background: #dbeafe;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    color: #1e40af;
    font-size: 14px;
}

/* =================================
   登録フォーム
================================= */
.sugo-register-form,
.sugo-member-form {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sugo-register-form h3,
.sugo-member-form h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

/* プレビューエリア */
.sugo-preview {
    margin-top: 20px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.sugo-preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sugo-preview-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.sugo-preview-info {
    flex: 1;
}

.sugo-preview-name {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
}

.sugo-preview-uid {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* 認証情報 */
.sugo-credentials {
    margin-top: 16px;
    padding: 16px;
    background: #d1fae5;
    border-radius: 8px;
    border: 1px solid #10b981;
}

.sugo-credentials code {
    background: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-family: monospace;
}

/* =================================
   ログインフォーム
================================= */
.sugo-login-form {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sugo-login-form h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px;
}

/* =================================
   マイページ
================================= */
.sugo-mypage {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sugo-mypage-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
}

.sugo-mypage-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.3);
}

.sugo-mypage-info {
    flex: 1;
}

.sugo-mypage-info h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
}

.sugo-mypage-uid {
    font-size: 13px;
    opacity: 0.8;
}

.sugo-mypage-section {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.sugo-mypage-section:last-child {
    border-bottom: none;
}

.sugo-mypage-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
}

/* =================================
   プロフィール一覧
================================= */
.sugo-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.sugo-no-results {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-size: 14px;
}

/* =================================
   タイムライン
================================= */
.sugo-timeline {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sugo-tweet-item {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.sugo-tweet-item:last-child {
    border-bottom: none;
}

.sugo-tweet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sugo-tweet-author {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.sugo-tweet-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.sugo-tweet-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.sugo-tweet-time {
    font-size: 12px;
    color: #9ca3af;
}

.sugo-tweet-content {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

/* =================================
   プロフィールカード
================================= */
.sugo-profile-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sugo-profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.sugo-card-image {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.sugo-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sugo-card-body {
    padding: 12px;
}

.sugo-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sugo-card-badge {
    display: inline-block;
    font-size: 10px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.sugo-card-desc {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sugo-card-points {
    display: flex;
    gap: 12px;
    font-size: 12px;
    margin-bottom: 6px;
}

.sugo-point-charm {
    color: #8b5cf6;
}

.sugo-point-rich {
    color: #f59e0b;
}

.sugo-card-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #9ca3af;
}

.sugo-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.sugo-tag {
    font-size: 10px;
    color: #8b5cf6;
    background: #f5f3ff;
    padding: 2px 6px;
    border-radius: 10px;
}

/* =================================
   レスポンシブ
================================= */
@media (max-width: 480px) {
    .sugo-register-form,
    .sugo-member-form,
    .sugo-login-form {
        padding: 16px;
    }
    
    .sugo-mypage-header {
        flex-wrap: wrap;
    }
    
    .sugo-profile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}