﻿/* =========================================================
   INTERIORS360
   YOUTUBE TUTORIAL LIBRARY
========================================================= */

.tutorials-page {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px 100px;
}

/* =========================================================
   TOOLBAR
========================================================= */

.tutorials-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px;
}


.tutorials-filter-form {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex: 1;
}


.tutorial-search {
    position: relative;
    flex: 1;
    max-width: 430px;
}


    .tutorial-search svg {
        position: absolute;
        left: 17px;
        top: 50%;
        width: 19px;
        height: 19px;
        transform: translateY(-50%);
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        color: #777;
        pointer-events: none;
    }


    .tutorial-search input {
        width: 100%;
        height: 50px;
        padding: 0 18px 0 48px;
        border: 1px solid #e4e0e2;
        border-radius: 12px;
        background: #fff;
        color: #252025;
        font-family: inherit;
        font-size: 14px;
        outline: none;
        transition: border-color 0.25s ease, box-shadow 0.25s ease;
    }


        .tutorial-search input:focus {
            border-color: #c98ca0;
            box-shadow: 0 0 0 4px rgba(201, 140, 160, 0.10);
        }


.tutorial-filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
}


    .tutorial-filter label {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #777;
    }


    .tutorial-filter select {
        min-width: 165px;
        height: 50px;
        padding: 0 38px 0 15px;
        border: 1px solid #e4e0e2;
        border-radius: 12px;
        background: #fff;
        color: #333;
        font-family: inherit;
        font-size: 14px;
        outline: none;
        cursor: pointer;
    }


.tutorial-search-button {
    height: 50px;
    padding: 0 25px;
    border: none;
    border-radius: 12px;
    background: #8c4755;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}


    .tutorial-search-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }


.tutorial-results {
    flex-shrink: 0;
    font-size: 13px;
    color: #777;
    padding-bottom: 15px;
}


    .tutorial-results strong {
        color: #252025;
    }


/* =========================================================
   GRID
========================================================= */

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}


/* =========================================================
   CARD
========================================================= */

.tutorial-card {
    overflow: hidden;
    border: 1px solid #ece8ea;
    /*border-radius: 18px;*/
    background: #fff;
    box-shadow: 0 5px 20px rgba(30, 20, 25, 0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}


    .tutorial-card:hover {
        transform: translateY(-7px);
        border-color: #e0d4d9;
        box-shadow: 0 22px 50px rgba(30, 20, 25, 0.11);
    }


/* =========================================================
   THUMBNAIL
========================================================= */

.tutorial-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #171417;
}


    .tutorial-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
    }


.tutorial-card:hover
.tutorial-thumbnail img {
    transform: scale(1.06);
}


.tutorial-thumbnail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.40) );
    opacity: 0.8;
    transition: opacity 0.3s ease;
}


.tutorial-card:hover
.tutorial-thumbnail-overlay {
    opacity: 1;
}


/* =========================================================
   DURATION
========================================================= */

.tutorial-duration {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}


/* =========================================================
   PLAY BUTTON
========================================================= */

.tutorial-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-decoration: none;
}


.tutorial-play-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, background 0.3s ease;
}


    .tutorial-play-icon svg {
        width: 23px;
        height: 23px;
        margin-left: 4px;
        fill: #252025;
    }


.tutorial-card:hover
.tutorial-play-icon {
    transform: scale(1.12);
    background: #fff;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.tutorial-card-content {
    padding: 23px 23px 20px;
}

.tutorial-category {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 100px;
    background: #f8eef2;
    color: #a65f78;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}


.tutorial-title {
    margin: 0;
    min-height: 54px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -0.3px;
}


    .tutorial-title a {
        color: #252025;
        text-decoration: none;
        transition: color 0.25s ease;
    }


        .tutorial-title a:hover {
            color: #a65f78;
        }


.tutorial-topic {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    font-size: 12px;
    color: #777;
}


.tutorial-topic-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c98ca0;
}


.tutorial-description {
    display: -webkit-box;
    margin: 14px 0 20px;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.7;
    color: #777;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


.tutorial-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #eee;
}


.tutorial-date {
    font-size: 11px;
    color: #999;
}


.tutorial-watch {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #252025;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.25s ease, color 0.25s ease;
}


    .tutorial-watch svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
    }


    .tutorial-watch:hover {
        gap: 10px;
        color: #a65f78;
    }


/* =========================================================
   EMPTY STATE
========================================================= */

.tutorial-empty {
    padding: 100px 20px;
    text-align: center;
    border: 1px dashed #ddd;
    border-radius: 18px;
    background: #faf9fa;
}


.tutorial-empty-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #f3e8ed;
}


    .tutorial-empty-icon svg {
        width: 25px;
        height: 25px;
        fill: none;
        stroke: #a65f78;
        stroke-width: 1.7;
    }


.tutorial-empty h2 {
    margin: 0 0 8px;
    font-size: 22px;
}


.tutorial-empty p {
    margin: 0 0 25px;
    color: #777;
    font-size: 14px;
}


.tutorial-reset {
    display: inline-flex;
    align-items: center;
    padding: 11px 20px;
    border-radius: 10px;
    background: #252025;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .tutorial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .tutorials-filter-form {
        flex-wrap: wrap;
    }


    .tutorial-search {
        max-width: none;
        flex-basis: 100%;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .tutorials-page {
        padding: 0 18px 70px;
    }


    .tutorials-hero {
        min-height: 330px;
        margin: 0 -18px 35px;
        padding: 50px 20px;
    }


        .tutorials-hero h1 {
            font-size: 40px;
            letter-spacing: -1.5px;
        }


        .tutorials-hero p {
            font-size: 14px;
            line-height: 1.7;
        }


    .tutorials-toolbar {
        display: block;
    }


    .tutorials-filter-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }


    .tutorial-search {
        width: 100%;
    }


    .tutorial-filter select {
        width: 100%;
    }


    .tutorial-search-button {
        width: 100%;
    }


    .tutorial-results {
        padding: 18px 0 0;
    }


    .tutorial-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }


    .tutorial-card-content {
        padding: 20px;
    }


    .tutorial-title {
        min-height: auto;
        font-size: 19px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .tutorials-hero h1 {
        font-size: 34px;
    }


    .tutorial-play-icon {
        width: 58px;
        height: 58px;
    }
}


.tutorial-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

