/* News Page Styles - FIZ6 Gaming */

body {
    background: var(--grad-dark);
    color: #ffffff;
    font-family: 'Syne', sans-serif;
    min-height: 100vh;
}

/* Container */
.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}

/* Header Section */
.news-header {
    position: relative;
    overflow: hidden;
    text-align: center;
    margin-bottom: var(--space-8);
    padding: 10rem 0 4rem;
}

/* Cinematic animated blue background */
.news-header::before {
    content: '';
    position: absolute;
    inset: -18% -12% -12% -12%;
    z-index: 0;
    background: radial-gradient(circle at 30% 25%, rgba(0,150,255,0.24), rgba(0,60,150,0.12) 40%, rgba(3,15,30,0.0) 70%);
    filter: blur(52px) saturate(125%) contrast(1.02);
    opacity: 0.98;
    pointer-events: none;
    transform: translateZ(0);
    transition: filter 0.9s ease, opacity 0.9s ease, transform 0.9s ease;
    animation: news-bg-cinematic 36s linear infinite;
}

/* Moving soft light sweep */
.news-header::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0,200,255,0.10), transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(0,110,255,0.045), transparent 45%),
        linear-gradient(180deg, rgba(0,0,0,0) 24%, rgba(0,0,0,0.26) 100%);
    background-repeat: no-repeat;
    filter: blur(44px);
    pointer-events: none;
    mix-blend-mode: screen;
    animation: news-sweep 20s ease-in-out infinite;
}

.news-header h1,
.news-header p,
.news-header .news-search {
    position: relative;
    z-index: 2;
}

@keyframes news-bg-cinematic {
    0% { transform: translateY(0) scale(1); opacity: 0.98; }
    50% { transform: translateY(-6px) scale(1.02); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 0.98; }
}

@keyframes news-sweep {
    0% { opacity: 0.94; }
    35% { opacity: 1; }
    65% { opacity: 0.98; }
    100% { opacity: 0.94; }
}

.news-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--space-4);
    color: #FFFFFF;
}

.news-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Search Bar */
.news-search {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}

/* Search box ambient glow */
.news-search::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 48px);
    height: calc(100% + 18px);
    border-radius: 12px;
    background: radial-gradient(circle, rgba(0,160,255,0.14), transparent 40%);
    z-index: 1;
    pointer-events: none;
    filter: blur(18px);
    opacity: 0.75;
    transition: opacity 0.35s ease, transform 0.35s ease;
    animation: news-search-pulse 4.5s ease-in-out infinite;
}

@keyframes news-search-pulse {
    0% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.98); }
    50% { opacity: 0.95; transform: translate(-50%, -50%) scale(1.03); }
    100% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.98); }
}

.news-search svg {
    position: absolute;
    left: 1.25rem;
    color: var(--color-muted);
    pointer-events: none;
    transition: transform 0.2s ease;
    z-index: 3;
}

.news-search:focus-within svg {
    transform: translateY(-4px);
}

.news-search input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 0.95rem;
    font-family: 'Syne', sans-serif;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
}

.news-search input::placeholder {
    color: var(--color-muted);
}

.news-search input:focus {
    outline: none;
    border-color: rgba(0, 120, 255, 0.72);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 18px 56px rgba(0,120,255,0.30), inset 0 0 0 1px rgba(0,120,255,0.6);
    transform: translateY(-4px);
}

/* Admin Controls */
.admin-controls {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 204, 255, 0.3);
    padding: 1.5rem;
    margin-bottom: 3rem;
    display: none;
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.4s ease;
}

.admin-controls.visible {
    display: block;
}

.btn-create-news {
    background: linear-gradient(135deg, #00CCFF 0%, #0099CC 100%);
    color: #000;
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.btn-create-news::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-create-news:hover::before {
    left: 100%;
}

.btn-create-news:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 204, 255, 0.4), 0 0 20px rgba(0, 204, 255, 0.2);
}

.btn-create-news:active {
    transform: translateY(0);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: none;
    position: relative;
    border-radius: 0;
    backdrop-filter: blur(8px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Top-right corner glow */
.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color, rgba(59, 130, 246, 0.9)));
    box-shadow: 
        0 0 10px var(--accent-color, rgba(59, 130, 246, 0.6)),
        0 0 20px var(--accent-color, rgba(59, 130, 246, 0.4));
    transition: none;
    z-index: 10;
    pointer-events: none;
}

/* Top-right vertical edge */
.news-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 120px;
    background: linear-gradient(180deg, var(--accent-color, rgba(59, 130, 246, 0.9)), transparent);
    box-shadow: 
        0 0 10px var(--accent-color, rgba(59, 130, 246, 0.6)),
        0 0 20px var(--accent-color, rgba(59, 130, 246, 0.4));
    transition: none;
    z-index: 10;
    pointer-events: none;
}

.news-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(0, 204, 255, 0.1) 0%, rgba(0, 153, 204, 0.1) 100%);
    transition: none;
    position: relative;
    z-index: 2;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.news-card-content {
    padding: 1.5rem;
    position: relative;
}

/* Bottom-left corner glow */
.news-card-content::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color, rgba(59, 130, 246, 0.9)), transparent);
    box-shadow: 
        0 0 10px var(--accent-color, rgba(59, 130, 246, 0.6)),
        0 0 20px var(--accent-color, rgba(59, 130, 246, 0.4));
    transition: none;
    z-index: 10;
    pointer-events: none;
}

/* Bottom-left vertical edge */
.news-card-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2px;
    height: 120px;
    background: linear-gradient(180deg, transparent, var(--accent-color, rgba(59, 130, 246, 0.9)));
    box-shadow: 
        0 0 10px var(--accent-color, rgba(59, 130, 246, 0.6)),
        0 0 20px var(--accent-color, rgba(59, 130, 246, 0.4));
    transition: none;
    z-index: 10;
    pointer-events: none;
}

.news-category {
    display: inline-block;
    background: linear-gradient(135deg, 
        var(--accent-color, rgba(59, 130, 246, 0.15)), 
        var(--accent-color, rgba(59, 130, 246, 0.08))
    );
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    border-radius: 0;
    position: relative;
    filter: drop-shadow(0 0 8px var(--accent-color, rgba(59, 130, 246, 0.4)));
    transition: none;
}

/* Top-left corner accent on category */
.news-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: 
        linear-gradient(90deg, var(--accent-color, rgba(59, 130, 246, 0.9)), transparent) top / 100% 2px no-repeat,
        linear-gradient(to bottom, var(--accent-color, rgba(59, 130, 246, 0.9)) 0%, var(--accent-color, rgba(59, 130, 246, 0.6)) 30%, var(--accent-color, rgba(59, 130, 246, 0.3)) 60%, transparent 100%) left / 2px 100% no-repeat;
    z-index: 2;
    pointer-events: none;
}

/* Bottom-right corner accent on category */
.news-category::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: 
        linear-gradient(90deg, transparent, var(--accent-color, rgba(59, 130, 246, 0.9))) bottom / 100% 2px no-repeat,
        linear-gradient(to top, var(--accent-color, rgba(59, 130, 246, 0.9)) 0%, var(--accent-color, rgba(59, 130, 246, 0.6)) 30%, var(--accent-color, rgba(59, 130, 246, 0.3)) 60%, transparent 100%) right / 2px 100% no-repeat;
    z-index: 2;
    pointer-events: none;
}

.news-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: none;
    position: relative;
    z-index: 1;
}

.news-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.news-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.news-author span {
    color: rgba(255, 255, 255, 0.7);
}

.news-date {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #00CCFF;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 0.75rem;
    text-shadow: 0 0 10px rgba(0, 204, 255, 0.5);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    overflow-y: auto;
    backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.modal.closing {
    animation: fadeOut 0.3s ease forwards;
}

.modal.closing .modal-content,
.modal.closing .modal-article-view {
    animation: slideDown 0.3s ease forwards;
}

.modal-content {
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
}

.modal-close:hover {
    color: #ffffff;
    background: rgba(255, 68, 68, 0.15);
    border-color: rgba(255, 68, 68, 0.3);
    transform: scale(1.05);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.875rem;
    color: #ffffff;
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(0, 204, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 204, 255, 0.2);
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #00CCFF 0%, #0099CC 100%);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 204, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Article Modal Styles */
.modal-article-view {
    max-width: 920px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 0;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.article-modal-image {
    width: calc(100% + 6rem);
    margin: -3rem -3rem 2rem -3rem;
    max-height: 400px;
    object-fit: cover;
    border-radius: 0;
}

.article-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 1rem;
}

.article-header-row .news-category {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 204, 255, 0.2);
    border: 1px solid rgba(0, 204, 255, 0.3);
    color: #00CCFF;
}

.article-meta-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.article-author {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.article-date {
    color: rgba(255, 255, 255, 0.4);
}

.btn-copy-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 204, 255, 0.1);
    border: 1px solid rgba(0, 204, 255, 0.3);
    color: #00CCFF;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    min-width: 120px;
    justify-content: center;
}

.btn-copy-link:hover {
    background: rgba(0, 204, 255, 0.2);
    border-color: rgba(0, 204, 255, 0.5);
    transform: translateY(-1px);
}

.btn-copy-link.copied {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    color: #22c55e;
    min-width: 110px;
}

.btn-copy-link svg {
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-copy-link span {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.article-modal-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 2rem 0;
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.article-modal-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.article-modal-meta .news-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.article-modal-meta .news-author span {
    font-weight: 500;
}

.article-modal-meta .news-date {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.article-modal-meta .news-category {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, rgba(0, 204, 255, 0.15), rgba(0, 204, 255, 0.05));
    border: 1px solid rgba(0, 204, 255, 0.2);
    color: #00CCFF;
}

.article-modal-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0;
    margin-bottom: 3rem;
    font-weight: 400;
}

.article-modal-content p {
    margin-bottom: 1.5rem;
}

.article-modal-content br {
    display: block;
    content: "";
    margin-bottom: 0.5rem;
}

/* Reactions */
.article-reactions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reaction-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.reaction-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.reaction-btn.active {
    background: rgba(0, 204, 255, 0.1);
    border-color: rgba(0, 204, 255, 0.3);
    color: #00CCFF;
}

.like-btn:hover {
    border-color: rgba(34, 197, 94, 0.4);
    color: rgba(34, 197, 94, 0.9);
}

.like-btn.active {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

.dislike-btn:hover {
    border-color: rgba(239, 68, 68, 0.4);
    color: rgba(239, 68, 68, 0.9);
}

.dislike-btn.active {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.reaction-count {
    min-width: 24px;
    text-align: center;
}

/* Comments Section */
.comments-section {
    margin-top: 3rem;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1.5rem 0;
}

.comment-form {
    margin-bottom: 2rem;
}

.login-prompt {
    background: rgba(0, 204, 255, 0.05);
    border: 1px solid rgba(0, 204, 255, 0.2);
    padding: 1.5rem;
    border-radius: 0;
    text-align: center;
    margin-bottom: 2rem;
}

.login-prompt p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.login-prompt a {
    color: #00CCFF;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-prompt a:hover {
    color: #00E5FF;
    text-decoration: underline;
}

.comment-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    color: #ffffff;
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    border-radius: 0;
    resize: vertical;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.comment-form textarea:focus {
    outline: none;
    border-color: rgba(0, 204, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 204, 255, 0.1);
}

.btn-post-comment {
    background: linear-gradient(135deg, #00CCFF 0%, #0099CC 100%);
    color: #000;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    border-radius: 0;
}

.btn-post-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 204, 255, 0.4);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem;
    border-radius: 0;
    transition: none;
    backdrop-filter: blur(8px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comment-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comment-author {
    font-weight: 600;
    color: #00CCFF;
    font-size: 0.95rem;
}

.comment-date {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.btn-delete-comment {
    background: rgba(255, 70, 70, 0.1);
    border: 1px solid rgba(255, 70, 70, 0.3);
    color: #ff4646;
    font-size: 1.5rem;
    width: 28px;
    height: 28px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    font-weight: 600;
}

.btn-delete-comment:hover {
    background: rgba(255, 70, 70, 0.2);
    border-color: rgba(255, 70, 70, 0.5);
    transform: scale(1.05);
}

.comment-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.no-comments {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    padding: 2rem;
}

/* Scrollbar styling for modal */
.modal-article-view::-webkit-scrollbar {
    width: 10px;
}

.modal-article-view::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    margin: 12px 0;
}

.modal-article-view::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0, 204, 255, 0.3), rgba(0, 204, 255, 0.15));
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.modal-article-view::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(0, 204, 255, 0.5), rgba(0, 204, 255, 0.25));
    background-clip: padding-box;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-header h1 {
        font-size: 2.5rem;
    }

    .news-container {
        padding: 100px 1rem 60px;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }

    .modal-article-view {
        max-width: 95%;
        padding: 2rem 1.5rem;
    }

    .article-modal-image {
        width: calc(100% + 3rem);
        margin: -2rem -1.5rem 2rem -1.5rem;
    }

    .article-modal-title {
        font-size: 2rem;
    }

    .article-modal-content {
        font-size: 1rem;
    }

    .article-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .article-reactions {
        flex-wrap: wrap;
    }

    .reaction-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .news-header h1 {
        font-size: 2rem;
    }

    .news-header p {
        font-size: 1rem;
    }

    .btn-create-news {
        width: 100%;
    }

    .article-modal-title {
        font-size: 1.75rem;
    }

    .article-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .reaction-btn {
        font-size: 0.9rem;
        padding: 0.65rem 1.25rem;
    }

    .comment-form textarea {
        font-size: 0.9rem;
    }
}
