/**
 * お気に入り求人ページ専用CSS
 * 
 * @package KagoshimaJobBoard
 * @version 1.0.0
 */

/* ページ全体 */
.kjb-favorite-page {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    min-height: 100vh;
    color: #1f2937;
}

/* ヒーローセクション */
.favorite-hero {
    padding: 80px 20px 60px;
    text-align: center;
    color: white;
    position: relative;
}

.favorite-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.03"><circle cx="30" cy="30" r="2"/></g></g></svg>');
    opacity: 0.5;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.hero-icon {
    font-size: 2.2rem;
    animation: heartBeat 2s infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.05); }
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* メインコンテンツ */
.favorite-content {
    padding: 40px 20px 80px;
    background: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ローディング */
.loading-container {
    text-align: center;
    padding: 100px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #f093fb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* お気に入りなし */
.no-favorites {
    text-align: center;
    padding: 100px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.no-favorites-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-favorites-icon {
    font-size: 4rem;
    margin-bottom: 30px;
    opacity: 0.7;
}

.no-favorites h3 {
    font-size: 1.5rem;
    color: #374151;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.no-favorites p {
    color: #6b7280;
    margin: 0 0 40px 0;
    font-size: 16px;
    line-height: 1.6;
}

.no-favorites-actions {
    display: flex;
    justify-content: center;
}

.browse-jobs-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.browse-jobs-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
    text-decoration: none;
    color: white;
}

/* エラー表示 */
.error-message {
    text-align: center;
    padding: 100px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.error-content {
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 30px;
    opacity: 0.7;
}

.error-message h3 {
    font-size: 1.5rem;
    color: #ef4444;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.error-message p {
    color: #6b7280;
    margin: 0 0 40px 0;
    font-size: 16px;
    line-height: 1.6;
}

.retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* お気に入り求人コンテナ */
.favorite-jobs-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* ヘッダー */
.favorite-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 35px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
}

.favorite-count {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
}

.favorite-actions {
    display: flex;
    gap: 15px;
}

.clear-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-all-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* 求人グリッド */
.favorite-jobs-container .jobs-grid {
    padding: 40px 35px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

/* お気に入りボタンのスタイル */
.job-favorite {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #d1d5db;
    position: relative;
}

.job-favorite:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: scale(1.1);
}

.job-favorite .heart-icon {
    display: inline;
    transition: all 0.2s ease;
}

.job-favorite .heart-icon-filled {
    display: none;
    transition: all 0.2s ease;
}

.job-favorite.favorited {
    color: #ef4444;
}

.job-favorite.favorited .heart-icon {
    display: none;
}

.job-favorite.favorited .heart-icon-filled {
    display: inline;
    animation: favoriteGlow 0.5s ease;
}

@keyframes favoriteGlow {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); text-shadow: 0 0 10px #ef4444; }
    100% { transform: scale(1); }
}

/* 通知スタイル */
.kjb-notification {
    font-family: inherit;
    border-radius: 12px !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
    line-height: 1.4;
}

.notification-close {
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.notification-close:hover {
    opacity: 1;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .favorite-hero {
        padding: 60px 20px 40px;
    }
    
    .hero-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-icon {
        font-size: 2rem;
    }
    
    .favorite-content {
        padding: 30px 20px 60px;
    }
    
    .favorite-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        padding: 25px 25px;
    }
    
    .favorite-count {
        text-align: center;
        font-size: 16px;
    }
    
    .favorite-actions {
        justify-content: center;
    }
    
    .favorite-jobs-container .jobs-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 30px 25px;
    }
    
    .loading-container,
    .no-favorites,
    .error-message {
        padding: 60px 20px;
        margin: 0 15px;
    }
}

@media (max-width: 480px) {
    .favorite-hero {
        padding: 50px 15px 35px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .favorite-content {
        padding: 25px 15px 50px;
    }
    
    .favorite-header {
        padding: 20px 20px;
    }
    
    .favorite-jobs-container .jobs-grid {
        padding: 25px 20px;
        gap: 20px;
    }
    
    .clear-all-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .browse-jobs-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .loading-container,
    .no-favorites,
    .error-message {
        padding: 50px 15px;
        margin: 0 10px;
        border-radius: 16px;
    }
    
    .no-favorites h3,
    .error-message h3 {
        font-size: 1.3rem;
    }
    
    .kjb-notification {
        right: 15px !important;
        left: 15px !important;
        max-width: none !important;
        width: auto !important;
    }
}