/**
 * Digital Newspaper - Sticky Flying Sidebar Stylesheet
 */

/* Floating Tab Trigger on the Right Side */
.dn-flying-trigger {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #E50914 0%, #ff7640 100%);
    color: #ffffff;
    cursor: pointer;
    z-index: 9990;
    border-radius: 8px 0 0 8px;
    box-shadow: -4px 4px 18px rgba(253, 79, 24, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 12px 9px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    user-select: none;
}

.dn-flying-trigger:hover {
    background: linear-gradient(135deg, #e03e08 0%, #E50914 100%);
    box-shadow: -6px 6px 24px rgba(253, 79, 24, 0.55);
    padding-right: 14px;
}

.dn-trigger-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dn-trigger-icon {
    font-size: 14px;
    transform: rotate(90deg);
}

.dn-trigger-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Backdrop */
.dn-flying-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 25, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.dn-flying-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

/* Flying Sidebar Drawer */
.dn-flying-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    box-shadow: -10px 0 35px 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-flying-drawer.is-open {
    right: 0;
}

/* Header */
.dn-flying-header {
    padding: 20px 24px;
    background: #111418;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--digital-newspaper-global-preset-color-1, #E50914);
}

.dn-flying-badge {
    font-size: 10px;
    font-weight: 800;
    background: var(--digital-newspaper-global-preset-color-1, #E50914);
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.dn-flying-heading {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.dn-flying-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    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-flying-close:hover {
    background: var(--digital-newspaper-global-preset-color-1, #E50914);
    transform: rotate(90deg);
}

/* Body Content */
.dn-flying-body {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.dn-flying-body::-webkit-scrollbar {
    width: 6px;
}
.dn-flying-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.dn-flying-widget {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #edf0f4;
}

.dn-flying-widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.dn-flying-widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    position: relative;
}

.dn-flying-widget-title i {
    color: var(--digital-newspaper-global-preset-color-1, #E50914);
    margin-right: 6px;
}

/* Trending Items inside Drawer */
.dn-flying-trending-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dn-flying-trend-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.dn-flying-rank {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #eef1f6;
    color: #495057;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dn-flying-rank.dn-rank-1 {
    background: #E50914;
    color: #fff;
}
.dn-flying-rank.dn-rank-2 {
    background: #ff7640;
    color: #fff;
}
.dn-flying-rank.dn-rank-3 {
    background: #ffa133;
    color: #fff;
}

.dn-flying-trend-content h4 {
    font-size: 13px;
    line-height: 1.35;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.dn-flying-trend-content h4 a {
    color: #222222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.dn-flying-trend-content h4 a:hover {
    color: var(--digital-newspaper-global-preset-color-1, #E50914);
}

.dn-flying-meta {
    font-size: 11px;
    color: #888888;
    display: flex;
    gap: 10px;
}

/* Hot Categories Cloud */
.dn-flying-cats-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dn-flying-cat-pill {
    font-size: 12px;
    font-weight: 600;
    color: #333333;
    background: #f4f5f7;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.dn-flying-cat-pill:hover {
    background: var(--digital-newspaper-global-preset-color-1, #E50914);
    color: #ffffff;
}

.dn-cat-count {
    font-size: 10px;
    background: rgba(0, 0, 0, 0.1);
    padding: 1px 6px;
    border-radius: 10px;
}

/* Quick Tools */
.dn-flying-tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dn-flying-tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e9f0;
    background: #fafbfc;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    transition: all 0.25s ease;
}

.dn-flying-tool-btn i {
    font-size: 16px;
    color: var(--digital-newspaper-global-preset-color-1, #E50914);
}

.dn-flying-tool-btn:hover {
    background: #ffffff;
    border-color: var(--digital-newspaper-global-preset-color-1, #E50914);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Footer */
.dn-flying-footer {
    padding: 16px 24px;
    background: #f8f9fa;
    border-top: 1px solid #edf0f4;
    text-align: center;
    font-size: 12px;
    color: #777777;
}

.dn-flying-footer p {
    margin: 0;
}
