/* =====================================================
   NUGGETS – index layout
   Einbinden: /assets/css/nuggets.css
   ===================================================== */

.nuggets-wrapper {
    width: 90rem;
    max-width: 100%;
    margin: 0 auto;
}

/* Header */
.nuggets-header {
    margin-bottom: 2rem;
}

.nuggets-header h1 {
    margin-bottom: 0.5rem;
}

.nuggets-subtitle {
    font-size: 1.6rem;
    color: #555;
    margin-top: 0;
}

/* Filter + Suche */
.nugget-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.nugget-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.nugget-search input {
    font-family: inherit;
    font-size: 1.4rem;
    padding: 0.5rem 1.2rem;
    border: 1px solid #cccccc;
    background: #ffffff;
    color: #444;
    outline: none;
    transition: border-color 0.2s;
}

.nugget-search input:focus {
    border-color: #0094ff;
}

.nugget-tag {
    font-family: inherit;
    font-size: 1.4rem;
    padding: 0.5rem 1.4rem;
    border: 1px solid #cccccc;
    border-radius: 0;
    background: #ffffff;
    color: #444;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nugget-tag:hover {
    border-color: #0094ff;
    color: #0094ff;
}

.nugget-tag.active {
    background: #0094ff;
    border-color: #0094ff;
    color: #ffffff;
}

/* Card Grid – 2 Spalten */
.nugget-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Card */
.nugget-card {
    display: flex;
    flex-direction: column;
}

.nugget-inner {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

/* Body-Inhalte */
.nugget-description {
    flex: 1;
}

.nugget-bottom {
	text-align: right;
    margin-top: 1rem;
}

/* Thumb – gleicher grauer Gradient wie Startseite */
.nugget-thumb {
    padding: 1.2rem 1.6rem;
    background: linear-gradient(180deg, #D8D8D8, #f5f5f5);
    position: relative;
    overflow: hidden;
}

.nugget-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.nt-label {
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0,0,0,0.20);
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

/* Kategorie-Farben nur auf dem Label-Text */
.nt-css  .nt-label { color: #0094ff; }
.nt-html .nt-label { color: #E54222; }
.nt-js   .nt-label { color: #c49a00; }
.nt-php  .nt-label { color: #6a3fbf; }

/* Body */
.nugget-body {
    background: #f5f5f5;
    padding: 1.4rem 1.6rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nugget-body h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #0099ff;
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.nugget-body p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #333;
    flex: 1;
    margin: 0 0 1.2rem;
}

.nugget-body code {
    font-size: 1.4rem;
}



/* =====================================================
   MEDIA QUERIES
   ===================================================== */

@media screen and (max-width: 700px) {
    .nugget-list {
        grid-template-columns: 1fr;
    }
}
