/* Mobile Menu */
.guides-mobile-menu-wrapper {
    position: relative;
}

.guides-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.guides-hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.guides-mobile-popup {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: #333;
    z-index: 99999;
    transition: right 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

.guides-mobile-popup.active {
    right: 0;
}

.guides-mobile-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.guides-mobile-nav {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
}

.guides-mobile-link {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-family: "Noto Sans Hebrew", Sans-serif;
    border-bottom: 1px solid #444;
    transition: all 0.2s ease;
}

.guides-mobile-link:hover,
.guides-mobile-link.active {
    background: #ffd218;
    color: #000;
}

.guides-mobile-support {
    margin-top: 30px;
    padding: 20px;
    background: #3a3a3a;
    border-radius: 10px;
}

.guides-mobile-support-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: #fff;
    direction: rtl;
    font-family: "Noto Sans Hebrew", Sans-serif !important;
}

.guides-mobile-support-header strong {
    display: block;
    font-size: 18px;
    font-family: "Noto Sans Hebrew", Sans-serif !important;
}

.guides-mobile-support-header span {
    font-size: 14px;
    opacity: 0.8;
    font-family: "Noto Sans Hebrew", Sans-serif !important;
}

.guides-mobile-support-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guides-mobile-support-form input,
.guides-mobile-support-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: none !important;
    border-radius: 5px;
    font-size: 14px;
    font-family: "Noto Sans Hebrew", Sans-serif !important;
    text-align: right;
    box-sizing: border-box;
    background: #fff !important;
    color: #333 !important;
}

.guides-mobile-support-form textarea {
    resize: none;
}

.guides-mobile-submit {
    width: 100%;
    padding: 15px;
    background: #ffd218 !important;
    color: #000 !important;
    border: none !important;
    border-radius: 5px !important;
    font-size: 16px;
    font-weight: 600;
    font-family: "Noto Sans Hebrew", Sans-serif;
    cursor: pointer;
    margin-top: 5px;
}

.guides-mobile-logout {
    display: block;
    text-align: center;
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    margin-top: 15px;
    font-family: "Noto Sans Hebrew", Sans-serif;
}

.guides-mobile-logo {
    margin-top: auto;
    padding-top: 30px;
    text-align: center;
}

.guides-mobile-logo img {
    max-width: 150px;
    opacity: 0.5;
}

.guides-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    display: none;
}

.guides-mobile-overlay.active {
    display: block;
}

/* Categories Navigation */
.guides-categories-nav {
    direction: rtl;
    font-family: "Noto Sans Hebrew", Sans-serif;
}

.guides-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guides-category-item {
    margin-bottom: 0;
    border-bottom: 1px solid #444;
}

.guides-category-item:last-child {
    border-bottom: none;
}

.guides-category-item a {
    display: block;
    padding: 25px 30px;
    text-decoration: none;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    transition: all 0.2s ease;
    background: #333;
    text-align: center;
}

.guides-category-item a:hover,
.guides-category-item.active a {
    background: #f5c518;
    color: #000;
}

.guides-category-item .count {
    opacity: 0.7;
    font-size: 16px;
}

/* Search */
.guides-search-wrapper {
    direction: rtl;
    margin-bottom: 40px;
    position: relative;
    text-align: center;
}

.guides-search-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-family: "Noto Sans Hebrew", Sans-serif;
}

.guides-search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.guides-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    z-index: 2;
}

.guides-search-input {
    width: 100%;
    padding: 18px 25px 18px 55px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: "Noto Sans Hebrew", Sans-serif;
    text-align: right;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.guides-search-input:focus {
    border-color: #ffd218;
    box-shadow: 0 0 0 3px rgba(255, 210, 24, 0.2);
}

.guides-search-input::placeholder {
    color: #999;
}

.guides-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-width: 600px;
    margin: 10px auto 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 100;
    overflow: hidden;
    display: none;
    border: 1px solid #e0e0e0;
}

.guides-search-results.active {
    display: block;
}

.guides-search-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

.guides-search-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.guides-search-item:last-child {
    border-bottom: none;
}

.guides-search-item:hover {
    background: #f8f8f8;
}

.guides-search-item-icon {
    width: 45px;
    height: 45px;
    background: #333;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guides-search-item-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.guides-search-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    font-family: "Noto Sans Hebrew", Sans-serif;
}

.guides-search-item-cat {
    font-size: 12px;
    color: #999;
    font-family: "Noto Sans Hebrew", Sans-serif;
}

.guides-search-empty {
    padding: 30px;
    text-align: center;
    color: #999;
    font-family: "Noto Sans Hebrew", Sans-serif;
    margin: 0;
}

/* Videos Grid */
.guides-videos-wrapper {
    direction: rtl;
}

.guides-category-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    font-family: "Noto Sans Hebrew", Sans-serif;
}

.guides-category-description {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 16px;
    font-family: "Noto Sans Hebrew", Sans-serif;
}

.guides-videos-grid {
    display: grid;
    gap: 25px;
}

.guides-videos-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.guides-videos-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.guides-videos-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Video Card */
.guide-video-card {
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.guide-video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    background: #e0e0e0;
    overflow: hidden;
}

.guide-video-thumbnail img,
.guide-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Default thumbnail placeholder */
button.guide-default-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

button.guide-default-thumbnail:hover {
    background: #444;
}

button.guide-default-thumbnail svg {
    width: 80px;
    height: 80px;
    transition: transform 0.2s ease;
}

button.guide-default-thumbnail:hover svg {
    transform: scale(1.1);
}

.guide-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.guide-video-card:hover .guide-video-overlay {
    opacity: 1;
}

.play-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

.guide-logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 70%;
    height: auto;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

.guide-video-title {
    padding: 15px 20px;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    color: #333;
    font-family: "Noto Sans Hebrew", Sans-serif;
}

.no-video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-size: 14px;
}

.guides-no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

/* Modal */
.guides-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guides-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
}

.guides-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.guides-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.guides-modal-video {
    aspect-ratio: 16/9;
}

.guides-modal-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .guides-videos-grid.columns-3,
    .guides-videos-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .guides-videos-grid.columns-2,
    .guides-videos-grid.columns-3,
    .guides-videos-grid.columns-4 {
        grid-template-columns: 1fr;
    }
    
    .guides-category-title {
        font-size: 28px;
    }
    
    .guides-modal-content {
        width: 95%;
    }
}

/* Login Form */
.guides-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 40px 20px;
    direction: rtl;
}

.guides-login-box {
    background: #fff;
    border-radius: 20px;
    padding: 50px 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.guides-login-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 35px;
    color: #333;
    font-family: "Noto Sans Hebrew", Sans-serif;
}

.guides-login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guides-form-field input {
    width: 100%;
    padding: 18px 25px;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    text-align: right;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    font-family: "Noto Sans Hebrew", Sans-serif;
}

.guides-form-field input:focus {
    border-color: #333;
}

.guides-form-field input::placeholder {
    color: #999;
}

.guides-login-button {
    width: 100% !important;
    padding: 18px 25px !important;
    background: #ffd218 !important;
    color: #000 !important;
    border: none !important;
    border-radius: 5px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-top: 10px !important;
    font-family: "Noto Sans Hebrew", Sans-serif !important;
}

.guides-login-button:hover {
    background: #e6bd15 !important;
}

.guides-login-button:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

.guides-login-error {
    background: #fee;
    color: #c00;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

@media (max-width: 480px) {
    .guides-login-box {
        padding: 35px 25px;
    }
    
    .guides-login-title {
        font-size: 26px;
    }
}

