/* Styreportalen Page Styles */

/* Modern hero banner styles - identical to FAQ page */
.banner.modern-hero {
    position: relative;
    min-height: 60vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    overflow: hidden;
    margin-top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner.modern-hero .hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 8%), 
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 8%), 
                radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 8%),
                radial-gradient(circle at 70% 90%, rgba(255, 255, 255, 0.1) 0%, transparent 8%);
    background-size: 50px 50px, 70px 70px, 60px 60px, 80px 80px;
    animation: moveBg 30s linear infinite;
    opacity: 0.3;
    z-index: 1;
}

/* Floating particles animation */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: float-particle 15s infinite ease-in-out;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 12px;
    height: 12px;
    animation-duration: 25s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 70%;
    left: 80%;
    width: 10px;
    height: 10px;
    animation-duration: 22s;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    top: 30%;
    left: 90%;
    width: 6px;
    height: 6px;
    animation-duration: 18s;
    animation-delay: 2s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 20%;
    width: 15px;
    height: 15px;
    animation-duration: 20s;
    animation-delay: 3s;
}

.particle:nth-child(5) {
    top: 40%;
    left: 40%;
    width: 8px;
    height: 8px;
    animation-duration: 19s;
    animation-delay: 4s;
}

.particle:nth-child(6) {
    top: 60%;
    left: 60%;
    width: 10px;
    height: 10px;
    animation-duration: 23s;
    animation-delay: 5s;
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(50px, 50px);
    }
    50% {
        transform: translate(100px, -50px);
    }
    75% {
        transform: translate(-50px, 50px);
    }
}

@keyframes moveBg {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 100px 100px, -100px 100px, 100px -100px, -100px -100px;
    }
}

.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content.centered {
    text-align: center;
}

.hero-text {
    color: white;
}

.banner.modern-hero .hero-heading-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}

.banner.modern-hero .hero-heading-container h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin: 0;
}

.banner.modern-hero .hero-heading-container h2 {
    color: rgba(255, 255, 255, 0.85);
    font-size: 3.5rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin: 0;
}

.banner.modern-hero .hero-text p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Articles Grid Container */
.articles-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Article Card */
.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.article-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.article-card-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #666;
    backdrop-filter: blur(10px);
}

.article-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.article-card-author {
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-card-author i {
    color: #764ba2;
}

.article-card-stats {
    display: flex;
    gap: 15px;
    color: #888;
}

.article-card-stats i {
    margin-right: 4px;
}

.article-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.read-more-link {
    color: #667eea;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.article-card:hover .read-more-link {
    gap: 10px;
    color: #764ba2;
}

/* No Articles State */
.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-articles i {
    color: #ddd;
    margin-bottom: 20px;
}

.no-articles h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner.modern-hero .hero-heading-container h1,
    .banner.modern-hero .hero-heading-container h2 {
        font-size: 2.5rem;
    }
    
    .banner.modern-hero .hero-text p {
        font-size: 1.2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-card-title {
        font-size: 1.15rem;
    }
    
    .article-card-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .banner.modern-hero {
        min-height: 50vh;
    }
    
    .banner.modern-hero .hero-heading-container {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }
    
    .banner.modern-hero .hero-heading-container h1,
    .banner.modern-hero .hero-heading-container h2 {
        font-size: 2rem;
    }
    
    .banner.modern-hero .hero-text p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .articles-grid-container {
        padding: 0 15px 40px;
    }
    
    .article-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}