.news-page {
    position: relative;
    padding: 32px;
    min-height: 100vh;
}

.news-page .profile-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.news-page .profile-ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.news-page .profile-ambient-orb.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.3) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.news-page .profile-ambient-orb.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.25) 0%, transparent 70%);
    top: 50%;
    right: -150px;
    animation-delay: -7s;
}

.news-page .profile-ambient-orb.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.2) 0%, transparent 70%);
    bottom: -100px;
    left: 30%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

.page-header-modern {
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
    animation: fadeInUp 0.4s ease backwards;
}

.page-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.6), rgba(var(--accent-rgb), 0.08));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.page-icon-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-rgb), 0.1));
    border-radius: 16px;
    color: var(--accent-primary);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
}

.page-icon-glow {
    position: absolute;
    inset: -6px;
    border: 2px dashed rgba(var(--accent-rgb), 0.3);
    border-radius: 22px;
    animation: ringRotate 20s linear infinite;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.page-header-text {
    flex: 1;
}

.page-title-modern {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 4px;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-primary) 0%, rgba(var(--accent-rgb), 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle-modern {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

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

.news-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
    margin-top: 32px;
    position: relative;
    z-index: 1;
}

.news-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeInUp 0.5s ease backwards;
}

.news-section.news-blogs {
    animation-delay: 0.1s;
}

.news-section.news-updates {
    animation-delay: 0.2s;
}

.news-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    animation: fadeInUp 0.4s ease backwards;
    animation-delay: 0.05s;
}

.news-section-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-subtle-hover), var(--accent-subtle));
    border: 1px solid var(--accent-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.news-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.news-blogs-list,
.news-updates-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-blogs-list > *,
.news-updates-list > * {
    animation: cardFadeIn 0.4s ease backwards;
}

.news-blogs-list > *:nth-child(1),
.news-updates-list > *:nth-child(1) { animation-delay: 0.1s; }
.news-blogs-list > *:nth-child(2),
.news-updates-list > *:nth-child(2) { animation-delay: 0.15s; }
.news-blogs-list > *:nth-child(3),
.news-updates-list > *:nth-child(3) { animation-delay: 0.2s; }
.news-blogs-list > *:nth-child(4),
.news-updates-list > *:nth-child(4) { animation-delay: 0.25s; }
.news-blogs-list > *:nth-child(5),
.news-updates-list > *:nth-child(5) { animation-delay: 0.3s; }
.news-blogs-list > *:nth-child(6),
.news-updates-list > *:nth-child(6) { animation-delay: 0.35s; }
.news-blogs-list > *:nth-child(7),
.news-updates-list > *:nth-child(7) { animation-delay: 0.4s; }
.news-blogs-list > *:nth-child(n+8),
.news-updates-list > *:nth-child(n+8) { animation-delay: 0.45s; }

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

.news-blog-card {
    background: rgba(12, 12, 18, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.news-blog-card:hover {
    border-color: var(--accent-border);
    box-shadow: 0 8px 32px var(--accent-glow);
    transform: translateY(-2px);
}

.news-blog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.news-blog-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--accent-border);
    object-fit: cover;
    flex-shrink: 0;
}

.news-author-initials {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    text-transform: uppercase;
}

.news-author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.news-author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.news-blog-author:hover .news-author-name {
    color: var(--accent-primary);
}

.news-blog-author:hover .news-author-avatar {
    border-color: var(--accent-primary);
}

.news-blog-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.news-blog-category {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-blog-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.news-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-blog-card:hover .news-blog-image img {
    transform: scale(1.05);
}

.news-blog-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
}

.news-blog-content {
    padding: 16px 18px;
}

.news-blog-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
}

.news-blog-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.news-blog-preview {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.news-read-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-read-more:hover {
    color: var(--accent-secondary);
}

.news-blog-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.news-blog-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-blog-action:hover {
    background: var(--accent-subtle);
    border-color: var(--accent-border);
    color: var(--accent-primary);
}

.news-blog-action.liked {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    cursor: not-allowed;
}

.news-blog-action.liked:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.news-blog-action:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.news-update-version {
    background: rgba(12, 12, 18, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-update-version:hover {
    border-color: var(--accent-border);
    box-shadow: 0 8px 32px var(--accent-glow);
    transform: translateY(-2px);
}

.news-update-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.news-version-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary);
}

.news-update-date {
    font-size: 13px;
    color: var(--text-secondary);
}

.news-update-changes {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-change-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-change-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-change-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 24px;
}

.news-change-item {
    position: relative;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 16px;
}

.news-change-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-primary);
}

.news-update-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-change-preview-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.news-change-preview-item .icon-svg {
    flex-shrink: 0;
    margin-top: 3px;
}

.news-update-more {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-primary);
}

.news-update-version:hover .news-update-more {
    color: var(--accent-secondary);
}

.news-loading,
.news-empty,
.news-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
}

@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .news-page {
        padding: 20px;
    }
    
    .news-blog-image {
        height: 180px;
    }
    
    .news-blog-title {
        font-size: 18px;
    }
}

.admin-news-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.admin-news-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-news-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-news-item-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 1200px) {
    .admin-news-container {
        grid-template-columns: 1fr;
    }
}

.news-page ~ .modal-overlay,
#blogModal,
#updateLogModal {
    animation: modalFadeIn 0.25s ease;
}

.news-page ~ .modal-overlay .modal-content,
#blogModal .modal-content,
#updateLogModal .modal-content {
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

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

#blogModal,
#updateLogModal {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#blogModal .modal-content,
#updateLogModal .modal-content {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow-x: hidden;
}

#blogModal .modal-body,
#updateLogModal .modal-body {
    word-break: break-word;
    overflow-wrap: break-word;
    overflow-x: hidden;
}

#blogModal .modal-body *,
#updateLogModal .modal-body * {
    max-width: 100%;
    word-break: break-word;
}

