/*
Theme Name: Tubey
Theme URI: https://tubey.in/
Author: Tubey
Description: Custom lightweight video theme for Tubey.in
Version: 1.0
Text Domain: tubey
*/


/* =====================================================
   BASE
===================================================== */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;

    background: #ffffff;
    color: #202124;

    font-family: Arial, sans-serif;
}

a {
    text-decoration: none;
}


/* =====================================================
   TUBEY PREMIUM HEADER
===================================================== */

.tubey-custom-header {
    position: relative;
    z-index: 9999;

    width: 100%;

    background:
        linear-gradient(
            135deg,
            #fffaf5,
            #fff1e6,
            #fff9f4
        );

    border-bottom: 1px solid #eadaca;

    box-shadow:
        0 5px 24px rgba(100,70,40,.07);
}

.tubey-header-inner {
    max-width: 1180px;

    min-height: 68px;

    margin: auto;

    padding: 10px 18px;

    display: flex;
    align-items: center;

    gap: 20px;

    box-sizing: border-box;
}


/* =====================================================
   LOGO
===================================================== */

.tubey-logo {
    display: flex;
    align-items: baseline;

    flex-shrink: 0;

    text-decoration: none !important;
}

.tubey-logo-main {
    color: #302720;

    font-size: 28px;
    font-weight: 900;

    letter-spacing: -1.4px;
}

.tubey-logo-in {
    margin-left: 2px;

    color: #df6d68;

    font-size: 20px;
    font-weight: 900;
}


/* =====================================================
   SEARCH
===================================================== */

.tubey-header-search {
    flex: 1;

    max-width: 560px;

    height: 42px;

    margin: auto;

    display: flex;
    align-items: center;

    padding: 3px;

    background: #fffdfb;

    border: 1px solid #e9d9cc;

    border-radius: 24px;

    box-shadow:
        inset 0 1px 2px rgba(100,70,40,.03);
}

.tubey-search-icon {
    width: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #a28b79;

    font-size: 22px;
}

.tubey-header-search input {
    flex: 1;

    min-width: 0;

    height: 100%;

    border: 0 !important;
    outline: 0 !important;

    background: transparent !important;

    color: #3b3029 !important;

    font-size: 13px;
}

.tubey-header-search input::placeholder {
    color: #b3a297;
}

.tubey-header-search button {
    height: 34px;

    padding: 0 16px;

    border: 0;

    border-radius: 19px;

    background:
        linear-gradient(
            135deg,
            #e99b7b,
            #df7186
        );

    color: #fff;

    font-size: 11px;
    font-weight: 800;

    cursor: pointer;
}


/* =====================================================
   MENU BUTTON
===================================================== */

.tubey-menu-button {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 5px;

    border: 1px solid #eadaca;

    border-radius: 50%;

    background: #fffdfb;

    cursor: pointer;

    box-shadow:
        0 4px 12px rgba(100,70,40,.06);
}

.tubey-menu-button span {
    display: block;

    width: 17px;
    height: 2px;

    border-radius: 3px;

    background: #5a473b;
}


/* =====================================================
   MOBILE SEARCH
===================================================== */

.tubey-mobile-search {
    display: none;

    padding: 0 14px 11px;
}

.tubey-mobile-search form {
    height: 40px;

    display: flex;
    align-items: center;

    padding: 3px;

    background: #fffdfb;

    border: 1px solid #eadaca;

    border-radius: 22px;
}

.tubey-mobile-search span {
    padding: 0 9px;

    color: #a28b79;

    font-size: 20px;
}

.tubey-mobile-search input {
    flex: 1;

    min-width: 0;

    border: 0 !important;
    outline: 0 !important;

    background: transparent !important;

    font-size: 12px;
}

.tubey-mobile-search button {
    height: 32px;

    padding: 0 12px;

    border: 0;

    border-radius: 17px;

    background: #e98575;

    color: #fff;

    font-size: 10px;
    font-weight: 800;
}


/* =====================================================
   MOBILE MENU
===================================================== */

.tubey-mobile-menu {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: flex-start;
    justify-content: flex-end;

    padding: 70px 15px 15px;

    background: rgba(45,32,25,.28);

    backdrop-filter: blur(5px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}

.tubey-mobile-menu.tubey-menu-open {
    opacity: 1;
    visibility: visible;
}

.tubey-menu-box {
    width: min(320px,100%);

    max-height: calc(100vh - 90px);

    overflow-y: auto;

    padding: 22px;

    position: relative;

    background:
        linear-gradient(
            145deg,
            #fffaf5,
            #fff0e5
        );

    border: 1px solid #eadaca;

    border-radius: 22px;

    box-shadow:
        0 20px 60px rgba(50,35,25,.18);
}

.tubey-menu-close {
    position: absolute;

    top: 12px;
    right: 12px;

    width: 34px;
    height: 34px;

    border: 0;

    border-radius: 50%;

    background: #ffe4d8;

    color: #c9684f;

    font-size: 24px;

    cursor: pointer;
}

.tubey-menu-title {
    margin-bottom: 18px;

    color: #302720;

    font-size: 22px;
    font-weight: 900;
}

.tubey-menu-title span {
    color: #df6d68;
}

.tubey-menu-links {
    display: flex;

    flex-direction: column;

    gap: 7px;
}

.tubey-menu-links a {
    padding: 12px 14px;

    border-radius: 12px;

    background: rgba(255,255,255,.7);

    border: 1px solid #eee0d5;

    color: #44372f;

    text-decoration: none !important;

    font-size: 13px;
    font-weight: 700;

    transition: .2s ease;
}

.tubey-menu-links a:hover {
    background: #fff;

    transform: translateX(2px);
}


/* =====================================================
   HIDE ASTRA HEADER
===================================================== */

.ast-header-break-point .main-header-bar,
.site-header,
.ast-primary-header-bar {
    display: none !important;
}


/* =====================================================
   MAIN
===================================================== */

.site-main {
    width: 100%;

    max-width: 1100px;

    margin: 0 auto;

    padding: 35px 15px;
}


/* =====================================================
   HOME — HERO
===================================================== */

.tubey-hero {
    position: relative;

    overflow: hidden;

    margin: 10px 0 35px;

    padding: 75px 25px 70px;

    text-align: center;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255,45,111,.10),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(91,75,255,.12),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8f7ff 100%
        );

    border: 1px solid #ece9f7;

    border-radius: 28px;

    box-shadow:
        0 18px 50px rgba(30,25,70,.08);
}

.tubey-hero::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    top: -90px;
    right: -60px;

    background: rgba(255,45,111,.10);

    border-radius: 50%;

    filter: blur(10px);

    pointer-events: none;
}

.tubey-hero::after {
    content: "";

    position: absolute;

    width: 160px;
    height: 160px;

    bottom: -90px;
    left: -50px;

    background: rgba(91,75,255,.10);

    border-radius: 50%;

    filter: blur(10px);

    pointer-events: none;
}

.tubey-hero-logo {
    position: relative;

    z-index: 1;

    display: inline-flex;
    align-items: center;

    color: #171a2b;

    font-size: 42px;
    font-weight: 900;

    letter-spacing: -2px;
}

.tubey-hero-logo span {
    margin-left: 6px;

    padding: 5px 10px;

    background:
        linear-gradient(
            135deg,
            #ffd900,
            #ff9d00
        );

    color: #111;

    border-radius: 9px;

    font-size: 20px;

    letter-spacing: 0;

    box-shadow:
        0 6px 15px rgba(255,157,0,.18);
}

.tubey-hero h1 {
    position: relative;

    z-index: 1;

    max-width: 760px;

    margin: 20px auto 14px;

    color: #171a2b;

    font-size: 42px;
    font-weight: 900;

    letter-spacing: -1.5px;

    line-height: 1.12;
}

.tubey-hero p {
    position: relative;

    z-index: 1;

    max-width: 650px;

    margin: 0 auto 30px;

    color: #707070;

    font-size: 16px;

    line-height: 1.75;
}

.tubey-hero-button {
    position: relative;

    z-index: 1;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 48px;

    padding: 0 24px;

    background:
        linear-gradient(
            135deg,
            #ff2d6f,
            #ff4f85
        );

    color: #fff !important;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 800;

    text-decoration: none !important;

    box-shadow:
        0 10px 25px rgba(255,45,111,.22);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.tubey-hero-button span {
    font-size: 17px;

    transition: transform .2s ease;
}

.tubey-hero-button:hover {
    color: #fff !important;

    transform: translateY(-3px);

    box-shadow:
        0 14px 30px rgba(255,45,111,.28);
}

.tubey-hero-button:hover span {
    transform: translateX(3px);
}


/* =====================================================
   TRENDING
===================================================== */

.tubey-trending {
    margin-top: 45px;
}

.tubey-section-head {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
}

.tubey-section-label {
    display: inline-flex;

    align-items: center;

    margin-bottom: 7px;

    color: #ff2d6f;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .8px;
}

.tubey-section-head h2 {
    margin: 0;

    color: #171a2b;

    font-size: 29px;
    font-weight: 900;

    letter-spacing: -.8px;

    line-height: 1.2;
}

.tubey-section-head p {
    margin: 7px 0 0;

    color: #888;

    font-size: 13px;

    line-height: 1.5;
}


/* VIEW ALL */

.tubey-view-all {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 39px;

    padding: 0 15px;

    background: #faf9ff;

    color: #5b4bff !important;

    border: 1px solid #e7e3ff;

    border-radius: 50px;

    font-size: 12px;
    font-weight: 800;

    text-decoration: none !important;

    white-space: nowrap;

    transition: .2s ease;
}

.tubey-view-all span {
    font-size: 16px;

    transition: transform .2s ease;
}

.tubey-view-all:hover {
    background: #5b4bff;

    color: #fff !important;

    border-color: #5b4bff;

    transform: translateY(-2px);
}

.tubey-view-all:hover span {
    transform: translateX(3px);
}


/* VIDEO GRID */

.tubey-video-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}


/* CARD */

.tubey-video-card {
    overflow: hidden;

    background: #fff;

    border: 1px solid #ececf1;

    border-radius: 17px;

    box-shadow:
        0 6px 20px rgba(20,20,40,.055);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.tubey-video-card:hover {
    transform: translateY(-5px);

    border-color: #dfdbff;

    box-shadow:
        0 15px 35px rgba(30,25,70,.12);
}


/* THUMBNAIL */

.tubey-video-thumb {
    position: relative;

    display: block;

    overflow: hidden;

    aspect-ratio: 16 / 9;

    background: #eeeeee;

    text-decoration: none !important;
}

.tubey-video-thumb img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .35s ease;
}

.tubey-video-card:hover
.tubey-video-thumb img {
    transform: scale(1.04);
}


/* PLAY */

.tubey-play {
    position: absolute;

    left: 13px;
    bottom: 13px;

    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,.78);

    color: #fff;

    border-radius: 50%;

    font-size: 11px;

    padding-left: 2px;

    box-shadow:
        0 5px 15px rgba(0,0,0,.20);
}


/* NO THUMB */

.tubey-no-thumb {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #f5f3ff,
            #fff1f6
        );

    color: #5b4bff;

    font-size: 30px;
}


/* CARD INFO */

.tubey-video-info {
    padding: 14px 15px 16px;
}

.tubey-video-info h3 {
    margin: 0;

    font-size: 15px;
    font-weight: 700;

    line-height: 1.45;
}

.tubey-video-info h3 a {
    color: #202124 !important;

    text-decoration: none !important;
}

.tubey-video-info h3 a:hover {
    color: #5b4bff !important;
}

.tubey-video-meta {
    margin-top: 8px;

    color: #999;

    font-size: 11px;

    line-height: 1.4;
}


/* NO VIDEOS */

.tubey-no-videos {
    grid-column: 1 / -1;

    padding: 45px 20px;

    text-align: center;

    background: #faf9ff;

    border: 1px solid #ece9f7;

    border-radius: 18px;
}

.tubey-no-videos-icon {
    width: 55px;
    height: 55px;

    margin: 0 auto 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #5b4bff;

    color: #fff;

    border-radius: 17px;

    font-size: 19px;
}

.tubey-no-videos h3 {
    margin: 0 0 7px;

    color: #202124;

    font-size: 18px;
}

.tubey-no-videos p {
    margin: 0;

    color: #888;

    font-size: 13px;
}


/* =====================================================
   FOOTER
===================================================== */

.tubey-footer {
    margin-top: 50px;

    padding: 35px 15px;

    background: #faf9ff;

    border-top: 1px solid #eeeaf7;

    text-align: center;
}

.tubey-footer-inner {
    max-width: 1100px;

    margin: 0 auto;
}

.tubey-footer-logo {
    color: #171a2b;

    font-size: 21px;
    font-weight: 900;
}

.tubey-footer-logo span {
    color: #ff9d00;
}

.tubey-footer p {
    margin: 8px 0 15px;

    color: #777;

    font-size: 13px;
}

.tubey-footer-links {
    display: flex;

    justify-content: center;

    gap: 15px;
}

.tubey-footer-links a {
    color: #5b4bff !important;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none !important;
}

.tubey-footer-copy {
    margin-top: 20px;

    color: #999;

    font-size: 12px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 850px) {

    .tubey-video-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

    .tubey-header-inner {
        min-height: 58px;

        padding: 8px 12px;

        gap: 10px;
    }

    .tubey-logo-main {
        font-size: 23px;
    }

    .tubey-logo-in {
        font-size: 16px;
    }

    .tubey-header-search {
        display: none;
    }

    .tubey-mobile-search {
        display: block;
    }

    .tubey-menu-button {
        width: 38px;
        height: 38px;

        margin-left: auto;
    }

    .tubey-hero {
        margin-top: 5px;

        padding: 50px 18px 45px;

        border-radius: 21px;
    }

    .tubey-hero-logo {
        font-size: 32px;

        letter-spacing: -1.5px;
    }

    .tubey-hero-logo span {
        padding: 4px 8px;

        font-size: 16px;
    }

    .tubey-hero h1 {
        margin-top: 17px;

        font-size: 29px;

        letter-spacing: -1px;
    }

    .tubey-hero p {
        font-size: 14px;

        line-height: 1.65;
    }

    .tubey-hero-button {
        min-height: 46px;

        padding: 0 21px;
    }

    .tubey-trending {
        margin-top: 35px;
    }

    .tubey-section-head {
        align-items: flex-start;
    }

    .tubey-section-head h2 {
        font-size: 24px;
    }

    .tubey-section-head p {
        font-size: 12px;
    }

    .tubey-video-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .tubey-video-info {
        padding: 13px 14px 15px;
    }

    .tubey-video-info h3 {
        font-size: 14px;
    }

}


/* =====================================================
   SMALL PHONES
===================================================== */

@media (max-width: 430px) {

    .tubey-section-head {
        display: block;
    }

    .tubey-view-all {
        margin-top: 12px;
    }

}
/* =====================================================
   TUBEY — COMPACT PREMIUM SINGLE POST
===================================================== */

.tubey-single {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 25px 15px 45px;
}


/* POST */

.tubey-post {
    width: 100%;
}


/* MEDIA */

.tubey-post-media {
    width: 100%;
    overflow: hidden;
    margin-bottom: 18px;
    background: #f5f2ef;
    border-radius: 14px;
}

.tubey-post-thumbnail {
    display: block;
    width: 100%;
    height: auto;
}


/* HEADER */

.tubey-post-header {
    margin-bottom: 18px;
}

.tubey-post-title {
    margin: 0 0 8px;

    color: #302720;

    font-size: 26px;
    font-weight: 800;

    line-height: 1.3;
    letter-spacing: -.4px;
}


/* META */

.tubey-post-meta {
    display: flex;
    align-items: center;
    gap: 7px;

    color: #9a8d84;

    font-size: 11px;
}


/* CONTENT */

.tubey-post-content {
    color: #403832;

    font-size: 14px;

    line-height: 1.7;
}

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


/* VIDEO / EMBED */

.tubey-post-content iframe,
.tubey-post-content video {
    display: block;

    width: 100%;
    max-width: 100%;

    aspect-ratio: 16 / 9;

    margin: 0 0 20px;

    border: 0;

    border-radius: 14px;

    background: #000;
}


/* CONTENT IMAGES */

.tubey-post-content img {
    max-width: 100%;
    height: auto;

    border-radius: 12px;
}


/* LINKS */

.tubey-post-content a {
    color: #df6d68;
}


/* CATEGORY */

.tubey-post-footer {
    margin-top: 22px;
    padding-top: 14px;

    border-top: 1px solid #eee6df;

    color: #a0806d;

    font-size: 11px;
}

.tubey-post-footer a {
    color: #df6d68 !important;

    font-weight: 700;

    text-decoration: none !important;
}


/* MOBILE */

@media (max-width: 600px) {

    .tubey-single {
        max-width: 100%;
        padding: 18px 12px 35px;
    }

    .tubey-post-media {
        margin-bottom: 15px;
        border-radius: 12px;
    }

    .tubey-post-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .tubey-post-content {
        font-size: 14px;
        line-height: 1.65;
    }

    .tubey-post-content iframe,
    .tubey-post-content video {
        border-radius: 11px;
    }

}