/* ---------------------------------------------------------
   Chiplag v1.6 — Enhanced Core Styles
   --------------------------------------------------------- */

.chiplag-wrapper {
    margin: 20px 0;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

/* ---------------------------------------------------------
   Title
   --------------------------------------------------------- */

.chiplag-title {
    margin-bottom: 20px;
    font-size: 1.6em;
    font-weight: 600;
    line-height: 1.3;
}

/* ---------------------------------------------------------
   Search Box
   --------------------------------------------------------- */

.chiplag-search {
    width: 100%;
    max-width: 350px;
    padding: 10px 14px;
    margin-bottom: 20px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chiplag-search:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.15);
    outline: none;
}

/* ---------------------------------------------------------
   List Layouts
   --------------------------------------------------------- */

.chiplag-list {
    display: grid;
    gap: 18px;
}

.chiplag-wrapper.layout-one .chiplag-list {
    grid-template-columns: 1fr;
}

.chiplag-wrapper.layout-two .chiplag-list {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ---------------------------------------------------------
   Item Card
   --------------------------------------------------------- */

.chiplag-item {
    padding: 16px 18px;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    background: #fafafa;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chiplag-item:hover {
    border-color: #d5d5d5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ---------------------------------------------------------
   Domain
   --------------------------------------------------------- */

.chiplag-domain a {
    font-size: 1.15em;
    font-weight: 600;
    text-decoration: none;
    color: #0073aa;
    word-break: break-all;
}

.chiplag-domain a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------
   Status + Updated
   --------------------------------------------------------- */

.chiplag-status {
    margin-top: 4px;
    font-size: 0.92em;
    color: #444;
}

.chiplag-updated {
    margin-top: 2px;
    font-size: 0.85em;
    color: #777;
}

/* ---------------------------------------------------------
   Add Friend Button
   --------------------------------------------------------- */

.chiplag-add-friend {
    margin-top: 12px;
    padding: 8px 14px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    text-align: center;
    transition: background 0.2s ease, transform 0.1s ease;
}

.chiplag-add-friend:hover {
    background: #005f8d;
}

.chiplag-add-friend:active {
    transform: scale(0.97);
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 600px) {
    .chiplag-wrapper.layout-two .chiplag-list {
        grid-template-columns: 1fr;
    }
}
