/* solar-system/style.css */

.builder-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.canvas-panel {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9; /* キャンバスを画面いっぱいに（縦横比固定） */
}

.palette-panel {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    color: #f8fafc;
}

.interaction-hint {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 10;
}



.setting-block {
    margin-bottom: 0.8rem;
}
.setting-block:last-child {
    margin-bottom: 0;
}

.setting-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.3rem;
}

.btn-grid-events {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.btn-event {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.btn-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-event-align {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.btn-event-cross {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.3);
}
.btn-event-random {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.3);
}

/* Planet Info Styles */
.seo-content {
    margin-top: 3rem;
    padding: 2rem 0;
}

.planet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.planet-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    color: #f1f5f9;
}

.planet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    border-color: #475569;
}

.planet-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #334155;
}

.planet-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, var(--p-color) 40%, #000000 100%);
}

/* Sun specific badge */
.badge-Sun {
    background: radial-gradient(circle at center, #ffffff 0%, #fef08a 20%, #f59e0b 60%, #c2410c 100%);
}

/* Saturn specific badge */
.badge-Saturn {
    position: relative;
}
.badge-Saturn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180%;
    height: 50%;
    border: 3px solid rgba(252, 211, 77, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(20deg);
    box-sizing: border-box;
}

.seo-content h3.planet-name {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}

.planet-symbol {
    font-size: 0.8rem;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.seo-content p.planet-desc {
    margin: 0 0 1.2rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #f8fafc;
    font-weight: 600;
}

.planet-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
}

.stat-item {
    font-size: 0.85rem;
    color: #f1f5f9;
    display: flex;
    align-items: center;
}

.stat-item i {
    width: 20px;
    color: #94a3b8;
    margin-right: 0.5rem;
    text-align: center;
}

.stat-item span {
    color: #cbd5e1;
    margin-right: 0.5rem;
    min-width: 70px;
}
.stat-item small {
    margin-left: 0.3rem;
    color: #94a3b8;
}

.planet-details {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e2e8f0;
    border-top: 1px dashed #334155;
    padding-top: 1rem;
}
