/* ==========================================================================
   FRONT PAGE STYLES - ORGANIZED
   ========================================================================== */

/* Base Layout & Variables
   ========================================================================== */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-shadow: 0 8px 25px rgba(0,0,0,0.08);
    --card-shadow-hover: 0 15px 35px rgba(0,0,0,0.15);
    --transition-smooth: all 0.3s ease;
    --transition-slow: all 0.4s ease;
}

/* Slider Wrapper & Container
   ========================================================================== */
.prima-pagina-slider-wrapper {
    position: relative;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 40px;
    overflow: hidden;
}

.prima-pagina-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    background: #000;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Slide Components
   ========================================================================== */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
}

.slide.active {
    opacity: 1;
}

/* Slide Image Section
   ========================================================================== */
.slide-image {
    width: 65%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.slide-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 2;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.slide.active .slide-image img {
    transform: scale(1.02);
}

/* Slide Content Section
   ========================================================================== */
.slide-content {
    width: 35%;
    padding: 60px 90px 60px 50px;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.slide-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='m0 40l40-40h-40v40zm40 0v-40h-40l40 40z'/%3E%3C/g%3E%3C/svg%3E") repeat;
    z-index: 0;
}

.slide-content > * {
    position: relative;
    z-index: 1;
}

.slide-content h2 {
    margin: 0 0 20px 0;
    font-size: 2.2em;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.slide-content h2 a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.slide-content h2 a:hover {
    color: rgba(255,255,255,0.9);
}

.slide-content p {
    margin: 0 0 30px 0;
    line-height: 1.7;
    font-size: 1.1em;
    opacity: 0.95;
}

.read-more {

    color: white;
    padding: 12px 24px;
    text-decoration: none;
text-align: right !important;
    font-weight: 500;
    transition: var(--transition-smooth);

}

.read-more:hover {

}

/* Navigation Elements
   ========================================================================== */

/* Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
    color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slider-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.slider-prev {
    left: 30px;
}

.slider-next {
    right: 30px;
}

/* Navigation Dots */
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.nav-dot.active,
.nav-dot:hover {
    background: white;
    border-color: white;
    transform: scale(1.2);
}

/* Article Sections
   ========================================================================== */
.prima-pagina-section {
    margin: 0;
    width: 1200px !important;
    max-width: 1200px !important;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Article Grid & Cards
   ========================================================================== */
.articole-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.articol-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-slow);
    border: 1px solid rgba(0,0,0,0.05);
}

.articol-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

/* Card Image */
.card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.articol-card:hover .card-image::before {
    opacity: 1;
}

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

.articol-card:hover .card-image img {
    transform: scale(1.08);
}

.no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
    font-size: 0.9em;
}

/* Card Content */
.card-content {
    padding: 25px;
}

.card-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    line-height: 1.4;
    font-weight: 600;
}

.card-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-content h3 a:hover {
    color: #667eea;
}

.card-content p {
    margin: 0 0 20px 0;
    line-height: 1.6;
    color: #666;
    font-size: 0.95em;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: #999;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Large Tablets & Small Desktops (1024px and down)
   ========================================================================== */
@media (max-width: 1024px) {
    .slide-content {
        padding: 40px 30px;
    }

    .slide-content h2 {
        font-size: 1.8em;
    }

    .slider-arrow {
        width: 45px;
        height: 45px;
    }

    .slider-prev {
        left: 20px;
    }

    .slider-next {
        right: 20px;
    }
}

/* Tablets (768px and down)
   ========================================================================== */
@media (max-width: 768px) {
    /* Slider adjustments */
    .prima-pagina-slider {
        height: 60vh;
        min-height: 400px;
    }

    .slide {
        flex-direction: column;
    }

    .slide-image,
    .slide-content {
        width: 100%;
    }

    .slide-image {
        height: 60%;
    }

    .slide-content {
        height: 40%;
        padding: 20px;
        justify-content: flex-start;
    }

    .slide-content h2 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    .slide-content p {
        font-size: 0.95em;
        margin-bottom: 15px;
    }

    /* Navigation adjustments */
    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .slider-prev {
        left: 15px;
    }

    .slider-next {
        right: 15px;
    }

    .slider-nav {
        bottom: 20px;
    }

    /* Content sections */
    .articole-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 2em;
    }
}

/* Mobile Phones (480px and down)
   ========================================================================== */
@media (max-width: 480px) {
    /* Section layout */
    .prima-pagina-section {
        margin: 0;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Slider adjustments */
    .prima-pagina-slider {
        height: 50vh;
        min-height: 350px;
    }

    .slide-content {
        padding: 15px;
    }

    .slide-content h2 {
        font-size: 1.3em;
    }

    .section-title {
        font-size: 1.8em;
    }

    /* Navigation adjustments */
    .slider-arrow {
        width: 35px;
        height: 35px;
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }
}

/* Modern Section Header Styles */
.section-header {
    margin-bottom: 50px;
    position: relative;
}

.section-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 16px;
    color: white;
    flex-shrink: 0;
}

.section-text {
    flex: 1;
}

.section-title {
    margin: 0 0 8px 0;
    font-size: 2.2em;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.3;
}

.section-subtitle {
    margin: 0;
    font-size: 1.1em;
    color: #6b7280;
    font-weight: 400;
}

.section-line {
    height: 2px;
    background: linear-gradient(90deg, var(--primary-gradient), transparent);
    border-radius: 1px;
    max-width: 200px;
}

/* Enhanced Article Cards */
.articol-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-slow);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.articol-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}

/* Image Enhancements */
.image-link {
    position: relative;
    display: block;
    overflow: hidden;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-link:hover .image-overlay {
    opacity: 1;
}

.read-icon {
    color: white;
    stroke-width: 2;
}

.no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    gap: 12px;
}

.no-image svg {
    opacity: 0.6;
}

.no-image span {
    font-size: 0.9em;
    font-weight: 500;
}

/* Content Enhancements */
.card-title {
    margin: 0 0 12px 0;
    font-size: 1.25em;
    line-height: 1.4;
    font-weight: 600;
}

.card-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #667eea;
}

.card-excerpt {
    margin: 0 0 20px 0;
    line-height: 1.6;
    color: #6b7280;
    font-size: 0.95em;
}

/* Modern Meta Information */
.card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85em;
    color: #9ca3af;
}

.meta-icon {
    opacity: 0.7;
}

/* Read More Link */
.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.3s ease;
    margin-top: auto;
}

.read-more-link:hover {
    background: #667eea;
    color: white;
    transform: translateX(4px);
}

.read-more-link svg {
    transition: transform 0.3s ease;
}

.read-more-link:hover svg {
    transform: translateX(2px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-state p {
    font-size: 1.1em;
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-header-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .section-icon {
        width: 50px;
        height: 50px;
    }

    .section-title {
        font-size: 1.8em;
    }

    .section-subtitle {
        font-size: 1em;
    }

    .card-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.6em;
    }

    .section-icon {
        width: 45px;
        height: 45px;
    }
}

/* Modern Section Header Styles */
.section-header {
    margin-bottom: 50px;
    position: relative;
}

.section-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.section-text {
    flex: 1;
}

.section-title {
    margin: 0 0 8px 0;
    font-size: 2.2em;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.3;
}

.section-subtitle {
    margin: 0;
    font-size: 1.1em;
    color: #6b7280;
    font-weight: 400;
}

.section-line {
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, transparent 100%);
    border-radius: 2px;
    max-width: 200px;
}

/* Enhanced Article Cards */
.articol-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-slow);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.articol-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}

/* Image Enhancements */
.image-link {
    position: relative;
    display: block;
    overflow: hidden;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-link:hover .image-overlay {
    opacity: 1;
}

.read-icon {
    color: white;
    stroke-width: 2;
}

.no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    gap: 12px;
}

.no-image svg {
    opacity: 0.6;
}

.no-image span {
    font-size: 0.9em;
    font-weight: 500;
}

/* Content Enhancements */
.card-title {
    margin: 0 0 12px 0;
    font-size: 1.25em;
    line-height: 1.4;
    font-weight: 600;
}

.card-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #667eea;
}

.card-excerpt {
    margin: 0 0 20px 0;
    line-height: 1.6;
    color: #6b7280;
    font-size: 0.95em;
}

/* Modern Meta Information */
.card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85em;
    color: #9ca3af;
}

.meta-icon {
    opacity: 0.7;
}

/* Read More Link */
.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.3s ease;
    margin-top: auto;
}

.read-more-link:hover {
    background: #667eea;
    color: white;
    transform: translateX(4px);
}

.read-more-link svg {
    transition: transform 0.3s ease;
}

.read-more-link:hover svg {
    transform: translateX(2px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-state p {
    font-size: 1.1em;
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-header-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .section-icon {
        width: 50px;
        height: 50px;
    }

    .section-title {
        font-size: 1.8em;
    }

    .section-subtitle {
        font-size: 1em;
    }

    .card-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.6em;
    }

    .section-icon {
        width: 45px;
        height: 45px;
    }
}

/* Clean Minimalist Section Styles */
.prima-pagina-section {
    margin: 0;
    width: 1200px;
    max-width: 1200px;
}

.section-header {
    margin-bottom: 40px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.02em;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: #e5e5e5;
}

/* Articles Container */
.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

/* Article Cards */
.article-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f0f0f0;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Image Container */
.card-image-container {
    height: 200px;
    overflow: hidden;
    background: #f8f8f8;
}

.image-link {
    display: block;
    height: 100%;
}

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

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

.placeholder-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    color: #999;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Card Content */
.card-body {
    padding: 24px;
}

.article-title {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 600;
}

.article-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: #667eea;
}

.article-excerpt {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.6;
}

/* Article Meta */
.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #999;
    margin-top: auto;
}

.publish-date {
    color: #777;
}

.meta-separator {
    color: #ddd;
}

.comment-count {
    color: #777;
}

/* Empty State */
.empty-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .prima-pagina-section {
        width: 100% !important;
        max-width: 100% !important;
        margin: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .articles-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .card-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }

    .card-image-container {
        height: 180px;
    }

    .card-body {
        padding: 16px;
    }

    .article-title {
        font-size: 1.1rem;
    }
}

section {
    padding: 0 !important;
    width: 100%;
}