/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: transparent; 
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; 
}

/* Sidebar Animations */
.sidebar-transition {
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
}

/* Original Cazimbo Button Styles */
.btn-cazimbo {
    background: linear-gradient(to bottom, #ffffff 0%, #f1f5f9 100%);
    border: 1px solid white;
    position: relative;
    overflow: hidden;
}

/* Top shine effect */
.btn-cazimbo::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,255,255,0.1));
    border-radius: 10px;
    pointer-events: none;
}

.btn-cazimbo:active {
    transform: translateY(2px);
}

.btn-green-press:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0px #5da610 !important;
}

/* Sidebar State - Made more compact */
.sidebar-expanded {
    width: 15rem; 
}
.sidebar-collapsed {
    width: 4.5rem; 
}

@media (min-width: 1024px) {
    .sidebar-collapsed .nav-text { display: none; }
    .sidebar-collapsed .nav-item { justify-content: center; padding-left: 0; padding-right: 0; }
}

/* Glossy Gradient for Green Button */
.bg-glossy-green {
    background: linear-gradient(180deg, #8ce626 0%, #76c61a 100%);
}

/* SEO Block Styles - автоматическое применение через селекторы */
#seo-block {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 0px #e2e8f0, 0 3px 5px rgba(0,0,0,0.05);
    margin-bottom: 2.5rem;
    border: 1px solid #e5e7eb;
}

#seo-block > div {
    max-width: 56rem;
    margin: 0 auto;
}

#seo-block h2 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

#seo-block h3 {
    font-size: 1.25rem;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

#seo-block h4 {
    font-weight: 700;
    color: #0099ff;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

#seo-block h4:first-of-type {
    margin-top: 1.5rem;
}

#seo-block p {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.75;
    font-size: 0.875rem;
}

/* Grid для двух колонок (списки) - первый div после h3 */
#seo-block > div > h3 + p + div {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    #seo-block > div > h3 + p + div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Unordered List Styles */
#seo-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#seo-block ul li {
    padding: 0.75rem 0 0.75rem 1.75rem;
    position: relative;
    color: #2c3e50;
    font-size: 0.875rem;
    line-height: 1.6;
    border-bottom: 1px solid #f0f2f5;
    transition: all 0.2s ease;
}

#seo-block ul li:last-child {
    border-bottom: none;
}

#seo-block ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: #76c61a;
    font-weight: bold;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8ce626 0%, #76c61a 100%);
    border-radius: 50%;
    font-size: 0.75rem;
    box-shadow: 0 2px 4px rgba(118, 198, 26, 0.3);
}

#seo-block ul li:hover {
    color: #0099ff;
    padding-left: 2rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    margin: 0.25rem 0;
}

/* Ordered List Styles */
#seo-block ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: seo-counter;
}

#seo-block ol li {
    padding: 0.75rem 0 0.75rem 2.5rem;
    position: relative;
    color: #2c3e50;
    font-size: 0.875rem;
    line-height: 1.6;
    border-bottom: 1px solid #f0f2f5;
    counter-increment: seo-counter;
    transition: all 0.2s ease;
}

#seo-block ol li:last-child {
    border-bottom: none;
}

#seo-block ol li::before {
    content: counter(seo-counter);
    position: absolute;
    left: 0;
    top: 0.5rem;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.75rem;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0099ff 0%, #4dabff 100%);
    border-radius: 0.375rem;
    box-shadow: 0 2px 4px rgba(0, 153, 255, 0.3);
}

#seo-block ol li:hover {
    color: #0099ff;
    padding-left: 3rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    margin: 0.25rem 0;
}

/* Table Wrapper - div после h4 */
#seo-block > div > h4 + div {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

/* Table Styles */
#seo-block table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#seo-block table thead {
    background: linear-gradient(135deg, #0099ff 0%, #4dabff 100%);
}

#seo-block table th {
    padding: 1rem;
    text-align: left;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

#seo-block table th:first-child {
    border-top-left-radius: 0.75rem;
}

#seo-block table th:last-child {
    border-top-right-radius: 0.75rem;
}

#seo-block table tbody tr {
    border-bottom: 1px solid #f0f2f5;
    transition: all 0.2s ease;
}

#seo-block table tbody tr:last-child {
    border-bottom: none;
}

#seo-block table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 153, 255, 0.1);
}

#seo-block table td {
    padding: 1rem;
    color: #2c3e50;
    font-size: 0.875rem;
    font-weight: 500;
}

#seo-block table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

#seo-block table tbody tr:nth-child(even):hover {
    background-color: #f0f4f8;
}

/* Grid для карточек внизу - последний div */
#seo-block > div > div:last-of-type {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    #seo-block > div > div:last-of-type {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

#seo-block > div > div:last-of-type > div {
    background: #f0f2f5;
    padding: 0.75rem;
    border-radius: 0.75rem;
}

#seo-block > div > div:last-of-type h3 {
    font-weight: 700;
    color: #0099ff;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    margin-top: 0;
}

#seo-block > div > div:last-of-type p {
    font-size: 0.6875rem;
    color: #6b7280;
    margin-bottom: 0;
}

/* Responsive Table */
@media (max-width: 768px) {
    #seo-block table {
        font-size: 0.75rem;
    }
    
    #seo-block table th,
    #seo-block table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Hero Banner Background Position */
.hero-banner-bg {
    background-position: center center;
    background-size: cover;
}

/* Desktop - центр по умолчанию */
@media (min-width: 769px) {
    .hero-banner-bg {
        background-position: center center;
    }
}

/* Mobile Banner Position - настраивается в процентах */
/* Измените значения ниже для настройки позиции на мобильных устройствах */
@media (max-width: 768px) {
    .hero-banner-bg {
        /* Настройка позиции фона: X% Y% */
        /* Измените эти значения для изменения позиции баннера */
        background-position: 70% 50%;
        /* 
        Примеры значений:
        - 0% 0% - верхний левый угол
        - 50% 50% - центр
        - 100% 100% - нижний правый угол
        - 50% 20% - центр по X, 20% от верха
        - 80% 50% - 80% справа, 50% от верха (текущее значение)
        - 70% 40% - 70% справа, 40% от верха
        */
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .hero-banner-bg {
        /* Можно задать другое значение для маленьких экранов */
        background-position: 71% 50%;
    }
}
