:root {
    --primary-color: #000000;
    --secondary-color: #111111;
    --accent-color: #8257ff;
    --accent-secondary: #3f5efb;
    --text-color: #ffffff;
    --text-secondary: #aaaaaa;
    --border-color: #222222;
    --highlight-color: #8257ff;
    --card-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    --card-hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(30, 30, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000000;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Simplified background for better performance */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 11, 22, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%);
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='50' cy='50' r='1'/%3E%3Ccircle cx='25' cy='25' r='1'/%3E%3Ccircle cx='75' cy='25' r='1'/%3E%3Ccircle cx='25' cy='75' r='1'/%3E%3Ccircle cx='75' cy='75' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%238257ff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
    z-index: -1;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px;
    position: relative;
}

.gradient-overlay {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 50vw;
    background: linear-gradient(135deg, rgba(130, 87, 255, 0.05) 0%, rgba(63, 94, 251, 0.02) 100%);
    filter: blur(70px);
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 30px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
}

.logo .home-link {
    text-decoration: none;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--text-color) 30%, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Search Bar Styles */
.search-bar {
    position: relative;
    width: 40%;
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-bar form {
    display: flex;
    position: relative;
    width: 100%;
}

.search-bar input {
    width: 100%;
    padding: 14px 20px;
    padding-right: 50px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-color);
    font-size: 16px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(130, 87, 255, 0.2), inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    z-index: 2;
}

.search-button:hover {
    color: var(--accent-color);
}

.search-button:focus {
    outline: none;
}

/* User actions navigation */
.user-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.user-actions a {
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-actions a:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(130, 87, 255, 0.3);
}

.user-actions a i {
    font-size: 16px;
}

.user-actions a.active {
    background: var(--accent-color);
    color: white;
}

.user-actions a.back-link {
    background: rgba(30, 30, 30, 0.9);
}

.user-actions a.back-link:hover {
    background: var(--accent-color);
}

/* Toast notification system styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    transform: translateX(120%);
    transition: transform 0.3s ease-out, opacity 0.3s ease;
    opacity: 0;
    overflow: hidden;
    position: relative;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hiding {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon {
    margin-right: 12px;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

/* Toast types */
.toast-info {
    border-left: 4px solid #3498db;
}

.toast-info .toast-icon {
    color: #3498db;
}

.toast-success {
    border-left: 4px solid #2ecc71;
}

.toast-success .toast-icon {
    color: #2ecc71;
}

.toast-warning {
    border-left: 4px solid #f39c12;
}

.toast-warning .toast-icon {
    color: #f39c12;
}

.toast-error {
    border-left: 4px solid #e74c3c;
}

.toast-error .toast-icon {
    color: #e74c3c;
}

.toast-black {
    border-left: 4px solid #000000;
    color: white;

}

.toast-black .toast-icon {
    color: black;
}

.toast-black .toast-message {
    color: black;
}

.toast-black .toast-close {
    color: black;
}

/* Enhanced Watchlist Button styles */
.watchlist-btn {
    background: linear-gradient(135deg, #8257ff, #6d4acf);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(130, 87, 255, 0.3);
}

.watchlist-btn:hover {
    background: linear-gradient(135deg, #9269ff, #7d5ade);
    box-shadow: 0 6px 20px rgba(130, 87, 255, 0.4);
    transform: translateY(-2px);
}

.watchlist-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(130, 87, 255, 0.4);
}

.watchlist-btn.in-watchlist {
    background: linear-gradient(135deg, #6d4acf, #5237a8);
}

.watchlist-btn i {
    font-size: 18px;
}

/* Enhanced footer styles */
footer {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    font-size: 14px;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 14px;
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #8257ff;
}

/* Responsive adjustments */
@media (min-width: 576px) {
    .container {
        padding: 15px;
    }
    
    header {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 768px) {
    .logo h1 {
        font-size: 28px;
    }
    
    header {
        padding: 20px 0;
    }
}

@media (min-width: 992px) {
    .container {
        padding: 20px;
    }
    
    .logo h1 {
        font-size: 32px;
        background: linear-gradient(to right, var(--accent-color), var(--accent-secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .toast-container {
        top: unset;
        bottom: 20px;
        left: 20px;
        right: 20px;
        max-width: unset;
    }
    
    .toast {
        width: 100%;
    }
}

/* Responsive header adjustments */
@media (max-width: 991px) {
    header {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .search-bar {
        order: 3;
        max-width: 100%;
        margin: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .user-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .user-actions a {
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 576px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-bar {
        width: 100%;
        margin: 20px 0;
    }
    
    .user-actions {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    
    .user-actions a {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 24px;
    }
    
    .user-actions {
        width: 100%;
        justify-content: space-between;
    }
}
