/* ==========================================================================
   SYSTEM-CHECK.CSS - 動作環境チェックページ専用スタイル
   ========================================================================== */

/* ベースレイアウト */
.main-content {
    padding-bottom: 0;
}

/* ヒーローセクション */
.system-check-hero {
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 50%, #06B6D4 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.system-check-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ステータス概要 */
.check-status-overview {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.status-indicator.status-ready {
    background: rgba(107, 114, 128, 0.2);
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.status-indicator.status-checking {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.status-indicator.status-excellent {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-indicator.status-good {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-indicator.status-poor {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-indicator.status-error {
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.status-icon {
    font-size: 1.4rem;
}

.status-text {
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* チェック結果セクション */
.check-results {
    padding: 60px 0;
    background: #F9FAFB;
}

.check-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* チェックアクション */
.check-actions {
    text-align: center;
    margin-bottom: 60px;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    min-width: 200px;
}

.btn-primary {
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 2px solid #D1D5DB;
}

.btn-secondary:hover {
    border-color: #1E3A8A;
    color: #1E3A8A;
    transform: translateY(-1px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.2rem;
}

/* チェックセクション */
.check-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-description {
    color: #6B7280;
    margin-bottom: 32px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* チェックグリッド */
.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* チェック項目 */
.check-item {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #E5E7EB;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.check-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #E5E7EB;
    transition: all 0.3s ease;
}

.check-item.check-checking {
    border-color: #3B82F6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

.check-item.check-checking::before {
    background: linear-gradient(90deg, #3B82F6, #06B6D4);
    animation: shimmer 2s ease-in-out infinite;
}

.check-item.check-passed {
    border-color: #10B981;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.check-item.check-passed::before {
    background: linear-gradient(90deg, #10B981, #34D399);
}

.check-item.check-failed {
    border-color: #EF4444;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
}

.check-item.check-failed::before {
    background: linear-gradient(90deg, #EF4444, #F87171);
}

.check-item.check-warning {
    border-color: #F59E0B;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}

.check-item.check-warning::before {
    background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* チェックヘッダー */
.check-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.check-icon {
    font-size: 1.8rem;
    min-width: 32px;
    text-align: center;
}

.check-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
}

/* チェック詳細 */
.check-details {
    padding-left: 48px;
}

.check-result {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 8px;
}

.check-info {
    font-size: 0.9rem;
    color: #6B7280;
    line-height: 1.5;
}

/* 推奨動作環境セクション */
.requirements-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.requirement-category {
    background: #F9FAFB;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #E5E7EB;
}

.requirement-category h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.requirement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirement-list li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: #9CA3AF;
    border-bottom: 1px solid #E5E7EB;
}

.requirement-list li:last-child {
    border-bottom: none;
}

.requirement-list li.supported {
    color: #059669;
    font-weight: 500;
}

.requirement-list li.not-supported {
    color: #DC2626;
    font-weight: 500;
}

/* アクションセクション */
.action-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #F9FAFB 0%, #EFF6FF 100%);
    text-align: center;
}

.action-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.action-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 16px;
}

.action-content p {
    font-size: 1.1rem;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 32px;
}

.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .check-status-overview {
        padding: 20px;
    }
    
    .check-container {
        padding: 0 16px;
    }
    
    .check-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .check-item {
        padding: 20px;
    }
    
    .check-details {
        padding-left: 40px;
    }
    
    .requirements-section {
        padding: 24px;
        margin: 0 16px 40px 16px;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .check-item {
        padding: 16px;
    }
    
    .check-header {
        gap: 12px;
    }
    
    .check-details {
        padding-left: 32px;
    }
    
    .requirements-section {
        padding: 20px;
    }
    
    .requirement-category {
        padding: 20px;
    }
}

/* プリント対応 */
@media print {
    .check-actions {
        display: none;
    }
    
    .action-section {
        display: none;
    }
    
    .system-check-hero {
        background: #1E3A8A;
        color: white;
        padding: 40px 0;
    }
    
    .check-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ダークモード対応（将来用） */
@media (prefers-color-scheme: dark) {
    .check-results {
        background: #111827;
    }
    
    .check-item {
        background: #1F2937;
        border-color: #374151;
    }
    
    .check-title {
        color: #F9FAFB;
    }
    
    .check-result {
        color: #E5E7EB;
    }
    
    .requirements-section {
        background: #1F2937;
    }
    
    .requirement-category {
        background: #111827;
        border-color: #374151;
    }
    
    .requirement-category h3 {
        color: #F9FAFB;
    }
    
    .section-title {
        color: #F9FAFB;
    }
    
    .action-section {
        background: #111827;
    }
    
    .action-content h2 {
        color: #F9FAFB;
    }
}