@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

body {
    font-family: 'Helvetica Neue', sans-serif; /* Pro lepší čitelnost delšího textu */
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.project-header, .project-content, .main-footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.project-header {
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #ddd;
}

.back-link {
    display: block;
    margin-bottom: 30px;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: #007bff;
}

.project-header h1 {
    font-family: 'Space Mono', monospace; /* Stejný font jako na homepage pro nadpis */
    font-size: 3rem;
    margin: 0 0 10px 0;
}

.perex {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.project-content h2 {
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    margin-top: 40px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
    display: inline-block;
}

.hero-image img, .gallery img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.project-link {
    display: inline-block;
    margin-top: 40px;
    padding: 12px 25px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.project-link:hover {
    background-color: #0056b3;
}

.main-footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
}

/* === STYLY PRO PŘEHLED PROJEKTŮ === */
/* Přidej tento kód na konec souboru projekt-style.css */

.project-list {
    display: grid;
    /* Vytvoří sloupce o min. šířce 300px, které se automaticky přizpůsobí */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* Mezera mezi kartami */
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.project-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* Zajistí, že obrázek nevyjede z karty */
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px); /* Lehké nadzvednutí při najetí */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.project-card img {
    width: 100%;
    height: 200px; /* Pevná výška pro sjednocený vzhled */
    object-fit: cover; /* Ořízne obrázek, aby vyplnil prostor bez deformace */
    display: block;
}

.project-card .card-content {
    padding: 20px;
}

.project-card h2 {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    border: none; /* Resetuje styl z detailu projektu */
    padding: 0;
}

.project-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* === STYLY PRO TLAČÍTKA KE STAŽENÍ === */
/* Přidej tento kód na konec souboru projekt-style.css */

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Zarovná vršky tlačítek */
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap; /* Umožní zalamování na menších obrazovkách */
}

.custom-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.custom-btn.apple {
    background-color: #000000;
}

.custom-btn.google {
    background-color: #1a1a1a;
}

/* Obalovač pro neaktivní tlačítko a text "již brzy" */
.button-wrapper {
    position: relative;
    display: flex; /* Aby se wrapper přizpůsobil velikosti tlačítka */
}

/* Neaktivní tlačítko */
.custom-btn.disabled {
    opacity: 0.5;
    pointer-events: none; /* Tlačítko nebude klikatelné */
    user-select: none; /* Text nepůjde označit */
}

/* Text "již brzy" */
.coming-soon {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #ffcc00;
    color: #333;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    transform: rotate(10deg);
}

/* === STYLY PRO BLOG === */
/* Přidej tento kód na konec souboru projekt-style.css */

/* Seznam článků */
.post-list {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.post-card {
    display: block;
    padding: 25px;
    margin-bottom: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.post-card h2 {
    margin: 0 0 10px 0;
    padding: 0;
    border: none;
    font-size: 1.7rem;
    color: #007bff;
}

.post-card p {
    margin: 0 0 15px 0;
}

.post-card time {
    font-size: 0.85rem;
    color: #888;
}

/* Detail článku */
.post-meta {
    font-size: 0.9rem;
    color: #666;
}

.post-content {
    max-width: 700px; /* Užší obsah pro lepší čitelnost textu */
    margin: 0 auto;
    padding: 20px;
}

.post-content h2, .post-content h3 {
    font-family: 'Space Mono', monospace;
}

.post-content blockquote {
    border-left: 4px solid #007bff;
    margin: 30px 0;
    padding: 10px 20px;
    background-color: #f8f9fa;
    font-style: italic;
    color: #555;
}

.post-content figure {
    margin: 30px 0;
}

.post-content figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    margin-top: 5px;
}