:root {
    --bg-color: #111;
    --text-color: #fff;
    --accent-color: #7700e7;
}

[data-theme="lightblue"] {
    --bg-color: #111;
    --text-color: #fff;
    --accent-color: #00aaff;
}

[data-theme="green"] {
    --bg-color: #111;
    --text-color: #fff;
    --accent-color: #00ff4c;
}

[data-theme="orange"] {
    --bg-color: #111;
    --text-color: #fff;
    --accent-color: #ff7300;
}

[data-theme="blue"] {
    --bg-color: #111;
    --text-color: #fff;
    --accent-color: #0800ff;
}

[data-theme="red"] {
    --bg-color: #111;
    --text-color: #fff;
    --accent-color: #cb2121;
}

[data-theme="pink"] {
    --bg-color: #111;
    --text-color: #fff;
    --accent-color: #FF88D0;
}
/* General Body Styling */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-color) 10%, transparent 10%);
    background-size: 20px 20px;
    opacity: 0.1;
    animation: footerBg 10s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes footerBg {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-20px, -20px);
    }
}

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

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

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

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 35px;
    height: 5px;
}

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

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: -10px;
    margin-right: -15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(90, 90, 90, 0.1);
}

nav ul li a i.material-icons {
    font-size: 18px;
    color: var(--accent-color);
    align-items: center;
}

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: 25px;
    width: 300px;
    max-width: 600px;
    z-index: 1000;
    margin: 0 auto;
}

.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(--accent-color);
}

.search-bar input[type="text"] {
    border: none;
    background: none;
    outline: none;
    color: var(--text-color);
    flex-grow: 1;
    font-size: 1rem;
    order: 2;
}

/* 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: var(--text-color);
}

/* Cards */
.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: 200px;
    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: var(--accent-color);
}

.card {
    background-color: #222;
    border-radius: 12px;
    overflow: hidden;
    width: 180px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(var(--accent-color), 0.15);
}

.card-thumbnail {
    height: 120px;
    width: 100%;
    object-fit: cover;
}

.card-title {
    margin: 12px 15px;
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.3;
}

.card.disabled {
    opacity: 0.7;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.1);
}

.card.disabled:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.2);
}

.card-title.disabled {
    color: #ff3333;
}

/* Hidden Class */
.hidden {
    display: none;
}

/* Media Queries */
@media (max-width: 768px) {
    .search-bar {
        top: 120px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .search-bar {
        top: 100px;
        padding: 8px 8px;
    }

    .search-bar input[type="text"] {
        font-size: 0.9rem;
    }
}
