/* gift.css - アイドル育成アプリ風デザイン（サイト統一版） */

/* ===== タブ ===== */
.gift-tabs {
    display: flex;
    background: white;
    padding: 5px;
    border-radius: 25px;
    margin: 15px;
    box-shadow: 0 2px 10px rgba(230, 46, 92, 0.15);
    border: 2px solid var(--primary-color);
}
.gift-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 8px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    color: var(--light-text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.gift-tab.active {
    background: var(--gradient-pink);
    color: white;
    box-shadow: 0 3px 10px rgba(255, 123, 140, 0.4);
}
.gift-tab i {
    font-size: 14px;
}

.gift-content { 
    display: none; 
    animation: fadeIn 0.4s ease; 
    padding: 0 15px 100px;
    overflow-y: auto;
}
.gift-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 支援タブ - アイドル育成アプリ風 ===== */
#gift-plan-area {
    background: linear-gradient(180deg, #fff5f7 0%, #ffe8ec 50%, #ffd6de 100%);
    margin: 0 -15px;
    padding: 20px 15px 30px;
    min-height: calc(100% - 60px);
}

.support-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}
.support-header::before {
    content: '♪';
    position: absolute;
    top: -5px; left: 20px;
    font-size: 20px;
    color: var(--accent-color);
    animation: float 2s ease-in-out infinite;
}
.support-header::after {
    content: '♡';
    position: absolute;
    top: 0; right: 25px;
    font-size: 18px;
    color: var(--deep-rose);
    animation: float 2s ease-in-out infinite 0.5s;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.support-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--deep-rose);
    margin: 0 0 8px;
    text-shadow: 0 1px 2px rgba(230, 46, 92, 0.2);
}
.support-header p {
    font-size: 12px;
    color: var(--light-text-color);
    margin: 0;
    line-height: 1.6;
}

.plan-list.idol-style {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.idol-card {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(255, 182, 193, 0.3);
}
.idol-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}
.idol-card:hover::before,
.idol-card:active::before { opacity: 1; }
.idol-card:active { transform: scale(0.98); }

.idol-card.popular {
    border: 3px solid var(--deep-rose);
    box-shadow: 0 4px 20px rgba(230, 46, 92, 0.25);
    background: linear-gradient(135deg, #fff 0%, #fff5f7 100%);
}
.idol-card.popular::after {
    content: '👑 人気';
    position: absolute;
    top: -2px; right: 12px;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.idol-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.idol-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.idol-icon {
    width: 55px; height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.idol-icon.bronze { 
    background: linear-gradient(135deg, #f4d8c8 0%, #d4a574 100%);
    border: 3px solid #cd9b6a;
}
.idol-icon.silver { 
    background: linear-gradient(135deg, #f0f0f0 0%, #c0c0c0 100%);
    border: 3px solid #a8a8a8;
}
.idol-icon.gold { 
    background: linear-gradient(135deg, #fff5cc 0%, #ffd700 100%);
    border: 3px solid #e6c200;
}

.idol-info h4 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-color);
}
.idol-info p {
    margin: 0;
    font-size: 12px;
    color: var(--light-text-color);
    font-weight: 600;
}

.idol-btn {
    background: var(--gradient-pink);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(255, 123, 140, 0.4);
    transition: all 0.3s;
    pointer-events: none;
}

/* ===== メッセージギフト - キュート風 ===== */
#gift-msg-area {
    background: linear-gradient(180deg, #f0f8ff 0%, #fff0f5 50%, #ffe4ec 100%);
    margin: 0 -15px;
    padding: 20px 15px 30px;
    min-height: calc(100% - 60px);
}

.msg-header {
    text-align: center;
    margin-bottom: 20px;
}
.msg-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--deep-rose);
    margin: 0 0 5px;
}
.msg-header p {
    font-size: 11px;
    color: var(--light-text-color);
    margin: 0;
}

.gift-grid.superchat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gift-card {
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}
.gift-card:active { transform: scale(0.96); }

/* Tier別カラー - パステル調 */
.sc-tier1 { 
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #90caf9;
}
.sc-tier2 { 
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    border-color: #80cbc4;
}
.sc-tier3 { 
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-color: #ffd54f;
}
.sc-tier4 { 
    background: linear-gradient(135deg, #fbe9e7 0%, #ffccbc 100%);
    border-color: #ff8a65;
}
.sc-tier5 { 
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    border-color: #f48fb1;
}
.sc-tier6 { 
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-color: #ba68c8;
    box-shadow: 0 4px 20px rgba(186, 104, 200, 0.3);
}

.sc-content {
    padding: 14px;
    position: relative;
    z-index: 1;
}

.sc-price {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-color);
}
.sc-tier1 .sc-price { color: #1565c0; }
.sc-tier2 .sc-price { color: #00796b; }
.sc-tier3 .sc-price { color: #f57f17; }
.sc-tier4 .sc-price { color: #e64a19; }
.sc-tier5 .sc-price { color: #c2185b; }
.sc-tier6 .sc-price { color: #7b1fa2; }

.sc-features {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sc-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-color);
    opacity: 0.8;
}
.sc-feature i {
    font-size: 11px;
    width: 14px;
    text-align: center;
    color: var(--deep-rose);
}

.sc-effect {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0,0,0,0.1);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--deep-rose);
}

/* ===== モーダル - 可愛い風 ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(230, 46, 92, 0.3);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 350px;
    padding: 25px;
    border-radius: 25px;
    text-align: center;
    border: 3px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(230, 46, 92, 0.25);
    position: relative;
}
.modal-content::before {
    content: '🎀';
    position: absolute;
    top: -15px; left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    background: white;
    padding: 0 10px;
}

.modal-content h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--deep-rose);
    margin: 10px 0 5px;
}

.modal-detail {
    color: var(--light-text-color) !important;
    font-size: 14px !important;
    font-weight: 600;
}

#modal-msg-input-area {
    margin-top: 18px;
}

textarea#gift-message-text {
    width: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 12px;
    height: 90px;
    resize: none;
    font-family: inherit;
    box-sizing: border-box;
    background: #fff5f7;
    color: var(--text-color);
    font-size: 14px;
    transition: border-color 0.3s;
}
textarea#gift-message-text:focus {
    outline: none;
    border-color: var(--deep-rose);
    background: white;
}
textarea#gift-message-text::placeholder {
    color: #ccc;
}

.char-counter {
    text-align: right;
    font-size: 11px;
    color: var(--light-text-color);
    margin-top: 6px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.modal-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}
.modal-btn.cancel {
    background: var(--background-dark);
    color: var(--light-text-color);
    border: 2px solid var(--border-color);
}
.modal-btn.cancel:hover {
    background: #e0e0e0;
}
.modal-btn.send {
    background: linear-gradient(135deg, #635bff 0%, #7c3aed 100%);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 15px rgba(99, 91, 255, 0.35);
}
.modal-btn.send:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 91, 255, 0.45);
}
.modal-btn.send i {
    font-size: 16px;
}

/* サブタイトル非表示 */
.sub-title { display: none; }