/* Plantopia shared styles merged with video guide page styles. */

body {
    font-family: 'Arima', cursive;
    background-color: #f8f9fa;
}

.navbar {
    background-color: #0089db;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}

.nav-link {
    color: white;
    font-family: 'Arima', serif;
    font-size: 1.4rem;
}

.moreInfo {
    display: flex;
    align-items: flex-start;
    padding: 0;
    margin: 0;
    min-height: 0;
}

.moreInfo:not(:empty) {
    padding: 0.5rem;
}

.qrcode {
    float: right;
    margin: 0.4rem;
    margin-top: 0;
    flex-shrink: 0;
    width: 100px;
}

.qrcode img {
    width: 100px !important;
    height: 100px !important;
    display: block;
}

.additional-info {
    flex: 1;
    padding: 0.5rem;
    padding-top: 0;
    padding-right: 1rem;
}

.info-link {
    display: block;
    color: #0093ff !important;
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.info-link:hover {
    text-decoration: underline;
}

.copyright-btn {
    display: block;
    background-color: #0093ff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    text-decoration: none;
}

.copyright-btn:hover {
    background-color: #0056b3;
}

.print-date {
    color: #666;
    white-space: pre-line;
}

.video-card {
    margin-bottom: 2rem;
    break-inside: avoid;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.video-row {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.video-container, 
.content-container {
    flex: 1;
    z-index: 100;
}

.video-info {
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #6c757d #f8f9fa;
}

.video-info-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-left: 0.2rem;
    overflow-y: auto;
}

lite-youtube {
    background-color: #000;
    position: relative;
    display: block;
    contain: content;
    background-position: center center;
    background-size: cover;
    cursor: pointer;
    max-width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px !important;
    overflow: hidden;
}

lite-youtube iframe,
lite-youtube > iframe,
.video-container iframe,
iframe[src*="youtube.com"],
iframe[src*="youtube-nocookie.com"] {
    border-radius: 10px !important;
    border: none !important;
}

.ytp-pause-overlay-container, .ytp-endscreen-content {
    display: none !important;
}

.ytp-pause-overlay,
.ytp-pause-overlay-round-corners {
    display: none !important;
}

.timeStampBox {
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 1rem 0;
    margin-right: 0.4rem;
    padding-bottom: 0.1rem;
    list-style-type: none;
}

.timeStamp li {
    list-style-type: none;
    margin-bottom: 0.2rem;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.timeStamp a {
    color: #0093ff !important;
    cursor: pointer;
    text-decoration: none;
}

.timeStamp a:hover {
    text-decoration: underline !important;
}

.timeStamp a.active-timestamp {
    font-weight: bold !important;
}

h5.vTitle {
    font-size: 1.1rem;
    font-style: italic;
    color: #6e6e6e;
}

.secTitle {
    margin: 0;
    padding-top: 0.5rem;
    color: #ff0060;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
}

.expanded-dialog .secTitle {
    flex-grow: 1;
}

.pDesc {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: -1px;
    margin-top: 5px;
}

.tDesc {
    font-size: 0.9rem;
    font-weight: bold;
    padding-top: 1rem;
    padding-left: 1rem;
}

.greenCheckMark {
    list-style-type: "✅ ";
}

.blackCheckMark {
    list-style-type: "✓ ";
}

.amazon-items {
    background-color: #e3f2fd;
    padding: 1rem;
    border-radius: 8px;
    margin-right: 0.4rem;
}

.amazon-items a {
    text-decoration: none;
}

.amazon-items a:hover {
    text-decoration: underline;
}

.amz:after {
    font-family: "Font Awesome 6 Brands";
    content: "\f270";
    font-size: 15px;
    color: #0d6efd;
    margin-left: 5px;
    bottom: 0;
    right: 18px;
    top: auto;
    left: auto;
}

.socialBar {
    text-align: center;
}

.share-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.share-wrapper .sharethis-inline-share-buttons {
    margin: 0;
}

.custom-icons {
    display: flex;
    gap: 0.8rem;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 2rem;
    color: #3C89FF;
}

.custom-icons span {
    cursor: pointer;
    transition: all 0.2s ease-in;
    opacity: 1;
    transform: translateY(0);
}

.custom-icons span:hover {
    color: #1a73e8;
    opacity: 0.8;
    transform: translateY(-4px);
}

.video-info-content::-webkit-scrollbar {
    width: 8px;
}

.video-info-content::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.video-info-content::-webkit-scrollbar-thumb {
    background-color: #6c757d;
    border-radius: 4px;
    border: 2px solid #f8f9fa;
}

.video-info-content::-webkit-scrollbar-thumb:hover {
    background-color: #495057;
}

.expand-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.col-lg-6.mb-4 {
    margin-bottom: 0 !important;
}

dialog#expanded-view {
    width: 95%;
    height: 95vh;
    padding: 20px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: white;
    margin: auto;
    position: relative;
}

.expanded-view-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.expanded-header {
    position: absolute;
    top: 10px;
    right: 40px;
    z-index: 1000;
}

.close-dialog {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.close-dialog:hover {
    transform: scale(1.1);
}

.close-dialog::before {
    font-family: 'Font Awesome 6 Solid';
    content: "\f057";
    font-size: 24px;
    color: #666;
    transition: color 0.2s ease;
    font-weight: 900;
}

.close-dialog:hover::before {
    color: #ff0060;
}

.title-section {
    text-align: center;
    padding: 10px 0 20px;
}

.expanded-main {
    display: flex;
    flex: 1;
}

.video-side {
    display: flex;
    flex-direction: column;
}

.video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
}

.guide-section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    grid-column: 1;
    grid-row: 2;
    display: block !important;
    visibility: visible !important;
    min-height: auto !important;
}

.guide-section .guideAi {
    margin-top: 0;
    padding-top: 0;
}

.qr-side {
    margin-top: auto;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.ais-Hits-item {
    flex-basis: 16.666%;
    box-sizing: border-box;
    -webkit-transition: -webkit-transform .2s ease-out;
    -moz-transition: -moz-transform .2s ease-out;
    -o-transition: -o-transform .2s ease-out;
    -ms-transition: -ms-transform .2s ease-out;
    transition: transform .2s ease-out;
    border-radius: 5px;
    display: block;
    width: 6vw;
}

.ais-Hits-item:hover {
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -o-transform: scale(1.2);
    transform: scale(1.2);
    background-color: #b6d3f2;
}

.gridTitle {
    font-family: Arima, serif;
    color: #3c89ff;
    text-align: center;
    font-size: 0.8rem;
}

a {
    text-decoration: none;
}

.gridLink a {
    text-decoration: none;
}

.animate-charcter {
    background-image: linear-gradient(-225deg, #231557 0%, #44107a 29%, #ff1361 67%, #fff800 100%);
    background-size: 200% auto;
    background-clip: text;
    color: #fff;
    text-fill-color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textclip 52s ease-in-out infinite;
    filter: drop-shadow(3px 3px 7px #5ef0ff);
    display: inline-block;
    font-size: calc(1.4rem + 0.4vw);
    font-family: Montserrat, sans-serif;
}

.mt-7 {
    margin-top: 5rem !important;
}

.decorated {
    overflow: hidden;
    text-align: center;
    font-size: 1.3em;
    margin-top: 5px;
}

.decorated > span {
    position: relative;
    display: inline-block;
    font-family: Berkshire Swash;
    color: #79a6fb;
}

.decorated > span:before, .decorated > span:after {
    content: '';
    position: absolute;
    top: 50%;
    border-bottom: 1px solid;
    width: 30vw;
    margin: 0 10px;
    color: #79a6fb;
}

.decorated > span:before {
    right: 100%;
}

.decorated > span:after {
    left: 100%;
}

.search-history-thumb {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 7px;
    box-shadow: 0 1px 3px #ccc;
    display: block;
    margin: 2px auto;
    background: #fff;
}

.search-result-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.10);
    background: #fff;
    margin: 8px 0;
    display: block;
}

.search-icon {
    cursor: pointer;
    color: white;
    font-size: 2rem;
}

.search-icon:hover {
    color: #0a58ca;
}

#searchDialog {
    width: 99%;
    height: 98vh;
    padding: 0;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #deeeff;
}

#searchDialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Standalone structured-data video guide pages */
.video-guide-page {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    padding-top: 80px;
}

.video-guide-title-section {
    text-align: center;
    padding: 10px 0 20px;
}

.video-guide-title-section h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #ff0060;
}

.video-guide-content-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    align-items: start;
}

.video-guide-video-wrapper {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.video-guide-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-guide-video-container iframe#youtube-player {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 10px;
    display: block;
}

.video-guide-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    grid-column: 2;
    grid-row: 1 / 3;
    min-width: 0;
}

.video-guide-tools-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.video-guide-timestamps-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.video-guide-guide-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
}

.video-guide-guide-section h4.secTitle {
    color: #ff0060;
    margin-top: 20px;
}

.video-guide-guide-section h5.vTitle {
    font-size: 1.3rem;
    font-style: italic;
    color: #6e6e6e;
    margin-bottom: 20px;
}

.video-guide-page .timeStamp {
    list-style: none;
    padding-left: 0;
}

.video-guide-page .timeStamp li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.video-guide-page .timeStamp a:hover {
    text-decoration: underline !important;
}

.video-guide-page .amz::after {
    font-family: "Font Awesome 6 Brands";
    content: "\f270" !important;
    font-size: 15px;
    color: #0d6efd;
    margin-left: 5px;
}

@media (max-width: 992px) {
    .video-guide-content-wrapper {
        display: flex;
        flex-direction: column;
    }

    .video-guide-video-wrapper,
    .video-guide-sidebar,
    .video-guide-guide-section {
        width: 100%;
    }

    .video-guide-video-wrapper {
        order: 1;
    }

    .video-guide-sidebar {
        order: 2;
    }

    .video-guide-guide-section {
        order: 3;
    }
}

.main-container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    padding-top: 80px;
}

.title-section h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #ff0060;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.video-wrapper {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    grid-column: 1;
    grid-row: 1;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    display: block;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    grid-column: 2;
    grid-row: 1 / 3;
}

.tools-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timestamps-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.guide-section h4.secTitle {
    color: #ff0060;
    margin-top: 20px;
}

.guide-section h5.vTitle {
    font-size: 1.3rem;
    font-style: italic;
    color: #6e6e6e;
    margin-bottom: 20px;
}

.timeStamp {
    list-style: none;
    padding-left: 0;
}

.amz {
    color: #0d6efd;
    text-decoration: none;
}

.amz:hover {
    text-decoration: underline;
}

@font-face {
font-family: 'Font Awesome 6 Solid';
    font-style: normal;
    font-weight: 900;
    src: url('webfonts/fa-solid-900-new.woff2') format('woff2');
}

@keyframes textclip {
to { background-position: 200% center; }
}

@media (max-width: 767px) {
    .video-row {
        flex-direction: column;
    }

    .video-container, 
    .content-container {
        width: 100%;
    }

    .video-container {
        margin-bottom: 1rem;
    }
}

@media (min-width: 768px) {
    .video-row {
        display: flex;
        gap: 1rem;
    }

    .video-container, 
    .content-container {
        flex: 1;
    }
}

@media (max-width: 992px) {
    .content-wrapper {
        display: flex;
        flex-direction: column;
    }

    .video-wrapper {
        order: 1;
    }

    .sidebar {
        order: 2;
    }

    .guide-section {
        order: 3;
    }
}
