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

p {
    line-height: 1.5em;
}

:root {
    --background: 187 45% 12%;
    --foreground: 187 10% 95%;
    --card: 187 42% 14%;
    --card-border: 187 38% 16%;
    --border: 187 20% 18%;
    --muted-foreground: 187 8% 70%;
    --ring: 187 85% 45%;
}

html {
    height: 100%;
    /*overflow: hidden;*/
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    height: 100%;
    /*overflow: hidden;*/
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    flex-direction: column;
    display: flex;
    height: 100vh;
    /*overflow: hidden;*/
}

.main-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    max-width: 56rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    /*overflow: auto;*/
}

.header {
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.title {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.subtitle {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.emoji-grid-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding-bottom: 1.5rem;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    width: 100%;
}

.emoji-button {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border-radius: 0.5rem;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--card-border));
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.emoji-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.emoji-button:active {
    transform: translateY(0);
}

.emoji-button:focus {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border));
    text-align: center;
    flex-shrink: 0;
}

.footer p {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    font-weight: 300;
}

.ad-sidebar {
    display: none;
    width: 100%;
    padding: 1.5rem;
}

.ad-placeholder {
    position: sticky;
    top: 1.5rem;
    min-height: 24rem;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ad-placeholder p {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 500;
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;

    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--card-border));
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);

    opacity: 0;
    transform: translate(-50%, calc(-50% - 1rem));
    transition: all 0.3s;

    pointer-events: none;
    z-index: 1000;
    max-width: 20rem;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}

.toast-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.faq-list {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.faq-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.faq-item + .faq-item {
    border-top: 1px solid hsl(var(--border));
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1rem 0;
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-icon {
    margin-left: 1rem;
    font-weight: bold;
}

.faq-answer {
    padding: 0 0 1rem 0;
}

/* Accordion behavior only when JS is enabled */
.faq-js-enabled .faq-answer {
    display: none;
}

.faq-js-enabled .faq-item.is-open .faq-answer {
    display: block;
}

.faq-js-enabled .faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

.ad-header {
    display: flex;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin-bottom: 2rem;
}

/* Tablet */
@media (min-width: 640px) {

    .emoji-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }

    .emoji-button {
        font-size: 3rem;
    }

    .title {
        font-size: 2.25rem;
    }

    .subtitle {
        font-size: 1rem;
    }
}

/* Desktop */
@media (min-width: 768px) {

    .ad-header {
        display: none;
    }

    .faq-list {
        margin-bottom: 1.5rem;
    }

    .ad-sidebar {
        display: block;
        width: 20rem;
        border-left: 1px solid hsl(var(--border));
    }

    .container {
        flex-direction: row;
    }

    .emoji-grid-wrapper {
        padding-bottom: 1.5rem;
    }

    .main-content {
        padding: 1.5rem;
    }

    .emoji-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .emoji-button {
        font-size: 3.75rem;
    }

    .title {
        font-size: 3rem;
    }
}

/* Large Desktop */
@media (min-width: 1024px) {
    .ad-sidebar {
        display: block;
    }
}
