added planeta mars a detail

This commit is contained in:
2026-06-26 12:56:48 +02:00
parent cdb89b5f73
commit 5d7a99b2f6
2 changed files with 345 additions and 18 deletions
+243
View File
@@ -329,4 +329,247 @@ a:focus, button:focus, input:focus {
.planets-grid {
grid-template-columns: repeat(3, 1fr); /* 3 karty vedle sebe */
}
}
/* ==========================================
MODÁLNÍ DIALOG Detail planety
Přidat na konec souboru css/style.css
========================================== */
/* Základní dialog element */
#planet-modal {
border: none;
border-radius: 20px;
padding: 0;
background: #0f1117;
color: #e8eaf0;
max-width: 680px;
width: calc(100% - 2rem);
max-height: 90vh;
overflow: hidden;
box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
/* Animace otevření */
opacity: 0;
transform: translateY(24px) scale(0.97);
transition: opacity 0.28s ease, transform 0.28s ease;
}
#planet-modal.modal-open {
opacity: 1;
transform: translateY(0) scale(1);
}
/* Backdrop */
#planet-modal::backdrop {
background: rgba(0, 0, 0, 0.75);
backdrop-filter: blur(4px);
}
.modal-inner {
display: flex;
flex-direction: column;
max-height: 90vh;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: rgba(255,255,255,0.1) transparent;
}
/* HLAVIČKA modálu */
.modal-header {
display: flex;
align-items: flex-start;
gap: 1.5rem;
padding: 2rem;
background: var(--planet-color-light, rgba(193, 68, 14, 0.12));
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
position: relative;
}
/* Vizuální koule planety */
.modal-planet-visual {
position: relative;
flex-shrink: 0;
}
.modal-planet-orb {
width: 90px;
height: 90px;
border-radius: 50%;
box-shadow:
inset -12px -12px 24px rgba(0,0,0,0.5),
0 0 30px rgba(193, 68, 14, 0.35),
0 0 60px rgba(193, 68, 14, 0.1);
animation: planetFloat 4s ease-in-out infinite;
}
.modal-planet-ring {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) rotateX(75deg);
width: 120px;
height: 120px;
border-radius: 50%;
border: 2px solid rgba(193, 68, 14, 0.3);
pointer-events: none;
}
@keyframes planetFloat {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-6px); }
}
/* Text v hlavičce */
.modal-header-text {
flex: 1;
min-width: 0;
}
.modal-subtitle {
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--planet-color, #c1440e);
margin: 0 0 0.25rem;
}
.modal-header-text h2 {
font-size: 2rem;
font-weight: 700;
margin: 0 0 0.75rem;
color: #ffffff;
line-height: 1.1;
}
.modal-description {
font-size: 0.9rem;
line-height: 1.6;
color: #9aa0b0;
margin: 0;
}
/* Tlačítko zavřít */
.modal-close {
position: absolute;
top: 1rem;
right: 1rem;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 50%;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
color: #9aa0b0;
font-size: 0.85rem;
transition: background 0.2s, color 0.2s;
flex-shrink: 0;
}
.modal-close:hover {
background: rgba(255, 255, 255, 0.12);
color: #ffffff;
}
/* TĚLO modálu */
.modal-body {
padding: 1.75rem 2rem 2rem;
display: flex;
flex-direction: column;
gap: 1.75rem;
}
.modal-section-title {
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
color: #5a6075;
margin: 0 0 1rem;
}
/* Mřížka statistik */
.modal-stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 0.5rem;
}
.modal-stat {
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 10px;
padding: 0.75rem 1rem;
display: flex;
flex-direction: column;
gap: 0.2rem;
}
.modal-stat-label {
font-size: 0.72rem;
color: #5a6075;
font-weight: 500;
}
.modal-stat-value {
font-size: 0.95rem;
color: #e8eaf0;
font-weight: 600;
}
/* Seznam zajímavostí */
.modal-facts-list {
display: flex;
flex-direction: column;
gap: 0.6rem;
}
.modal-fact {
display: flex;
align-items: flex-start;
gap: 0.75rem;
padding: 0.65rem 0.9rem;
background: rgba(255, 255, 255, 0.02);
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 8px;
font-size: 0.875rem;
color: #b0b8cc;
line-height: 1.5;
}
.modal-fact-icon {
font-size: 1.1rem;
flex-shrink: 0;
margin-top: 0.05rem;
}
/* Responzivita */
@media (max-width: 600px) {
.modal-header {
flex-direction: column;
align-items: center;
text-align: center;
padding: 1.5rem;
}
.modal-header-text h2 {
font-size: 1.6rem;
}
.modal-body {
padding: 1.25rem;
}
.modal-stats-grid {
grid-template-columns: 1fr 1fr;
}
.modal-close {
top: 0.75rem;
right: 0.75rem;
}
}