:root {
    --green: #7cb342;
    --green-light: #c5e1a5;
    --green-pale: #e8f5e9;
    --blue: #4a8fe7;
    --blue-light: #bbdefb;
    --blue-pale: #e3f2fd;
    --bg: #faf9f6;
    --bg-warm: #f5f3ee;
    --text: #2d2d2d;
    --text-mid: #6b7b6b;
    --text-light: #9ca3a0;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ni-page {
    position: relative;
    padding: 40px 20px 80px;
    min-height: 100vh;
    margin-top: 40px;
    background: transparent;
}

.ni-bg-decor {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.ni-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.ni-shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--blue-pale), transparent 70%);
    top: -150px;
    right: -150px;
}

.ni-shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--green-pale), transparent 70%);
    bottom: -100px;
    left: -150px;
}

.ni-container {
    max-width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Header & Search */
.ni-header {
    margin-bottom: 48px;
    text-align: center;
    animation: niFadeDown 0.5s ease both;
}

@keyframes niFadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ni-header h1 {
    font-size: 40px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.ni-header p {
    color: var(--text-mid);
    font-size: 16px;
    margin-bottom: 32px;
}

.ni-search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 12px;
}

.ni-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e8e5e0;
    border-radius: 14px;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
    background: var(--white);
}

    .ni-input:focus {
        border-color: var(--green);
        box-shadow: 0 4px 15px rgba(124, 179, 66, 0.15);
    }

.ni-btn-search {
    padding: 14px 24px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

    .ni-btn-search:hover {
        background: #689f38;
        transform: translateY(-2px);
    }

/* Grid */
.ni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(390px, 1fr));
    gap: 28px;
}

/* Card */
.ni-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: niCardIn 0.5s ease both;
}

@keyframes niCardIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ni-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border-color: transparent;
}

.ni-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ni-card-img {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.ni-card-img-placeholder {
    background: var(--blue-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    opacity: 0.7;
}

.ni-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ni-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.ni-likes {
    color: var(--green);
    font-weight: 600;
}

.ni-card-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.3;
}

    .ni-card-title a {
        color: inherit;
        text-decoration: none;
        transition: color 0.2s;
    }

.ni-card:hover .ni-card-title {
    color: var(--green);
}

.ni-card-desc {
    color: var(--text-mid);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ni-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    z-index: 2;
    position: relative;
}

.ni-card:hover .ni-read-more {
    color: var(--green);
    transform: translateX(4px);
}

/* Empty State */
.ni-empty-state {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.ni-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.ni-empty-state h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}

.ni-empty-state p {
    color: var(--text-mid);
    font-size: 16px;
}


.btn-create{
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

    .btn-create:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
    }
    /* Responsive */
    @media (max-width: 768px) {
        .ni-grid {
            grid-template-columns: 1fr;
        }

        .ni-header h1 {
            font-size: 32px;
        }

        .ni-search-form {
            flex-direction: column;
        }

        .ni-btn-search {
            width: 100%;
            justify-content: center;
        }
    }

    @media (max-width: 480px) {

        .ni-container{
            margin-top: 25px;
        }

        .ni-page {
            padding: 20px 12px;
        }

        .ni-card-img {
            height: 160px;
        }

        .ni-card-body {
            padding: 20px;
        }

        .ni-card-title {
            font-size: 18px;
        }
    }
