/* フロントエンド用スタイル */

.gcrt-rate-tracker {
    margin: 0 auto;
    background: linear-gradient(135deg, #ffeafa 0%, #d7f2fd 100%);
    border-radius: 10px;
    padding: 20px;
}

/* タイトル */
.gcrt-title {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 30px 0;
    line-height: 1.4;
}

.gcrt-title span {
    color: #ff6b9d;
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* セクションタイトル */
.gcrt-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

/* 現在の日付表示 */
.gcrt-current-date {
    color: #d584f2;
    font-weight: bold;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
}

/* 買取サイト名のHTML要素スタイル */
.gcrt-section-title {
    margin: 0 0 20px 0;
    text-align: center;
    line-height: 1.4;
}

.gcrt-section-title strong {
    font-weight: bold;
    color: inherit;
}

.gcrt-section-title em {
    font-style: italic;
    color: inherit;
}

.gcrt-section-title a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.gcrt-section-title a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.gcrt-section-title small {
    font-size: 0.8em;
    opacity: 0.8;
}

/* サイト表示ボタンコンテナ */
.gcrt-site-button-container {
    text-align: center;
    margin-top: 20px;
    padding: 15px 0;
}

/* サイト表示ボタン */
.gcrt-site-button {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gcrt-site-button:hover {
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* 統計情報セクション */
.gcrt-statistics {
    margin-bottom: 30px;
}

.gcrt-stats-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.gcrt-stat-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    flex: 1;
    width: 100%;
}

.gcrt-stat-item h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

.gcrt-rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
}

.gcrt-rate-item:last-child {
    margin-bottom: 0;
}

.gcrt-rate-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.gcrt-rate-value {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    background: linear-gradient(45deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 横並び買取率コンテナ */
.gcrt-rates-horizontal {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.gcrt-rates-horizontal .gcrt-rate-item {
    flex: 1;
    min-width: 150px;
    margin-bottom: 0;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    flex-direction: column;
    text-align: center;
    justify-content: center;
}

.gcrt-rates-horizontal .gcrt-rate-label {
    margin-bottom: 5px;
    font-size: 12px;
    color: #666;
}

.gcrt-rates-horizontal .gcrt-rate-value {
    font-size: 16px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .gcrt-rates-horizontal {
        flex-direction: column;
        gap: 10px;
    }
    
    .gcrt-rates-horizontal .gcrt-rate-item {
        min-width: auto;
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .gcrt-rates-horizontal .gcrt-rate-label {
        margin-bottom: 0;
        font-size: 14px;
    }
    
    .gcrt-rates-horizontal .gcrt-rate-value {
        font-size: 18px;
    }
}



/* チャートコンテナ */
.gcrt-chart-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
}

.gcrt-chart {
    width: 100% !important;
    height: auto !important;
}

/* Chart.js標準凡例のスタイル調整 */
.gcrt-chart-container canvas {
    margin-bottom: 0;
}

/* 凡例のコンパクト表示 */
.gcrt-chart-container .chartjs-legend {
    max-height: 25px !important;
    overflow: visible;
    margin: 0 !important;
    padding: 0 !important;
}

.gcrt-chart-container .chartjs-legend ul {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.gcrt-chart-container .chartjs-legend li {
    margin: 0 8px 4px 8px !important;
    padding: 2px 0 !important;
    line-height: 1.2 !important;
    flex-shrink: 0 !important;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .gcrt-chart-container .chartjs-legend {
        max-height: 50px !important;
        overflow: visible !important;
    }
    
    .gcrt-chart-container .chartjs-legend ul {
        flex-direction: row !important;
        align-items: center !important;
    }
    
    .gcrt-chart-container .chartjs-legend li {
        margin: 2px 6px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    .gcrt-chart-container .chartjs-legend {
        max-height: 60px !important;
    }
    
    .gcrt-chart-container .chartjs-legend ul {
        gap: 4px !important;
    }
    
    .gcrt-chart-container .chartjs-legend li {
        margin: 2px 4px !important;
        font-size: 10px !important;
        min-width: auto !important;
    }
}

/* サイト表示ボタンセクション */
.gcrt-site-button-container {
    text-align: center;
    margin-top: 40px;
    clear: both;
}

.gcrt-site-button {
    width: 90%;
    background: linear-gradient(45deg, #ff6b9d, #ee5a6f);
    color: white !important;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none !important;
    display: inline-block;
}
.gcrt-site-button:after {
    content: "\f138";
    font-family: "font awesome 5 free";
    font-weight: bold;
    margin-left: 0.5em;
}

.gcrt-site-button:hover {
    transform: translateY(-3px);
    color: white;
    text-decoration: none;
}

.gcrt-site-button:active {
    transform: translateY(0);
}

/* Widget用スタイル */
.gcrt-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    color: white;
    text-align: center;
}

.gcrt-widget h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.gcrt-widget-content {
    margin: 0;
}

.gcrt-widget-rate {
    margin-bottom: 10px;
}

.gcrt-widget-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

.gcrt-widget-value {
    font-size: 28px;
    font-weight: bold;
    color: white;
}

.gcrt-widget-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .gcrt-rate-tracker {
    }
    
    .gcrt-title {
        font-size: 18px;
    }
    
    .gcrt-stats-grid {
        flex-direction: column;
        gap: 15px;
    }
    
    .gcrt-stat-item {
        padding: 15px;
    }
    
    .gcrt-rate-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .gcrt-rate-value {
        font-size: 20px;
    }
    
    .gcrt-chart-container {
        padding: 15px;
    }
    
    .gcrt-site-button {
        padding: 12px 30px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .gcrt-rate-tracker {
        padding: 15px;
    }
    
    .gcrt-title {
        font-size: 16px;
        line-height: 1.3;
    }
    
    .gcrt-stat-item {
        padding: 12px;
    }
    
    .gcrt-rate-value {
        font-size: 16px;
    }
    
    .gcrt-chart-container {
        padding: 12px;
    }
    
    .gcrt-site-button {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
        max-width: 300px;
    }
}

/* ローディング表示 */
.gcrt-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    margin: 20px 0;
}

.gcrt-loading::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(52, 152, 219, 0.3);
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: gcrt-spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes gcrt-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* エラー表示 */
.gcrt-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #c0392b;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

/* アニメーション */
.gcrt-rate-tracker {
    animation: gcrt-fadeIn 0.6s ease-out;
}

@keyframes gcrt-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gcrt-stat-item {
    animation: gcrt-slideUp 0.8s ease-out;
}

@keyframes gcrt-slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* チャート用のカスタムカラー */
.gcrt-chart-container canvas {
    border-radius: 10px;
}

/* ホバーエフェクト */
.gcrt-stat-item:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
} 