/* jar/style.css — skeuomorphic OC Jar page */

.jar-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
}

.jar-header {
    margin-bottom: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(165deg, #f7f0e4 0%, #dfd3c2 45%, #c9b8a3 100%);
    border: 2px solid #8b7355;
    border-radius: 16px;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.55),
        0 6px 16px rgba(0, 0, 0, 0.18);
}

.jar-header h1 {
    font-family: "Baloo 2", sans-serif;
    margin: 0 0 0.35rem 0;
    color: #3d3428;
}

.jar-sub {
    margin: 0;
    color: #5c4a3a;
    font-size: 0.95rem;
}

.jar-locked {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(160deg, #fff8e7, #fde68a);
    border: 2px solid #d97706;
    border-radius: 14px;
}

.jar-locked .material-icons {
    font-size: 2.5rem;
    color: #d97706;
    vertical-align: middle;
}

.jar-locked a {
    color: #92400e;
    font-weight: bold;
}

.jar-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.jar-search-icon {
    color: #6b5b4b;
}

#jar-search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    border: 2px solid #a89888;
    background: linear-gradient(180deg, #fffef9, #f3ebe4);
    font-family: inherit;
}

.jar-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

@media (min-width: 900px) {
    .jar-stage {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
    }
}

.jar-glass {
    position: relative;
    flex-shrink: 0;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.2));
}

.jar-neck {
    width: 72px;
    height: 22px;
    margin: 0 auto -4px;
    background: linear-gradient(90deg, rgba(200, 230, 255, 0.35), rgba(255, 255, 255, 0.65), rgba(200, 230, 255, 0.35));
    border: 2px solid rgba(120, 160, 190, 0.5);
    border-radius: 8px 8px 2px 2px;
}

.jar-body {
    width: 220px;
    height: 280px;
    border-radius: 40% 40% 38% 38%;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.85) 0%, transparent 45%),
        linear-gradient(175deg, rgba(200, 235, 255, 0.45) 0%, rgba(180, 210, 240, 0.25) 50%, rgba(150, 190, 230, 0.35) 100%);
    border: 3px solid rgba(100, 140, 180, 0.45);
    box-shadow:
        inset 0 0 25px rgba(255, 255, 255, 0.6),
        inset -8px -12px 20px rgba(80, 120, 160, 0.15);
    overflow: hidden;
    position: relative;
}

.jar-inner-pattern {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.12) 0%, transparent 55%);
    pointer-events: none;
}

.jar-oc-stack {
    position: absolute;
    inset: 0;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-end;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    padding: 12px 10px 20px;
    pointer-events: none;
}

.jar-oc-stack img {
    max-width: 52px;
    max-height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.jar-list-wrap {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.jar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
}

.jar-card {
    background: linear-gradient(155deg, #faf6ef 0%, #e4d8c8 100%);
    border: 2px solid #9a8a78;
    border-radius: 12px;
    padding: 0.5rem;
    text-align: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.15s ease;
}

.jar-card:hover {
    transform: translateY(-2px);
}

.jar-thumb-bg {
    background: repeating-linear-gradient(45deg, #ddd, #ddd 5px, #ccc 5px, #ccc 10px);
    border-radius: 8px;
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jar-thumb-bg img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.jar-owner {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 0.35rem;
    color: #3d3428;
}

.jar-oc-title {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.15rem;
}

.jar-more {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.jar-load-more-wrap {
    text-align: center;
    margin-top: 1rem;
}

.jar-load-more {
    padding: 0.5rem 1.25rem;
}

.jar-card a.jar-profile-link {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: #1d4ed8;
}
