/**
 * Digital Newspaper - Head & Show Menu Stylesheet
 */

/* Stacked Lines Button in Header */
.dn-head-show-btn-wrap {
    display: inline-flex;
    align-items: center;
    margin-left: 14px;
}

.dn-stacked-lines-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.dn-stacked-lines-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.dn-line {
    display: block;
    height: 3px;
    background: #1a1a1a;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dn-line-1 {
    width: 22px;
}
.dn-line-2 {
    width: 16px;
    align-self: flex-end;
}
.dn-line-3 {
    width: 20px;
}

.dn-stacked-lines-btn:hover .dn-line {
    background: var(--digital-newspaper-global-preset-color-1, #E50914);
    width: 22px;
}

/* Active Morph State */
.dn-stacked-lines-btn.is-active .dn-line-1 {
    transform: translateY(8px) rotate(45deg);
    width: 22px;
}
.dn-stacked-lines-btn.is-active .dn-line-2 {
    opacity: 0;
}
.dn-stacked-lines-btn.is-active .dn-line-3 {
    transform: translateY(-8px) rotate(-45deg);
    width: 22px;
}

/* Backdrop */
.dn-head-show-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 20, 30, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99990;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.dn-head-show-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Offcanvas Drawer */
.dn-head-show-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    z-index: 99999;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.dn-head-show-panel.is-open {
    right: 0;
}

.dn-hs-header {
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #edf0f5;
    background: #fafbfc;
}

.dn-hs-site-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.dn-hs-site-title a {
    color: #111;
    text-decoration: none;
}

.dn-hs-close-btn {
    background: #e9ecef;
    border: none;
    color: #333;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.dn-hs-close-btn:hover {
    background: var(--digital-newspaper-global-preset-color-1, #E50914);
    color: #fff;
    transform: rotate(90deg);
}

.dn-hs-body {
    padding: 26px;
    overflow-y: auto;
    flex-grow: 1;
}

.dn-hs-body::-webkit-scrollbar {
    width: 5px;
}
.dn-hs-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.dn-hs-search {
    margin-bottom: 26px;
}

.dn-hs-search-form {
    position: relative;
    display: flex;
}

.dn-hs-search-field {
    width: 100%;
    padding: 12px 42px 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    font-size: 14px;
    background: #f8fafc;
    outline: none;
    transition: all 0.25s ease;
}

.dn-hs-search-field:focus {
    background: #ffffff;
    border-color: var(--digital-newspaper-global-preset-color-1, #E50914);
    box-shadow: 0 0 0 3px rgba(253, 79, 24, 0.15);
}

.dn-hs-search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--digital-newspaper-global-preset-color-1, #E50914);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.dn-hs-section-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888888;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f2f5;
}

/* Nav Menu */
.dn-hs-navigation {
    margin-bottom: 26px;
}

.dn-hs-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dn-hs-menu-list li {
    margin-bottom: 8px;
}

.dn-hs-menu-list li a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #222222;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dn-hs-menu-list li a:hover {
    background: #f1f3f5;
    color: var(--digital-newspaper-global-preset-color-1, #E50914);
    transform: translateX(4px);
}

/* Categories List */
.dn-hs-categories {
    margin-bottom: 26px;
}

.dn-hs-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dn-hs-cat-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f2f5;
    color: #333333;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.dn-hs-cat-list li a:hover {
    color: var(--digital-newspaper-global-preset-color-1, #E50914);
}

.dn-hs-badge {
    background: #f1f3f5;
    color: #666;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Recent Highlights */
.dn-hs-recent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dn-hs-post-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.dn-hs-post-thumb {
    width: 65px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.dn-hs-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dn-hs-post-info h5 {
    font-size: 13px;
    margin: 0 0 4px 0;
    line-height: 1.35;
}

.dn-hs-post-info h5 a {
    color: #222;
    text-decoration: none;
}

.dn-hs-post-info h5 a:hover {
    color: var(--digital-newspaper-global-preset-color-1, #E50914);
}

.dn-hs-date {
    font-size: 11px;
    color: #999;
}

/* Footer */
.dn-hs-footer {
    padding: 16px 26px;
    background: #fafbfc;
    border-top: 1px solid #edf0f5;
}
