:root {
    --bg-color: #1e1f22;
    --surface-color: #2b2d31;
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f2f3f5;
    --text-secondary: #949ba4;
    --glass-bg: rgba(43, 45, 49, 0.6);
    --glass-border: rgba(255, 255, 255, 0.06);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

.app-header {
    text-align: center;
    padding: 3rem 1.5rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.logo-accent {
    color: #5865f2;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
}

.snippets-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1600px;
    width: 95%;
    margin: 0 auto;
    padding: 0 2rem 5rem;
}

.snippet-row {
    display: flex;
    align-items: stretch;
    gap: 3rem;
    height: auto;
}

.snippet-image-column {
    flex: 1;
    display: flex;
    min-width: 0;
}

.snippet-code-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.image-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    overflow: hidden;
    cursor: default;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
    display: flex;
    flex-direction: column;
    width: 100%;
    aspect-ratio: 16/9;
}

.card-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: #111214;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #111214;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.card-info {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
}

.card-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    background: rgba(88, 101, 242, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(88, 101, 242, 0.2);
}



.code-console {
    background: #1e1f22;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    width: 100%;
    aspect-ratio: 16/9;
}

.console-header {
    background: #2b2d31;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.window-controls {
    display: flex;
    gap: 6px;
}

.control {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.console-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.copy-btn.copied {
    background: rgba(35, 165, 90, 0.15);
    border-color: rgba(35, 165, 90, 0.3);
    color: #57f287;
}

.console-body {
    padding: 1.5rem;
    overflow: auto;
    flex: 1;
}

.console-body pre {
    margin: 0;
}

.console-body code {
    font-family: Consolas, Monaco, monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #e2e8f0;
    display: block;
    white-space: pre-wrap;
    word-break: break-all;
}

.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #23a55a;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(35, 165, 90, 0.3);
    transform: translateY(150%) scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.toast-notification.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

code[class*="language-"],
pre[class*="language-"] {
    color: #abb2bf;
    text-shadow: none;
    font-family: Consolas, Monaco, monospace;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    line-height: 1.6;
    tab-size: 4;
    hyphens: none;
}

.token.comment {
    color: #5c6370;
    font-style: italic;
}

.token.punctuation {
    color: #abb2bf;
}

.token.property {
    color: #56b6c2;
}

.token.selector {
    color: #e5c07b;
}

.token.number,
.token.color,
.token.hexcode {
    color: #d19a66;
}

.token.string {
    color: #98c379;
}

.token.keyword {
    color: #c678dd;
}

.token.function {
    color: #61afef;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1e1f22;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #2b2d31;
    border-radius: 4px;
    border: 1.5px solid #1e1f22;
}

::-webkit-scrollbar-thumb:hover {
    background: #5865f2;
}

@media (max-width: 992px) {
    .snippets-container {
        gap: 3rem;
        padding: 0 1.5rem 3rem;
    }

    .snippet-row {
        flex-direction: column;
        gap: 1.5rem;
        height: auto;
    }

    .image-card {
        aspect-ratio: 16/9;
    }

    .code-console {
        aspect-ratio: auto;
        height: 320px;
    }

    .app-header {
        padding: 2rem 1rem 1rem;
    }
}