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

.wusv-vote-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wusv-brand-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.wusv-brand-name {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #333;
}

.wusv-size-result {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.wusv-result-label {
    font-weight: bold;
    margin-right: 10px;
}

.wusv-result-type {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 10px;
}

.wusv-result-type.wusv-larger {
    background: #ff6b6b;
    color: #fff;
}

.wusv-result-type.wusv-normal {
    background: #4ecdc4;
    color: #fff;
}

.wusv-result-type.wusv-smaller {
    background: #95e1d3;
    color: #333;
}

.wusv-result-description {
    color: #666;
}

.wusv-no-votes {
    color: #999;
    font-style: italic;
}

.wusv-vote-stats {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

.wusv-vote-form {
    margin: 30px 0;
}

.wusv-vote-form h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.wusv-vote-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.wusv-vote-btn {
    flex: 1;
    min-width: 150px;
    padding: 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.wusv-vote-btn:hover {
    border-color: #4ecdc4;
    background: #f0fdfc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.wusv-vote-btn:active {
    transform: translateY(0);
}

.wusv-vote-btn.wusv-active {
    border-color: #4ecdc4;
    background: #e0f7f5;
}

.wusv-vote-btn.wusv-voted {
    opacity: 0.6;
    cursor: not-allowed;
}

.wusv-vote-btn.wusv-voted:hover {
    transform: none;
    box-shadow: none;
}

.wusv-vote-message.wusv-info {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
}

.wusv-vote-icon {
    font-size: 32px;
}

.wusv-vote-label {
    font-weight: bold;
    color: #333;
}

.wusv-vote-count {
    font-size: 14px;
    color: #666;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 12px;
}

.wusv-vote-message {
    min-height: 30px;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
}

.wusv-vote-message.wusv-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wusv-vote-message.wusv-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wusv-vote-chart {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

.wusv-vote-chart h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.wusv-chart-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wusv-chart-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wusv-chart-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

.wusv-chart-count {
    font-weight: bold;
}

.wusv-chart-bar {
    height: 30px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.wusv-chart-fill {
    height: 100%;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
}

.wusv-chart-fill.wusv-larger {
    background: #ff6b6b;
}

.wusv-chart-fill.wusv-normal {
    background: #4ecdc4;
}

.wusv-chart-fill.wusv-smaller {
    background: #95e1d3;
    color: #333;
}

.wusv-chart-fill.wusv-most-voted {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.wusv-affiliate-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.wusv-link-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.wusv-link-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px 20px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wusv-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Amazon - オレンジ系 */
.wusv-link-btn.wusv-amazon {
    background: rgba(255, 153, 0, 0.15);
    color: #cc7700;
}

.wusv-link-btn.wusv-amazon:hover {
    background: #ff9900;
    color: #fff;
}

/* 楽天 - 赤系 */
.wusv-link-btn.wusv-rakuten {
    background: rgba(191, 0, 0, 0.15);
    color: #990000;
}

.wusv-link-btn.wusv-rakuten:hover {
    background: #bf0000;
    color: #fff;
}

/* Yahoo - 紫系 */
.wusv-link-btn.wusv-yahoo {
    background: rgba(102, 0, 153, 0.15);
    color: #660099;
}

.wusv-link-btn.wusv-yahoo:hover {
    background: #660099;
    color: #fff;
}

/* 投票促進メッセージ */
.wusv-vote-prompt {
    margin: 15px 0;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    color: #856404;
}

.wusv-vote-prompt p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* アコーディオン */
.wusv-accordion {
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.wusv-accordion-toggle {
    width: 100%;
    padding: 15px 20px;
    background: #f8f9fa;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    transition: background 0.2s ease;
}

.wusv-accordion-toggle:hover {
    background: #e9ecef;
}

.wusv-accordion-toggle:focus {
    outline: 2px solid #2271b1;
    outline-offset: -2px;
}

.wusv-accordion-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 12px;
}

.wusv-accordion.active .wusv-accordion-icon {
    transform: rotate(180deg);
}

.wusv-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.wusv-accordion.active .wusv-accordion-content {
    max-height: 2000px;
}

.wusv-accordion-content > * {
    padding: 20px;
}

.wusv-link-icon {
    font-size: 20px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .wusv-vote-container {
        padding: 20px;
        margin: 10px;
    }
    
    .wusv-vote-buttons {
        flex-direction: column;
    }
    
    .wusv-vote-btn {
        width: 100%;
    }
    
    .wusv-link-buttons {
        flex-direction: column;
    }
    
    .wusv-link-btn {
        width: 100%;
    }
}

