:root {
    --bg-main: #1e1e1e;
    --bg-card: #2d2d2d;
    --primary: #033663;
    --primary-dark: #022552;
    --text-main: #f1f1f1;
    --text-muted: #aaaaaa;
    --accent: #3498db;
    --radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: "Tilt Neon", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "XROT" 0, "YROT" 0;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--bg-main);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

a {
    color: #00ccff;
}

a:hover {
    color: #008cad;
}

footer {
    text-align: center;
    padding: 25px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    color: #ecf0f1;
    font-weight: bold;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.links {
    display: flex;
    gap: 20px;
}

/* Projects Cards */
.swiper {
    width: auto;
    max-width: auto;
    height: 460px;
    padding: 20px 0;
    border-radius: 20px;
}

.swiper-slide {
    width: 90%;  /* na mobilu zabere skoro celou šířku, takže se vejde jen jedna */
    max-width: 320px; /* na PC omezí maximální šířku */
    height: 100% !important;
    background-color: #3e3e3e;
    border-radius: 20px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.card-btn {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
    margin-top: auto;
    width: 80%;
    background-color: var(--primary);
    transition: var(--transition);
}

.card-btn:hover {
    color: var(--text-muted);
    background-color: var(--primary-dark);
}

/* Navigation */
nav {
    background: var(--primary);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
    transition: var(--transition);
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Index */
.links-index {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 12px;
    width: 100%;
}

.index-a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; 
    max-width: 150px;
    aspect-ratio: 1 / 1; 
    background-color: #2d2d2d;
    border-radius: 16px;
    border: none;
    text-decoration: none;
    transition: var(--transition);
}

.index-img {
    width: 80%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
}

.index-a:active {
  background-color: #2d2d2d;
}

.index-a:hover {
  background-color: #3d3d3d;
}

.yt-lazy-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: var(--radius);
}

.yt-lazy-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.yt-lazy-wrapper:hover .yt-lazy-thumbnail {
    opacity: 0.85;
    transform: scale(1.02);
}

/* Červené YouTube tlačítko */
.yt-lazy-play-btn {
    position: absolute;
    width: 68px;
    height: 48px;
    background-color: rgba(33, 33, 33, 0.8);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.yt-lazy-play-btn::before {
    content: "";
    display: block;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #ffffff;
    margin: 0 auto;
}

.yt-lazy-wrapper:hover .yt-lazy-play-btn {
    background-color: #ff0000;
}

main {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    margin: 40px auto;
    max-width: 1000px;
    width: calc(100% - 40px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    line-height: 1.65;
}

iframe {
    height: auto !important;
    aspect-ratio: 16 / 9;
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    main {
        padding: 15px;
    }
    .index-img {
        width: 95%;
    }
}





