/* ==========================================================================
   Wainode Modern Modular Segment CSS Styles
   ================================================================---------- */
.wn-modern-wrapper {
    max-width: 1040px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wn-toolbar-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
}

.wn-toolbar-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.wn-toolbar-subtitle {
    margin: 4px 0 0 0;
    font-size: 0.95rem;
    color: #a1a1aa;
}

.wn-glass-card {
    background: #121214;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.wn-blog-section {
    padding: 40px 36px;
    background: transparent;
    color: #f4f4f5;
}

.wn-blog-container {
    max-width: 860px;
    margin: 0 auto;
}

.wn-blog-admin-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.wn-switcher-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wn-switcher-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #d4d4d8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wn-blog-switcher {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #18181b;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wn-blog-switcher:hover, .wn-blog-switcher:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.wn-action-buttons-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.wn-modern-btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wn-modern-btn:hover {
    transform: translateY(-1px);
}

.wn-btn-dark {
    background: #27272a;
    color: #f4f4f5;
    border: 1px solid rgba(255,255,255,0.1);
}
.wn-btn-dark:hover { background: #3f3f46; }

.wn-btn-primary {
    background: #2563eb;
    color: #ffffff;
}
.wn-btn-primary:hover { background: #1d4ed8; }

.wn-btn-success {
    background: #16a34a;
    color: #ffffff;
}
.wn-btn-success:hover { background: #15803d; }

.wn-btn-danger {
    background: #dc2626;
    color: #ffffff;
}
.wn-btn-danger:hover { background: #b91c1c; }

/* Article Header Styles */
.wn-blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.wn-blog-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.wn-blog-title {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin: 0 0 16px 0;
    letter-spacing: -0.03em;
}

.wn-blog-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: #a1a1aa;
    font-size: 0.95rem;
    font-weight: 500;
}

.wn-blog-img-wrapper {
    position: relative;
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    border-radius: 14px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #09090b;
}

.wn-blog-img-wrapper:hover .wn-img-overlay-hint { opacity: 1; }

.wn-img-overlay-hint {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.wn-blog-img {
    cursor: pointer;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wn-blog-img:hover { transform: scale(1.015); }

.wn-blog-snippet {
    font-weight: 500;
    font-size: 1.35rem;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0.95;
}

/* Modular Segment Styles */
.wn-segments-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.wn-segment-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    transition: border-color 0.2s ease;
}

.wn-segment-item:hover {
    border-color: rgba(59, 130, 246, 0.4);
}

.wn-segment-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wn-seg-type-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #71717a;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wn-seg-btns {
    display: flex;
    gap: 4px;
}

.wn-seg-action-btn {
    background: #27272a;
    color: #a1a1aa;
    border: 1px solid rgba(255,255,255,0.08);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.wn-seg-action-btn:hover {
    background: #3f3f46;
    color: #ffffff;
}

.wn-btn-delete-seg:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

/* Specific Segment Typography */
.wn-seg-header {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
}

.wn-seg-paragraph {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #d4d4d8;
}

.wn-seg-quote {
    margin: 0;
    padding: 16px 20px;
    border-left: 4px solid #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    font-style: italic;
    font-size: 1.2rem;
    color: #f4f4f5;
    border-radius: 0 8px 8px 0;
}

.wn-seg-spacer {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.01);
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 6px;
    position: relative;
}

.wn-spacer-handle {
    display: none;
    background: #18181b;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #a1a1aa;
    gap: 8px;
    align-items: center;
}

.wn-seg-spacer:hover .wn-spacer-handle {
    display: flex;
}

.wn-spacer-handle button {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
}

.wn-seg-img-container {
    position: relative;
}

.wn-img-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #71717a;
    text-align: center;
}

/* Add Segment Control Bar */
.wn-add-segment-bar {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.wn-segment-bar-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #a1a1aa;
    margin-bottom: 12px;
}

.wn-segment-tools {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wn-seg-tool-btn {
    background: #18181b;
    color: #d4d4d8;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.wn-seg-tool-btn:hover {
    background: #27272a;
    border-color: #3b82f6;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Editable field focus state */
.wn-editable-field {
    outline: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    border-radius: 4px;
    padding: 4px;
}

.wn-editable-field:hover { background: rgba(59, 130, 246, 0.04); }
.wn-editable-field:focus { background: rgba(59, 130, 246, 0.08); box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4); }

.wn-toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #18181b;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    animation: wnSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wn-toast-notification i { color: #22c55e; font-size: 1.2rem; }

@keyframes wnSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}