/**
 * News Module CSS - Spyral Theme
 * WoW-style news articles styling
 */

/* ========== News Header ========== */
.news-header {
    margin: 0 0 20px 0;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    box-shadow: 
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 15px rgba(0, 102, 204, 0.1),
        0 0 10px rgba(0, 0, 0, 0.5);
}

.news-header h3.header-text {
    font-family: Franklin, sans-serif;
    font-size: 24px;
    color: #c8d9e8;
    text-shadow: 0 0 8px rgba(0, 102, 204, 0.6), 0 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
    font-weight: bold;
}

.news-header h3.header-text span {
    color: #f6c85c;
    text-shadow: 0 0 8px rgba(246, 200, 92, 0.5), 0 2px 4px rgba(0, 0, 0, 0.8);
}

.news-header .nice_button {
    background: linear-gradient(180deg, rgba(102, 204, 255, 0.15) 0%, rgba(102, 204, 255, 0.05) 100%);
    color: #66ccff;
    border: 1px solid rgba(102, 204, 255, 0.3);
    text-shadow: 0 0 4px rgba(102, 204, 255, 0.4);
    box-shadow: 
        inset 0 2px 0 rgba(255, 255, 255, 0.04),
        inset 0 0 12px rgba(102, 204, 255, 0.08),
        0 0 8px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.news-header .nice_button:hover {
    border-color: rgba(102, 204, 255, 0.6);
    box-shadow: 
        inset 0 2px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 20px rgba(102, 204, 255, 0.15),
        0 0 15px rgba(102, 204, 255, 0.3);
    color: #99e6ff;
}

/* ========== News Article ========== */
article.news-article {
    margin-bottom: 25px;
    padding: 20px;
    background: 
        radial-gradient(ellipse at top, rgba(0, 102, 204, 0.03) 0%, rgba(0, 0, 0, 0.1) 100%),
        rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: 5px;
    box-shadow: 
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 0 20px rgba(0, 102, 204, 0.05),
        0 0 15px rgba(0, 0, 0, 0.4);
    position: relative;
    transition: all 0.3s ease;
}

article.news-article[glow] {
    overflow: visible;
}

article.news-article[glow] > [glow] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

article.news-article:hover {
    background: 
        radial-gradient(ellipse at top, rgba(0, 102, 204, 0.08) 0%, rgba(0, 0, 0, 0.1) 100%),
        rgba(0, 0, 0, 0.35);
    border-color: rgba(0, 102, 204, 0.4);
    box-shadow: 
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 25px rgba(0, 102, 204, 0.1),
        0 0 20px rgba(102, 204, 255, 0.2);
}

article.news-article:hover [glow] {
    opacity: 1;
}

/* ========== Article Head ========== */
.article-head {
    margin-bottom: 15px;
}

.article-title {
    font-size: 18px;
    font-family: Franklin, sans-serif;
    font-weight: bold;
    margin-bottom: 8px;
}

.article-title a {
    color: #c8d9e8;
    text-decoration: none;
    transition: color 0.3s ease;
    text-shadow: 0 0 4px rgba(0, 102, 204, 0.3);
}

.article-title a:hover {
    color: #f6c85c;
    text-shadow: 0 0 8px rgba(246, 200, 92, 0.6), 0 0 12px rgba(0, 102, 204, 0.4);
}

.article-metadata {
    font-size: 12px;
    color: #8a9my;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
}

.article-metadata a {
    color: #66ccff;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.article-metadata a:hover {
    color: #99e6ff;
    text-shadow: 0 0 4px rgba(102, 204, 255, 0.6);
}

.article-metadata time {
    color: #a0aeb8;
}

/* ========== Article Body ========== */
.article-body {
    margin: 15px 0;
}

.article-content {
    font-size: 13px;
    line-height: 1.6;
    color: #c8c8c8;
    word-break: break-word;
}

.article-content p {
    margin: 0 0 10px 0;
}

.article-content p:last-child {
    margin-bottom: 0;
}

/* ========== Article Footer ========== */
.article-foot {
    margin-top: 15px;
    text-align: right;
}

.article-foot .nice_button,
.btn-readmore {
    display: inline-block;
    padding: 8px 15px;
    background: linear-gradient(180deg, rgba(102, 204, 255, 0.2) 0%, rgba(102, 204, 255, 0.05) 100%);
    border: 1px solid rgba(102, 204, 255, 0.4);
    color: #66ccff;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 3px;
    box-shadow: 
        inset 0 2px 0 rgba(255, 255, 255, 0.04),
        inset 0 0 12px rgba(102, 204, 255, 0.08),
        0 0 8px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    text-shadow: 0 0 2px rgba(102, 204, 255, 0.4);
}

.article-foot .nice_button:hover,
.btn-readmore:hover {
    background: linear-gradient(180deg, rgba(102, 204, 255, 0.4) 0%, rgba(102, 204, 255, 0.15) 100%);
    border-color: rgba(102, 204, 255, 0.8);
    color: #99e6ff;
    box-shadow: 
        inset 0 2px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 20px rgba(102, 204, 255, 0.15),
        0 0 15px rgba(102, 204, 255, 0.4);
    text-shadow: 0 0 4px rgba(102, 204, 255, 0.8);
}

/* ========== Article Thumbnail ========== */
[thumbnail] {
    margin-bottom: 15px;
}

.article-thumbnail {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(0, 0, 0, 0.6);
}

.article-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.article-thumbnail:hover img {
    transform: scale(1.05);
}

.news-carousel {
    position: relative;
}

.article-thumbnail iframe {
    display: block;
    border: none;
}

/* ========== Divider ========== */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 204, 255, 0.3), transparent);
    margin: 15px 0;
}

/* ========== Comments Section ========== */
.news-comments {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(102, 204, 255, 0.2);
}

/* ========== Pagination ========== */
.pagination {
    margin: 30px 0;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 6px 10px;
    margin: 0 3px;
    background: rgba(0, 0, 0, 0.3);
    color: #66ccff;
    border: 1px solid rgba(102, 204, 255, 0.2);
    text-decoration: none;
    font-size: 12px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: rgba(102, 204, 255, 0.15);
    border-color: rgba(102, 204, 255, 0.5);
    color: #99e6ff;
    box-shadow: 0 0 8px rgba(102, 204, 255, 0.3);
}

.pagination .current,
.pagination .active {
    background: rgba(102, 204, 255, 0.25);
    border-color: rgba(102, 204, 255, 0.6);
    color: #99e6ff;
    font-weight: bold;
    cursor: default;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .article-thumbnail {
        margin-bottom: 15px;
    }

    .article-title {
        font-size: 16px;
    }

    .article-metadata {
        font-size: 11px;
    }

    .article-content {
        font-size: 12px;
    }
}
