/* News Page Styles */

.news-container {
    max-width: 100%;
    margin: 0 auto;
}

.news-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
}

.news-category-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(236, 151, 45, 0.2);
    color: #EC972D;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid rgba(236, 151, 45, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.news-category-badge:hover {
    background: rgba(236, 151, 45, 0.3);
    border-color: #EC972D;
    box-shadow: 0 0 10px rgba(236, 151, 45, 0.2);
}

.quick-cat-select {
    background: transparent;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    outline: none;
    padding: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    margin: -6px -16px;
    padding: 6px 16px;
}


.quick-cat-select option {
    background: #1a1a1a;
    color: #E7E0C2;
    text-transform: none;
    padding: 10px;
}


.news-category-filter {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.news-category-filter a {
    color: #E7E0C2;
    text-decoration: none;
    padding: 6px 15px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    transition: all 0.3s ease;
}

.news-category-filter a:hover {
    border-color: #EC972D;
    color: #EC972D;
}

.news-category-filter a.active {
    background: #EC972D;
    color: #000;
    border-color: #EC972D;
    font-weight: bold;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 102, 0, 0.3);
}

.news-title,
.news-card h2 {
    font-size: 22px;
    font-weight: bold;
    color: #EC972D;
    margin-bottom: 15px;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    padding-right: 160px; /* Space for category badge */
}

.news-title:hover {
    color: #FFAA44;
    text-decoration: underline;
}

.news-date {
    color: #817028;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
    padding-right: 160px; /* Space for category badge */
}

.news-about {
    color: #E7E0C2;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: block;
}

.news-content {
    color: #E7E0C2;
    font-size: 13px;
    line-height: 1.7;
    margin-top: 15px;
}

.news-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 102, 0, 0.3), transparent);
    margin: 30px 0;
}

.news-navigation {
    text-align: center;
    margin: 30px 0;
}

.news-back-link {
    color: #666666;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: inline-block;
}

.news-back-link:hover {
    color: #EC972D;
    border-color: #EC972D;
    background: rgba(236, 151, 45, 0.1);
}

.no-news-message {
    text-align: center;
    color: #E7E0C2;
    font-style: italic;
    padding: 50px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin: 20px 0;
}

.page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 102, 0, 0.2);
}

.page-header h1 {
    color: #FFFFFF;
    font-size: 28px;
    margin-bottom: 10px;
}

.page-subtitle {
    color: #E7E0C2;
    font-size: 13px;
}

.page-subtitle b {
    color: #FF6600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .news-title {
        font-size: 20px;
    }
    
    .news-content {
        font-size: 12px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .news-card {
        padding: 15px;
    }
    
    .news-title {
        font-size: 18px;
    }
    
    .news-about {
        font-size: 13px;
    }
}

/* Comments Styles */
.comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 102, 0, 0.2);
}

.comments-section h3 {
    color: #EC972D;
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: bold;
}

.comment-item {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-avatar {
    margin-right: 15px;
    flex-shrink: 0;
}

.comment-avatar img {
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
    padding: 2px;
    object-fit: cover;
    width: 50px;
    height: 91px; /* aspect ratio for skins is usually around 1:2 */
    object-position: top;
}

.comment-body {
    flex-grow: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 5px;
}

.comment-author {
    color: #FF6600;
    font-weight: bold;
    font-size: 15px;
}

.comment-date {
    color: #888;
    font-size: 11px;
}

.comment-text {
    color: #E7E0C2;
    font-size: 13px;
    line-height: 1.5;
}

.no-comments {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.comment-form {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
}

.comment-form h4 {
    color: #EC972D;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.comment-form textarea {
    width: calc(100% - 20px);
    height: 100px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #E7E0C2;
    padding: 12px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 15px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #EC972D;
}

.comment-form button {
    background: #EC972D;
    color: #000;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form button:hover {
    background: #FF6600;
    transform: translateY(-2px);
}

.login-to-comment {
    text-align: center;
    color: #E7E0C2;
    margin-top: 30px;
}

.login-to-comment a {
    color: #EC972D;
    text-decoration: none;
}

/* Admin News Styles */
.admin-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 102, 0, 0.2);
}

.admin-news-header h1 {
    color: #FFFFFF;
    font-size: 24px;
    margin: 0;
}

.btn-add-news {
    background: #EC972D;
    color: #000;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-add-news:hover {
    background: #FF6600;
    transform: translateY(-2px);
}

.admin-form-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #EC972D;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

.form-control {
    width: calc(100% - 24px);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #E7E0C2;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #EC972D;
    box-shadow: 0 0 10px rgba(236, 151, 45, 0.2);
}

select.form-control {
    width: 100%;
    cursor: pointer;
}

.date-selects {
    display: flex;
    gap: 10px;
}

.date-selects select {
    flex: 1;
}

.admin-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-save {
    background: #EC972D;
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-save:hover {
    background: #FF6600;
    transform: translateY(-2px);
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #E7E0C2;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-news-info {
    color: #888;
    font-size: 12px;
    margin-bottom: 20px;
    font-style: italic;
}

.admin-card-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.btn-edit-sm {
    color: #EC972D;
    text-decoration: none;
    font-size: 12px;
    border: 1px solid rgba(236, 151, 45, 0.3);
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-edit-sm:hover {
    background: rgba(236, 151, 45, 0.1);
    border-color: #EC972D;
}
