/* ========================================
   GLOBAL STYLES - Prefix: np-
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

body.np-rtl {
    direction: rtl;
    text-align: right;
}

/* Translation Overlay */
.np-translation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    flex-direction: column;
}

.np-translation-overlay.active {
    display: flex;
}

.np-translation-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: npSpin 0.8s linear infinite;
}

@keyframes npSpin {
    to {
        transform: rotate(360deg);
    }
}

.np-translation-text {
    color: #fff;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* ========================================
   NAVBAR STYLES - Prefix: np-
======================================== */

.np-navbar {
    background: #ffffff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.np-navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.np-logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.np-logo-icon {
    font-weight: bold;
    font-size: 1.4rem;
    letter-spacing: -2px;
}

.np-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.np-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.np-nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.np-nav-links li a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.np-nav-links li a:hover {
    color: #000;
    background-color: #e8e8e8;
}

.np-lang-dropdown {
    display: flex;
    gap: 0.5rem;
}

.np-lang-btn {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.np-lang-btn:hover {
    color: #000;
}

.np-lang-btn.np-lang-active {
    color: #000;
    font-weight: 500;
    background-color: #f0f0f0;
}

/* ========================================
   NEWS SECTION - Prefix: np-
======================================== */

.np-news-section {
    padding: 4rem 2rem;
    background: #f5f5f5;
    min-height: calc(100vh - 80px);
}

.np-news-container {
    max-width: 1400px;
    margin: 0 auto;
}

.np-news-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 3rem;
}

/* Cards Wrapper */
.np-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* News Card */
.np-news-card {
    display: flex;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    position: relative;
    width: 100%;
}

.np-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Card Image - Grayscale by default */
.np-card-image {
    width: 400px;
    min-width: 400px;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.np-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.np-card-image:hover img {
    filter: grayscale(0%); /* Remove grayscale on hover */
}

.np-news-card:hover .np-card-image {
    filter: grayscale(0%);
}

/* Gradient Backgrounds */
.np-gradient-1 {
    background: linear-gradient(135deg, #ff6b9d 0%, #c368f5 50%, #4a90e2 100%);
}

.np-gradient-2 {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 50%, #e17055 100%);
}

.np-gradient-3 {
    background: linear-gradient(135deg, #74b9ff 0%, #a29bfe 50%, #fd79a8 100%);
}

.np-gradient-4 {
    background: linear-gradient(135deg, #55efc4 0%, #00b894 50%, #00cec9 100%);
}

.np-gradient-5 {
    background: linear-gradient(135deg, #fab1a0 0%, #ff7675 50%, #fd79a8 100%);
}

.np-gradient-6 {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 50%, #5f27cd 100%);
}

/* Card Content */
.np-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.np-card-date {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 1rem;
    display: block;
}

.np-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.np-card-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.np-card-authors {
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Tags */
.np-card-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.np-tag {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    background: #f0f0f0;
    color: #666;
    transition: all 0.3s ease;
}

.np-tag-highlight {
    background: #e3f2fd;
    color: #4a90e2;
}

/* Arrow - Hidden by default */
.np-card-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: #4a90e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.np-news-card:hover .np-card-arrow {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   FOOTER STYLES - Prefix: np-
======================================== */

.np-footer {
    background: linear-gradient(135deg, #e8f5f0 0%, #a8dcc8 100%);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.np-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 200px;
    gap: 3rem;
    margin-bottom: 3rem;
}

.np-footer-logo {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
}

.np-footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.np-footer-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
}

.np-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.np-footer-column ul li {
    margin-bottom: 0.7rem;
}

.np-footer-column ul li a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.np-footer-column ul li a:hover {
    color: #000;
}

.np-footer-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.np-qr-code {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 0.5rem;
}

.np-qr-text {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.np-footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.np-footer-legal {
    display: flex;
    gap: 2rem;
}

.np-footer-legal a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.np-footer-legal a:hover {
    color: #000;
}

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

@media (max-width: 992px) {
    .np-menu-toggle {
        display: flex;
    }

    .np-nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .np-nav-links.np-menu-open {
        max-height: 400px;
    }

    .np-nav-links li {
        border-bottom: 1px solid #f0f0f0;
    }

    .np-nav-links li a {
        display: block;
        padding: 1rem 2rem;
    }

    .np-news-title {
        font-size: 2.5rem;
    }

    .np-news-card {
        flex-direction: column;
    }

    .np-card-image {
        width: 100% !important;
        min-width: 100% !important;
        height: 250px !important;
    }

    .np-card-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .np-footer-container {
        grid-template-columns: 1fr;
    }

    .np-footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .np-news-section {
        padding: 2rem 1rem;
    }

    .np-news-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .np-card-content {
        padding: 1.5rem;
    }

    .np-card-title {
        font-size: 1.3rem;
    }

    .np-card-image {
        height: 200px;
    }

    .np-footer-links {
        grid-template-columns: 1fr;
    }

    .np-footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .np-news-title {
        font-size: 1.8rem;
    }

    .np-card-title {
        font-size: 1.2rem;
    }

    .np-card-description,
    .np-card-authors {
        font-size: 0.85rem;
    }
}

.seed-nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.seed-nav-links li a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.seed-nav-links li a:hover {
    color: #000;
    background-color: #e8e8e8;
}

@media (max-width: 992px) {

    .seed-nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .seed-nav-links.seed-menu-open {
        max-height: 400px;
    }

    .seed-nav-links li {
        border-bottom: 1px solid #f0f0f0;
    }

    .seed-nav-links li a {
        display: block;
        padding: 1rem 2rem;
    }
}
