/* news-styles.css */

/* News Hero - Updated with your Hellfest banner */
.news-hero.site-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('../images/news-banner.png') center/cover no-repeat;
    padding: 120px 20px 60px;
    text-align: center;
    color: white;
    margin-top: 80px;
    height: var(--hero-height-desktop);
    min-height: var(--hero-height-desktop);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.news-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.news-hero .hero-content h2 {
    font-size: 3.5rem;
    font-family: 'Metal Mania', cursive;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: white;
}

.news-hero .hero-content p {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .news-hero.site-hero {
        height: var(--hero-height-mobile);
        min-height: var(--hero-height-mobile);
        padding: 100px 15px 40px;
    }
    
    .news-hero .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .news-hero .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .news-hero .hero-content h2 {
        font-size: 2rem;
    }
    
    .news-hero .hero-content p {
        font-size: 1.1rem;
    }
}

/* News Main */
.news-main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.news-main h1 {
    text-align: center;
    font-family: 'Metal Mania', cursive;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--text);
}

/* News Feed */
#news-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* News Card */
.news-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--input-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--paragraph-text);
    opacity: 0.8;
}

.news-date, .news-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
    line-height: 1.4;
}

.news-excerpt {
    color: var(--paragraph-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--secondary);
}

/* Add Article Form */
.add-article {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-top: 40px;
    border: 1px solid var(--input-border);
}

.add-article h3 {
    font-family: 'Metal Mania', cursive;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

#news-auth-msg {
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--input-border);
    border-radius: 5px;
    background: var(--input-bg);
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.submit-btn:hover:not(:disabled) {
    background: var(--secondary);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--text);
}

/* No Articles */
.no-articles {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.no-articles h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text);
}

.no-articles p {
    color: var(--paragraph-text);
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.error-message h3 {
    color: #ff6b6b;
    margin-bottom: 15px;
}

.error-message p {
    color: var(--text);
}

/* Article Page Styles */
.article-hero.site-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../images/hero-tattoo-banner.webp') center/cover no-repeat;
    padding: 120px 20px 60px;
    text-align: center;
    color: white;
    margin-top: 80px;
    height: var(--hero-height-desktop);
    min-height: var(--hero-height-desktop);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.article-main {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.article-container {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 40px;
    border: 1px solid var(--input-border);
}

.back-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 30px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--secondary);
}

.article-header {
    margin-bottom: 30px;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--paragraph-text);
    font-size: 0.9rem;
    opacity: 0.8;
}

.article-title {
    font-size: 2.5rem;
    font-family: 'Metal Mania', cursive;
    margin-bottom: 20px;
    color: var(--primary);
    line-height: 1.3;
}

.article-excerpt {
    font-size: 1.1rem;
    color: var(--paragraph-text);
    line-height: 1.6;
    margin-bottom: 30px;
    font-style: italic;
    padding-left: 20px;
    border-left: 3px solid var(--primary);
}

.article-image-container {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
}

.article-image {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2, .article-body h3 {
    font-family: 'Metal Mania', cursive;
    margin: 40px 0 20px;
    color: var(--primary);
}

.article-body h2 {
    font-size: 1.8rem;
}

.article-body h3 {
    font-size: 1.5rem;
}

.article-footer {
    margin-top: 50px;
    text-align: center;
}

.article-footer .btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.article-footer .btn:hover {
    background: var(--secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .article-hero .hero-content h2 {
        font-size: 2.5rem;
    }
    
    #news-feed {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-container {
        padding: 20px;
    }
    
    .news-main,
    .article-main {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .article-hero.site-hero {
        padding: 100px 15px 40px;
        height: var(--hero-height-mobile);
        min-height: var(--hero-height-mobile);
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
}