﻿* {
    box-sizing: border-box;
}

.creator-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.creator-bar {
    /* --- these three come from the database, per row --- */
    --btn-color: #4a72c9;
    --divider-color: #ffd23f;
    --hover-color: #3a5aa0;
    /* --- shape controls, same idea as the buttons --- */
    --slant: 50px;
    --divider-thickness: 24px;
    --right-width: 260px;
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.2s ease;
}

/* The end image (like .toy-image) - fixed width, pinned right */
.creator-thumbnail {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--right-width);
    height: 100%;
    object-fit: cover;
}

/* The coloured panel with the diagonal cut (like .toy-panel) */
.creator-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: calc(var(--right-width) - var(--slant));
    background: var(--btn-color);
    clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
    display: flex;
    align-items: center;
    gap: 28px;
    padding-left: 30px;
    transition: background 0.2s ease;
}

/* The divider stripe (like .toy-divider) */
.creator-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(100% - var(--right-width) - (var(--divider-thickness) / 2));
    width: calc(var(--slant) + var(--divider-thickness));
    background: var(--divider-color);
    clip-path: polygon( var(--slant) 0, 100% 0, var(--divider-thickness) 100%, 0 100% );
    transition: background 0.2s ease;
}

.creator-bar:hover .creator-panel {
    background: var(--hover-color);
}

.creator-bar:hover .creator-divider {
    background: var(--hover-color);
}

/* The square source photo, displayed cropped into a circle */
.creator-profile {
    flex: 0 0 auto;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    background: #222;
    border: 3px solid rgba(255,255,255,0.6);
}

    .creator-profile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* The label/value rows in the middle */
.creator-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 16px;
}

.creator-field {
    display: flex;
    gap: 12px;
}

/* Static labels you type yourself, e.g. "CREATOR :" - white */
.creator-label {
    flex: 0 0 220px;
    color: #ffffff;
    font-weight: bold;
}

/* Values pulled from the database - black */
.creator-value {
    color: #f4c646;
    font-size: 16px;
    font-weight: bold;
}

a.creator-value {
    text-decoration: none;
}

    a.creator-value:hover {
        text-decoration: underline;
    }

.mobile-nav {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: #b23b3b;
    padding: 10px 20px;
}

.mobile-nav-btn {
    background: var(--accent-color);
    color: var(--frame-color);
    font-weight: bold;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto 20px;
}

.search-btn {
    flex: 0 0 auto;
    background: var(--accent-color);
    color: var(--frame-color);
    border: none;
    font-weight: bold;
    font-size: 15px;
    padding: 14px 24px;
    border-radius: 6px;
    cursor: pointer;
}

.search-input {
    flex: 1;
    padding: 14px 16px 14px 42px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 14px center;
    background-size: 18px 18px;
}


@media (max-width: 700px) {
    .creator-bar {
        cursor: pointer;
        height: auto;
        display: flex;
        flex-direction: column;
    }


    .creator-panel {
        position: static;
        order: 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px;
        clip-path: none;
    }

    .creator-field {
        flex-direction: column;
        gap: 2px;
    }

    .creator-thumbnail {
        position: static;
        order: 2;
        width: 100%;
        height: 220px;
    }

    .creator-divider {
        display: none;
    }

    .creator-label {
        flex: none;
    }

    .mobile-nav {
        display: flex;
    }

    .search-bar {
        gap: 8px;
    }

    .search-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .search-input {
        padding: 10px 12px 10px 36px;
        font-size: 13px;
        background-position: 10px center;
        background-size: 16px 16px;
    }

}