/* --- TUTORIÁLY - SPECIFICKÝ STYL PRO KARTY --- */
.tutorials-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 5%;
    min-height: 70vh;
}

.tutorials-header {
    margin-bottom: 40px;
    text-align: left;
}

.tutorials-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
}

.tutorials-header h1 span {
    color: var(--yellow);
}

.tutorials-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* FILTRAČNÍ TLAČÍTKA */
.filter-tabs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    background: #0a0a0a;
    border: 1px solid #141414;
    padding: 15px 20px;
    margin-bottom: 40px;
}

.tab-btn {
    background: transparent;
    color: #666;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    font-family: 'Inter', sans-serif;
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    background: #fff;
    color: #000;
}

/* MŘÍŽKA VIDEÍ */
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* KARTA VIDEA */
.video-card {
    background: #090909;
    border: 1px solid #141414;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.video-card.hidden {
    display: none;
}

.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Poměr 16:9 */
    overflow: hidden;
    background: #000;
    display: block;
}

.video-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: grayscale(20%);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    position: relative;
    transition: transform 0.3s ease;
}

.play-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #000;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 3px 6px;
    font-size: 11px;
    font-weight: 700;
}

/* Informace o videu */
.video-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.video-tag {
    font-size: 11px;
    font-weight: 800;
    color: var(--yellow);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.video-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.video-info h3 a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* HOVER STYLY */
.video-card:hover {
    border-color: #222;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.video-card:hover .video-img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.video-card:hover .play-icon {
    transform: scale(1.1);
    background: var(--yellow);
}

.video-card:hover .video-info h3 a {
    color: var(--yellow);
}

/* --- STYL PRO UZAMČENÝ OBSAH (Netflix / Blur styl) --- */
.locked-content-box {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px 30px;
    background: rgba(13, 13, 13, 0.6);
    border: 1px solid rgba(255, 204, 0, 0.2); /* Jemný žlutý olem pro prémiový vzhled */
    border-radius: 4px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.lock-icon {
    font-size: 50px;
    margin-bottom: 20px;
    animation: pulseLock 2s infinite ease-in-out;
}

.locked-content-box h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    color: #ffffff;
    letter-spacing: 1px;
}

.locked-content-box p {
    color: #888888;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.auth-btn-inline {
    display: inline-block;
    background-color: #ffffff;
    color: #000000;
    padding: 14px 30px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.auth-btn-inline:hover {
    background-color: var(--yellow);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
}

@keyframes pulseLock {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}