:root {
    --primary: #9d00ff;
    /* Fun Purple */
    --secondary: #00d16c;
    /* Vibrant Green */
    --accent: #ff0080;
    /* Tropical Pink */
    --bg-light: #fdfdfd;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Decoration */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(157, 0, 255, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 209, 108, 0.03) 0%, transparent 40%);
    z-index: -1;
}

/* Simplified Navigation */
header {
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.5rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--primary);
    letter-spacing: -2px;
}

.logo span {
    color: var(--text-main);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
}

nav a:hover,
nav a.active {
    color: var(--primary);
}

/* Main Container */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.welcome-section {
    text-align: center;
    margin-bottom: 5rem;
    padding: 4rem 1rem;
}

.welcome-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-section p {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Joke Block Styles */
.joke-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.joke-block {
    background: var(--bg-card);
    border: 2px solid var(--border);
    padding: 2rem;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    scroll-margin-top: 100px;
    box-shadow: var(--shadow);
}

.joke-block:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.joke-number {
    position: absolute;
    left: -40px;
    top: 2rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.3;
}

.joke-title {
    font-size: 1.3rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.joke-content {
    font-size: 1.2rem;
    color: var(--text-main);
}

.joke-category {
    display: table;
    margin-top: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #f1f5f9;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    color: var(--secondary);
}

/* Category Headers */
.category-header {
    font-size: 2rem;
    font-weight: 900;
    margin: 4rem 0 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #f1f5f9;
    color: var(--primary);
}

/* Buttons */
.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 4rem 0;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Info Section Content */
.info-box {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 30px;
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
}

.info-box h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.info-links {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
}

.info-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid var(--border);
}

.info-links a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* Footer & Legal Content */
.legal-content {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 24px;
    border: 2px solid var(--border);
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

footer {
    text-align: center;
    padding: 4rem 2rem 6rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-top: 2px solid #f1f5f9;
    margin-top: 4rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .welcome-section h1 {
        font-size: 2.5rem;
    }

    .joke-number {
        display: none;
    }

    .info-box,
    .legal-content {
        padding: 1.5rem;
    }
}