:root {
    --bg-dark: #0a0a0c;
    --sidebar-bg: rgba(18, 18, 22, 0.7);
    --accent-primary: #8b5cf6;
    --accent-secondary: #06b6d4;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --font-main: 'Outfit', sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow: hidden;
    /* App-like feel */
}

#app {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-right: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    z-index: 100;
}

.logo {
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
}

.logo span {
    color: var(--accent-primary);
}

.main-nav ul {
    list-style: none;
}

.main-nav li {
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-dim);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.main-nav li:hover,
.main-nav li.active {
    background: var(--glass-bg);
    color: var(--text-main);
}

.main-nav li.active {
    border-left: 4px solid var(--accent-primary);
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.1) 0%, transparent 100%);
}

.info-links {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 1.25rem;
}

.info-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.info-links a:hover {
    color: var(--text-main);
}

.adsense-sidebar-placeholder {
    margin-top: auto;
    height: 250px;
    background: var(--glass-bg);
    border: 1px dashed var(--glass-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Main Content Area */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.05), transparent);
}

.top-bar {
    height: 70px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    z-index: 90;
}

.search-bar input {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    color: var(--text-main);
    width: 300px;
    outline: none;
    transition: var(--transition-fast);
}

.search-bar input:focus {
    width: 350px;
    border-color: var(--accent-secondary);
}

/* Tool View / Hero */
.tool-view {
    flex: 1;
    padding: 3rem;
}

.hero {
    display: flex;
    align-items: center;
    gap: 4rem;
    min-height: 50vh;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--glass-bg);
}

/* Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.card {
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-fast);
    cursor: pointer;
}

.card:hover {
    background: var(--glass-bg);
    transform: translateY(-8px);
    border-color: var(--accent-primary);
}

.info-card {
    margin-top: 2rem;
    padding: 3rem;
    border-radius: 24px;
    line-height: 1.8;
    max-width: 800px;
}

.info-card h3 {
    margin: 2rem 0 1rem 0;
    color: var(--accent-secondary);
}

/* Game & Video Layouts */
.game-container {
    padding: 4rem;
    text-align: center;
    max-width: 600px;
    margin: 2rem 0;
}

.score {
    font-size: 5rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin: 2rem 0;
}

.main-game-btn {
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    border-radius: 50px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Animations */
@keyframes pop-in {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-pop-in {
    animation: pop-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Floating Blobs Visual */
.hero-visual {
    flex: 1;
    position: relative;
    height: 400px;
}

.floating-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: rotate 20s infinite linear;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-primary);
    top: 10%;
    left: 10%;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: var(--accent-secondary);
    bottom: 10%;
    right: 10%;
    animation-delay: -5s;
}

@keyframes rotate {
    from {
        transform: rotate(0deg) translate(20px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translate(20px) rotate(-360deg);
    }
}

/* Adsense Bottom Bar */
.bottom-ad-bar {
    height: 100px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.adsense-horizontal {
    width: 100%;
    max-width: 970px;
    height: 100%;
    background: var(--glass-bg);
    border: 1px dashed var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* Utility */
.hidden {
    display: none;
}

.view {
    transition: opacity 0.3s ease;
}