/**
 * Fan Portal UIコンポーネントスタイルシート
 *
 * @package Fan_Portal
 */

/* スピナー */
.fp-spinner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.fp-spinner-icon {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: fp-spin 1s linear infinite;
}

.fp-spinner-small .fp-spinner-icon {
    width: 16px;
    height: 16px;
}

.fp-spinner-medium .fp-spinner-icon {
    width: 24px;
    height: 24px;
}

.fp-spinner-large .fp-spinner-icon {
    width: 40px;
    height: 40px;
}

.fp-spinner-text {
    color: #666;
    font-size: 14px;
}

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

/* プログレスバー */
.fp-progress {
    margin: 20px 0;
}

.fp-progress-label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.fp-progress-bar-wrapper {
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.fp-progress-bar {
    height: 100%;
    background: #0073aa;
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
}

.fp-progress-animated .fp-progress-bar {
    background: linear-gradient(45deg, 
        rgba(255,255,255,.15) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255,255,255,.15) 50%, 
        rgba(255,255,255,.15) 75%, 
        transparent 75%, 
        transparent);
    background-size: 1rem 1rem;
    animation: fp-progress-animation 1s linear infinite;
}

.fp-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

@keyframes fp-progress-animation {
    0% { background-position: 1rem 0; }
    100% { background-position: 0 0; }
}

/* アラート */
.fp-alert {
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.fp-alert .dashicons {
    flex-shrink: 0;
    margin-top: 2px;
}

.fp-alert-content {
    flex: 1;
}

.fp-alert-info {
    background-color: #e5f5ff;
    border-left: 4px solid #0073aa;
    color: #0073aa;
}

.fp-alert-success {
    background-color: #ecf7ed;
    border-left: 4px solid #46b450;
    color: #46b450;
}

.fp-alert-warning {
    background-color: #fff8e5;
    border-left: 4px solid #ffb900;
    color: #996800;
}

.fp-alert-error {
    background-color: #fbeaea;
    border-left: 4px solid #dc3232;
    color: #dc3232;
}

.fp-alert-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.fp-alert-close:hover {
    opacity: 1;
}

/* モーダル */
.fp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.fp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.fp-modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 90vh;
    overflow: auto;
}

.fp-modal-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.fp-modal-small .fp-modal-content {
    width: 400px;
}

.fp-modal-medium .fp-modal-content {
    width: 600px;
}

.fp-modal-large .fp-modal-content {
    width: 800px;
}

.fp-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fp-modal-title {
    margin: 0;
    font-size: 20px;
    color: #23282d;
}

.fp-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.fp-modal-close:hover {
    color: #000;
}

.fp-modal-body {
    padding: 20px;
}

.fp-modal-footer {
    padding: 20px;
    border-top: 1px solid #e5e5e5;
    text-align: right;
}

/* カード */
.fp-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.fp-card-featured {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.fp-card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.fp-card-title {
    margin: 0;
    font-size: 18px;
    color: #23282d;
}

.fp-card-body {
    padding: 20px;
}

.fp-card-footer {
    padding: 15px 20px;
    border-top: 1px solid #e5e5e5;
    background: #f9f9f9;
}

/* タブ */
.fp-tabs {
    margin: 20px 0;
}

.fp-tabs-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid #e5e5e5;
}

.fp-tabs-nav li {
    margin: 0;
}

.fp-tabs-nav a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    text-decoration: none;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.fp-tabs-nav li.active a {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.fp-tabs-nav a:hover {
    color: #0073aa;
}

.fp-tabs-content {
    padding: 20px 0;
}

.fp-tab-pane {
    display: none;
}

.fp-tab-pane.active {
    display: block;
}

/* 空の状態 */
.fp-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.fp-empty-state-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 20px;
}

.fp-empty-state-icon .dashicons {
    width: 48px;
    height: 48px;
    font-size: 48px;
}

.fp-empty-state-title {
    margin: 0 0 10px;
    font-size: 20px;
    color: #23282d;
}

.fp-empty-state-description {
    margin: 0 0 20px;
    color: #666;
}

.fp-empty-state-action {
    margin-top: 20px;
}

/* ページネーション */
.fp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 30px 0;
}

.fp-pagination a,
.fp-pagination-current,
.fp-pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    text-decoration: none;
    color: #0073aa;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: all 0.2s;
}

.fp-pagination a:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.fp-pagination-current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.fp-pagination-dots {
    border: none;
    color: #666;
}

.fp-pagination-prev,
.fp-pagination-next {
    gap: 5px;
}

/* ステップインジケーター */
.fp-steps {
    display: flex;
    margin: 30px 0;
    counter-reset: step;
}

.fp-step {
    flex: 1;
    position: relative;
    text-align: center;
}

.fp-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #ddd;
    z-index: -1;
}

.fp-step-completed:not(:last-child)::after {
    background: #46b450;
}

.fp-step-indicator {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    background: #f1f1f1;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #666;
    position: relative;
    z-index: 1;
}

.fp-step-active .fp-step-indicator {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.fp-step-completed .fp-step-indicator {
    background: #46b450;
    border-color: #46b450;
    color: #fff;
}

.fp-step-completed .fp-step-indicator .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.fp-step-title {
    font-weight: 600;
    color: #23282d;
    margin-bottom: 5px;
}

.fp-step-description {
    font-size: 14px;
    color: #666;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .fp-modal-content {
        width: 90vw !important;
        margin: 20px;
    }
    
    .fp-tabs-nav {
        flex-wrap: wrap;
    }
    
    .fp-tabs-nav a {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .fp-steps {
        flex-direction: column;
    }
    
    .fp-step:not(:last-child)::after {
        top: 40px;
        left: 20px;
        width: 2px;
        height: 100%;
    }
}

/* ユーティリティクラス */
.fp-text-center {
    text-align: center;
}

.fp-text-right {
    text-align: right;
}

.fp-mt-10 {
    margin-top: 10px;
}

.fp-mt-20 {
    margin-top: 20px;
}

.fp-mb-10 {
    margin-bottom: 10px;
}

.fp-mb-20 {
    margin-bottom: 20px;
}