/**
 * WP Crowdfunding Rocket Extensions - Custom Styles
 */

/* =====================================================
   CSS変数のデフォルト値
   v2.1.17 の :root が循環参照しているため、ここで実際の色を設定
   ===================================================== */
:root {
    --wpcf-primary-color: #1adc68;
    --wpcf-hover-color: #16c25c;
}

/* =====================================================
   カウントダウン表示
   ===================================================== */
.campaign-funding-countdown {
    text-align: center;
    padding: 20px 0;
}

.campaign-funding-countdown h3 {
    margin-bottom: 10px;
}

.campaign-funding-countdown .campaign-funding-notice {
    display: block;
    margin-bottom: 15px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.campaign-funding-countdown .campaign-funding-notice:hover {
    text-decoration: underline;
}

.time-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.countdown-time {
    background: lightblue;
    border-radius: 8px;
    padding: 10px 15px;
    text-align: center;
    min-width: 70px;
}

.countdown-time span {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
}

/* =====================================================
   Funding Total（大きく表示）
   ===================================================== */
.funding-total {
    font-size: 200%;
}

/* テンプレート内の funding-total */
.campaign-funding-info .funding-total {
    font-size: 300%;
}

/* =====================================================
   プログレスバー カスタマイズ
   ===================================================== */
#neo-progressbar {
    background-color: #464646;
    border-radius: 8px;
    padding: 4px;
    position: relative;
    overflow: hidden;
}

#neo-progressbar > div {
    background: linear-gradient(-20deg, #1adc68 0%, #086445 100%);
    border-radius: 6px;
    min-height: 25px;
    transition: width 0.6s ease;
}

#neo-progressbar .wpneo-raised-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    z-index: 1;
    display: flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
    font-size: 14px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

#neo-progressbar .wpneo-raised-percent .wpneo-meta-desc {
    font-size: 22px;
    letter-spacing: 1px;
}

/* =====================================================
   カラースキーム変更
   ===================================================== */

/* お気に入りテキスト */
#love_this_campaign span,
#love_this_campaign_prev span {
    margin-left: 5px;
}

/* ボタン・アクセントカラー */
.wpneo-buttons-group .wpneo-campaign-btn,
.wpneo-form-action .wpneo-submit,
.wpneo-profile-button a {
    background-color: #1adc68;
}

.wpneo-buttons-group .wpneo-campaign-btn:hover,
.wpneo-form-action .wpneo-submit:hover,
.wpneo-profile-button a:hover {
    background-color: #16c25c;
}

/* タブアクティブ */
.wpneo-tabs-menu li.wpneo-current {
    border-bottom-color: #1adc68;
}

/* Social share embed カラー */
.wpcf-embed-progress > div {
    background-color: #4C76FF;
}

/* Campaign update title カラー */
.crowdfunding-update-title {
    color: #4C76FF;
}

/* Round circle hover */
.round-circle:hover {
    border-color: #4C76FF;
}

/* =====================================================
   カスタムダイアログ
   ===================================================== */
.wpcf-rocket-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.wpcf-rocket-dialog {
    background: #fff;
    border-radius: 12px;
    padding: 30px 40px;
    text-align: center;
    max-width: 360px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.wpcf-rocket-dialog-icon {
    font-size: 36px;
    color: #1adc68;
    margin-bottom: 12px;
}

.wpcf-rocket-dialog-message {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
}

.wpcf-rocket-dialog-close {
    background: #1adc68;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 32px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.wpcf-rocket-dialog-close:hover {
    background: #16c25c;
}
