body[data-theme="default"] {
    --primary-color: #7700e7;
    --secondary-color: #460088a9;
    --vib-color: #9000ff;
    --trans-color: #8400ff;
    --text-color: #fff;
}
body[data-theme="green"] {
    --primary-color: #00e704;
    --secondary-color: #009903;
    --vib-color: #00ff04;
    --trans-color: #00e704a1;
    --text-color: #fff;
}
body[data-theme="orange"] {
    --primary-color: #e75c00;
    --secondary-color: #913a00;
    --vib-color: #ff6600;
    --trans-color: #e75c00b2;
    --text-color: #fff;
}
body[data-theme="blue"] {
    --primary-color: #003ae7;
    --secondary-color: #002698;
    --vib-color: #0040ff;
    --trans-color: #003ae7aa;
    --text-color: #fff;
}
body[data-theme="redPink"] {
    --primary-color: #ff0037;
    --secondary-color: #c8002b;
    --vib-color: #ff0026;
    --trans-color: #ff0037a9;
    --text-color: #fff;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #111;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

main::-webkit-scrollbar {
    width: 0;
    height: 0; 
}

/* Head */

header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: transparent;
    position: relative;
    top: 0;
}

header .logo .icon img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    margin-top: -15px;
    margin-left: 0px;
}

/* Nav Bar */


nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    background-color: #181818;
    padding: 10px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 30px;
    margin-top: -5px;
}
nav ul li a i.material-icons {
    font-size: 20px;
    margin-right: 5px; 
    color: var(--primary-color);
}
nav ul li a img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Main */

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    padding-top: 80px; 
    width: 100%;
    height: calc(100vh - 80px);
    overflow-y: auto;
}
main h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 40px;
}

/* Search Bar */

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; 
    top: 165px;
    background-color: #181818;
    padding: 10px 10px;
    border-radius: 10px;
    width: 300px;
    z-index: 1000;
}

.search-bar button {
    background: none;
    border: none; 
    cursor: pointer;
    margin-right: 5px;
    display: flex; 
    align-items: center;
    order: 1; 
}

.search-bar button .material-symbols-outlined {
    font-size: 24px; 
    color: var(--primary-color);
}
.search-bar input[type="text"] {
    border: none;
    background: none;
    outline: none;
    color: #fff;
    flex-grow: 1;
    font-size: 1rem;
    order: 2;
}

/* Category Picker */
.category-picker {
    align-items: center;
    margin-left: 600px;
    background-color: #181818;
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    z-index: 1000;
    position: relative;
    top: 119px;
    height: 25px;
    width: 200px;
}

.category-picker select {
    background: #181818;
    border: 1px solid #181818;
    color: #fff;
    font-size: 1rem;
    outline: none;
    padding: 5px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"%3E%3Cpath d="M8 11.5L3.5 7h9L8 11.5z" fill="%23fff"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.category-picker select option {
    background-color: #181818;
    width: 100%;
    border: #181818;
    color: #fff;
}

/* Footer */

footer {
    position: relative;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: transparent;
    color: #999;
    font-size: 0.9rem;
    margin-top: auto;
}

footer .links {
    margin-top: 10px;
}

footer .links a {
    color: #999;
    text-decoration: none;
    margin: 0 5px;
}

footer .links a:hover {
    color: #fff;
}


.card-button {
    all: unset;
    display: inline-block;
    border: none;
    padding: 0;
    cursor: pointer;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-top: 155px;
    padding: 0 20px;
    justify-items: center; 
    align-items: start;
    min-height: 600px; 
}
.favorite-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #b5b5b5a3;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s;
    visibility: hidden;
}

.card:hover .favorite-icon {
    visibility: visible;
}

.favorite-icon:hover {
    color: #face1cd8;
}


.card {
    background-color: #181818;
    border-radius: 10px;
    overflow: hidden;
    width: 180px;
    text-align: center;
    box-shadow: 0 4px 8px var(--secondary-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 2px 6px 8px var(--trans-color);
}

.card.disabled:hover {
    transform: translateY(-10px);
    box-shadow: 2px 6px 8px rgba(255, 13, 37, 0.788);
}

.card.disabled {
    background-color: #181818;
    border-radius: 10px;
    overflow: hidden;
    width: 180px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-thumbnail {
    height: 100px;
    width: 160px;
    margin-top: 20px;
    object-fit: cover; /* contain, fit, fill, cover */
    border-radius: 5px;
}

.card-title {
    margin: 15px 0;
    font-size: 1.1rem;
    padding: 0 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.card-title.disabled {
    margin: 15px 0;
    font-size: 1.1rem;
    padding: 0 10px;
    background: linear-gradient(135deg, #ff0224, #ff0b0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hidden {
    display: none;
}
