/*
 * Plugin Styles for My YouTuber Rating Plugin - SNS Links
 */

/* =============================== */
/* SNS Links Section (Edit Form)   */
/* 既存のSNS編集フォームのスタイル */
/* =============================== */
.youtuber-social-links-section {
    margin-bottom: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.social-links-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.social-links-list li {
    margin-bottom: 0;
    padding: 0;
    border-bottom: none;
}

.social-links-list li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease-in-out;
    flex-grow: 0;
    margin-right: 0;
    word-break: normal;
}

.social-links-list li a:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

.social-links-list li a i {
    font-size: 32px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #eee;
    color: #555;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    margin-bottom: 8px;
    transition: all 0.2s ease-in-out;
}

.social-links-list li a:hover i {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    filter: brightness(1.05);
}

.social-links-list .fab.fa-youtube {
    background-color: #FF0000;
    color: #fff;
}
.social-links-list .fab.fa-youtube:hover {
    background-color: #cc0000;
}

.social-links-list .fab.fa-x-twitter {
    background-color: #000000;
    color: #fff;
}
.social-links-list .fab.fa-x-twitter:hover {
    background-color: #333333;
}

.social-links-list .fab.fa-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: #fff;
}
.social-links-list .fab.fa-instagram:hover {
    filter: brightness(1.1);
}

.social-links-list .fab.fa-tiktok {
    background-color: #000000;
    color: #fff;
}
.social-links-list .fab.fa-tiktok:hover {
    background-color: #333333;
}

.social-links-list .fab.fa-facebook {
    background-color: #1877F2;
    color: #fff;
}
.social-links-list .fab.fa-facebook:hover {
    background-color: #0e64d0;
}

.social-links-list .fab.fa-wikipedia-w {
    background-color: #EEEEEE;
    color: #000;
}
.social-links-list .fab.fa-wikipedia-w:hover {
    background-color: #cccccc;
}

.social-links-list .platform-name {
    font-size: 0.9em;
    color: #555;
    white-space: nowrap;
    font-weight: bold;
}
.social-links-list .url-text {
    font-size: 0.8em;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.sns-actions {
    display: flex;
    gap: 5px;
    margin-left: 10px;
}

.edit-sns-url-form {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.edit-sns-url-form input[type="url"] {
    flex-grow: 1;
    margin-bottom: 0;
}

.edit-sns-message {
    margin-top: 5px;
    font-size: 0.9em;
    font-weight: bold;
    width: 100%;
}
.edit-sns-message.success {
    color: #155724;
}
.edit-sns-message.error {
    color: #721c24;
}


/* =============================== */
/* SNS Links Section (Overview Display) */
/* トップに表示されるSNSアイコンのリスト */
/* =============================== */
.youtuber-social-links-overview-section {
    margin-top: 30px; /* 他のセクションとの間にスペース */
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee; /* 上部に区切り線 */
}

.social-links-overview-list {
    display: flex; /* これによって子要素（<li>）が横並びになります */
    flex-wrap: wrap; /* 画面幅が狭い場合に折り返す */
    list-style: none; /* リストの黒点を削除 */
    padding: 0; /* デフォルトのパディングを削除 */
    margin: 0; /* デフォルトのマージンを削除 */
    gap: 20px; /* アイコン間の隙間を調整 */
    justify-content: center; /* アイコンを中央に寄せる（任意） */
}

.social-links-overview-list li {
    margin: 0; /* li要素のデフォルトマージンを削除 */
}

.social-links-overview-list li a {
    display: flex;
    flex-direction: column; /* アイコンの下にテキストを配置する場合（現在アイコンのみなので見た目に影響は少ないですが残しておきます） */
    align-items: center; /* 垂直方向の中央揃え */
    text-decoration: none; /* 下線を削除 */
    color: inherit; /* 親要素の文字色を継承 */
    transition: transform 0.2s ease-in-out; /* ホバー時のアニメーション */
}

.social-links-overview-list li a:hover {
    transform: translateY(-3px); /* ホバーで少し上に移動 */
}

/* SNSアイコン（iタグ）自体のスタイル */
.social-links-overview-list li a i {
    font-size: 38px; /* アイコンのサイズをさらに大きくする (調整可能) */
    width: 75px; /* アイコンの背景円の幅 */
    height: 75px; /* アイコンの背景円の高さ */
    border-radius: 50%; /* 完全な円にする */
    display: flex; /* アイコン自体を中央に配置するため */
    justify-content: center;
    align-items: center;
    background-color: #eee; /* 背景色 */
    color: #555; /* アイコンの色 (個別の色で上書きされます) */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15); /* 影 */
    margin-bottom: 0; /* アイコンの下にテキストがないため、マージンを0に */
    transition: all 0.2s ease-in-out;
}

.social-links-overview-list li a:hover i {
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25); /* ホバー時の影を強調 */
    filter: brightness(1.05); /* ホバーで少し明るく */
}

/* 各SNSアイコンの固有色 */
.social-links-overview-list .fab.fa-youtube {
    background-color: #FF0000;
    color: #fff;
}
.social-links-overview-list .fab.fa-youtube:hover {
    background-color: #cc0000;
}

.social-links-overview-list .fab.fa-x-twitter {
    background-color: #000000;
    color: #fff;
}
.social-links-overview-list .fab.fa-x-twitter:hover {
    background-color: #333333;
}

.social-links-overview-list .fab.fa-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: #fff;
}
.social-links-overview-list .fab.fa-instagram:hover {
    filter: brightness(1.1);
}

.social-links-overview-list .fab.fa-tiktok {
    background-color: #000000;
    color: #fff;
}
.social-links-overview-list .fab.fa-tiktok:hover {
    background-color: #333333;
}

.social-links-overview-list .fab.fa-facebook {
    background-color: #1877F2;
    color: #fff;
}
.social-links-overview-list .fab.fa-facebook:hover {
    background-color: #0e64d0;
}

.social-links-overview-list .fab.fa-wikipedia-w {
    background-color: #EEEEEE;
    color: #000;
}
.social-links-overview-list .fab.fa-wikipedia-w:hover {
    background-color: #cccccc;
}


/* =============================== */
/* Responsive Adjustments (SNS Only) */
/* =============================== */
@media (max-width: 768px) {
    .social-links-list { /* 編集フォーム用 */
        gap: 15px;
    }
    .social-links-list li a i { /* 編集フォーム用 */
        width: 55px;
        height: 55px;
        font-size: 28px;
        margin-bottom: 5px;
    }
    .social-links-list .platform-name, /* 編集フォーム用 */
    .social-links-list .url-text { /* 編集フォーム用 */
        font-size: 0.8em;
    }

    .social-links-overview-list {
        gap: 15px; /* モバイルでは少し隙間を小さく */
    }
    .social-links-overview-list li a i {
        font-size: 32px; /* モバイルでのアイコンサイズ */
        width: 65px;
        height: 65px;
    }

    /* SNS編集フォーム内の要素の調整 */
    .sns-add-form-container input[type="url"],
    .sns-add-form-container textarea,
    .edit-sns-url-form input[type="url"] {
        padding: 8px;
        font-size: 0.9em;
    }
    .sns-add-form-container input[type="submit"],
    .sns-actions button,
    .edit-sns-url-form button {
        padding: 8px 15px;
        font-size: 0.9em;
        margin-right: 8px;
    }
    .edit-sns-url-form {
        flex-direction: column;
        align-items: stretch;
    }
    .edit-sns-url-form input[type="url"] {
        width: auto;
        margin-bottom: 10px;
    }
    .edit-sns-url-form button {
        width: 100%;
        margin-right: 0;
        margin-bottom: 5px;
    }
    .edit-sns-message {
        text-align: center;
    }
}