@tailwind base; @tailwind components; @tailwind utilities; @layer base { :root { --background: 0 0% 99%; --foreground: 224 13% 12%; --card: 0 0% 100%; --card-foreground: 224 13% 12%; --primary: 11 86% 55%; --primary-foreground: 0 0% 100%; --secondary: 210 16% 93%; --secondary-foreground: 224 13% 12%; --muted: 210 16% 94%; --muted-foreground: 220 8% 43%; --accent: 210 16% 92%; --accent-foreground: 224 13% 12%; --destructive: 0 84% 60%; --destructive-foreground: 0 0% 100%; --border: 210 14% 88%; --input: 210 14% 88%; --ring: 11 86% 55%; --radius: 0.5rem; } * { @apply border-border; } body { @apply bg-background text-foreground; font-feature-settings: "rlig" 1, "calt" 1; } } @layer components { .auth-screen { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(135deg, #ffffff 0%, #edf6ff 42%, #f2edff 100%); } .auth-screen::before { position: absolute; inset: -30%; z-index: -1; background: linear-gradient(118deg, transparent 18%, hsl(204 100% 82% / 0.34) 38%, transparent 58%), linear-gradient(28deg, transparent 30%, hsl(264 88% 88% / 0.48) 52%, transparent 72%); background-size: 180% 180%; content: ""; filter: blur(48px); animation: auth-aurora 18s ease-in-out infinite alternate; } .auth-card { border-color: hsl(221 35% 86% / 0.9); box-shadow: 0 24px 70px hsl(224 45% 44% / 0.12), 0 2px 8px hsl(224 45% 44% / 0.06); backdrop-filter: blur(18px); } .editorial-studio { background: hsl(210 20% 95%); } .editorial-studio .app-header { border-color: hsl(214 18% 82%); border-radius: 0.35rem; box-shadow: 0 1px 0 hsl(224 13% 12% / 0.04); } .editorial-studio .app-header h1 { letter-spacing: -0.02em; } .editorial-studio .vk-sync-button { border-color: #0077ff; background: #0077ff; color: white; } .editorial-studio .vk-sync-button:hover { border-color: #0067e6; background: #0067e6; color: white; } .editorial-studio .manual-import { border-color: hsl(214 18% 85%); box-shadow: 0 1px 0 hsl(224 13% 12% / 0.03); } .editorial-studio .metrics-strip .metric-tile { min-height: 82px; border-color: hsl(214 18% 82%); border-radius: 0; background: hsl(0 0% 100% / 0.9); box-shadow: none; } .editorial-studio .metrics-strip .metric-tile:first-child { border-radius: 0.35rem 0 0 0.35rem; } .editorial-studio .metrics-strip .metric-tile:last-child { border-radius: 0 0.35rem 0.35rem 0; } .editorial-studio .metrics-strip .metric-tile [data-slot="card-description"] { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; } .editorial-studio .metrics-strip .metric-tile [data-slot="card-title"] { color: hsl(224 13% 12%); font-size: 1.5rem; line-height: 1; } .editorial-studio .work-column { overflow: hidden; border-color: hsl(214 18% 82%); border-radius: 0.35rem; background: hsl(0 0% 100% / 0.94); box-shadow: 0 6px 18px hsl(224 13% 12% / 0.05); } .editorial-studio .work-column:first-child { border-top: 3px solid hsl(35 92% 52%); } .editorial-studio .work-column:last-child { border-top: 3px solid hsl(214 82% 52%); } .editorial-studio .work-column > [data-slot="card-header"] { border-bottom: 1px solid hsl(214 18% 89%); background: hsl(210 20% 97% / 0.95); padding: 1rem 1.1rem; } .editorial-studio .work-column > [data-slot="card-header"] [data-slot="card-title"] { letter-spacing: -0.015em; } .editorial-studio .work-list { background: hsl(210 20% 97% / 0.72); padding: 0.9rem; } .editorial-studio .production-item, .editorial-studio .article-item { border-color: hsl(214 18% 87%); border-radius: 0.5rem; box-shadow: 0 1px 1px hsl(224 13% 12% / 0.025); transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; } .editorial-studio .production-item:hover, .editorial-studio .article-item:hover { border-color: hsl(214 18% 76%); box-shadow: 0 5px 14px hsl(224 13% 12% / 0.07); transform: translateY(-1px); } .editorial-studio .production-item h3, .editorial-studio .article-item h3 { letter-spacing: -0.01em; } .editorial-studio .production-item .rounded-full.bg-muted { background: hsl(214 18% 90%); } @media (max-width: 1279px) { .editorial-studio .work-list { max-height: none; } } .modal-overlay { animation: modal-overlay-in 140ms ease-out both; } .modal-panel { animation: modal-panel-in 170ms cubic-bezier(0.16, 1, 0.3, 1) both; transform-origin: center; } .article-preview { @apply text-zinc-900; } .article-preview > :where(p, h2, h3, ul, ol) { @apply mx-auto max-w-3xl; } .article-preview p { @apply mt-4 text-lg leading-8; } .article-preview h2 { @apply mx-auto mt-10 max-w-3xl text-3xl font-bold leading-tight tracking-normal; } .article-preview h3 { @apply mx-auto mt-8 max-w-3xl text-2xl font-semibold leading-tight tracking-normal; } .article-preview figure { @apply my-8 w-full; } .article-preview img { @apply aspect-video w-full rounded-md border bg-muted object-cover; } .article-preview figcaption { @apply mx-auto mt-2 max-w-3xl text-sm leading-6 text-muted-foreground; } .article-preview .premium-cta { @apply mt-10 rounded-lg border border-amber-700 bg-zinc-950 p-6 text-zinc-50; } .article-preview .premium-cover { @apply m-0 mb-8 w-full; } .article-preview .premium-cover + h2 { @apply mt-8; } .article-preview .premium-cover figcaption { @apply mb-6; } .article-preview .premium-cta h2 { @apply mt-0 text-zinc-50; } .article-preview .premium-cta p { @apply text-zinc-200; } .article-preview .premium-cta a { @apply font-bold text-amber-300 underline underline-offset-4; } .article-preview .video-embed { @apply mt-10 border-t pt-8; } .article-preview .video-embed h2 { @apply mx-auto max-w-3xl text-3xl font-bold leading-tight tracking-normal; } .article-preview .video-embed__frame { @apply mt-4 aspect-video w-full overflow-hidden rounded-md border bg-zinc-950; } .article-preview iframe { @apply block h-full w-full; } .article-preview strong { @apply font-semibold; } .article-preview blockquote { @apply mx-auto mt-6 max-w-3xl border-l-2 border-zinc-300 pl-5 text-lg italic leading-8 text-zinc-700; } .article-preview ul, .article-preview ol { @apply mt-4 pl-6 text-lg leading-8; } .article-preview li { @apply mt-2; } .article-editor { @apply min-h-[420px] cursor-text rounded-md outline-none transition-colors; } .article-editor:hover { @apply bg-amber-50/25; } .article-editor:focus { @apply bg-amber-50/40 outline-none ring-1 ring-amber-200; } .article-editor :where(p, h2, h3, figcaption, li) { @apply outline-none; } .article-editor :where(p, h2, h3, figcaption, li):focus { @apply rounded-sm bg-amber-50/60; } .article-editor figure { @apply cursor-text; } .article-editor img { @apply cursor-pointer select-auto transition-shadow; } .article-editor img:hover { @apply shadow-[0_0_0_3px_rgba(245,158,11,0.25)]; } .article-editorjs { @apply min-h-[520px] rounded-md px-0 py-2; } .article-editorjs .codex-editor { @apply text-zinc-900; } .article-editorjs .codex-editor__redactor { padding-bottom: 120px !important; } .article-editorjs .ce-block__content, .article-editorjs .ce-toolbar__content { max-width: 768px; } .article-editorjs .ce-paragraph { @apply text-lg leading-8; } .article-editorjs a { @apply text-blue-600 underline decoration-blue-300 underline-offset-2 transition-colors; } .article-editorjs a:hover { @apply text-blue-800 decoration-blue-500; } .article-editorjs .ce-header { @apply font-bold leading-tight tracking-normal text-zinc-950; } .article-editorjs h2.ce-header { @apply text-3xl; } .article-editorjs h3.ce-header { @apply text-2xl; } .article-editorjs .cdx-quote { @apply border-l-2 border-zinc-300 pl-5; } .article-editorjs .cdx-quote__text { @apply min-h-0 text-lg italic leading-8 text-zinc-700; } .article-editorjs .image-tool__image { @apply relative overflow-hidden rounded-md border bg-muted; } .article-editorjs .image-tool__image-picture { @apply aspect-video w-full object-cover; } .article-editorjs .ce-block.is-image-paste-target .image-tool__image::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: rgb(24 24 27 / 0.5); backdrop-filter: blur(1px); } .article-editorjs .ce-block.is-image-paste-target .image-tool__image::before { content: "Вставьте изображение из буфера обмена или принесите файл"; position: absolute; left: 50%; top: 50%; z-index: 3; max-width: min(90%, 28rem); transform: translate(-50%, -50%); border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.42); background: rgb(24 24 27 / 0.76); padding: 0.55rem 0.9rem; color: white; font-size: 0.8125rem; font-weight: 700; line-height: 1.25; letter-spacing: 0; text-align: center; box-shadow: 0 12px 30px rgb(0 0 0 / 0.22); } .article-editorjs .ce-block.is-random-frame-loading .image-tool__image::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, transparent 0%, rgb(255 255 255 / 0.42) 46%, rgb(255 255 255 / 0.72) 50%, rgb(255 255 255 / 0.42) 54%, transparent 100%), rgb(250 250 250 / 0.34); background-size: 220% 100%; animation: random-frame-wave 1.15s ease-in-out infinite; } .article-editorjs .ce-block.is-random-frame-loading .image-tool__image::before { content: "Подбираю кадр"; position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%); border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.68); background: rgb(24 24 27 / 0.72); padding: 0.45rem 0.8rem; color: white; font-size: 0.8125rem; font-weight: 600; line-height: 1; letter-spacing: 0; box-shadow: 0 12px 30px rgb(0 0 0 / 0.22); backdrop-filter: blur(8px); } .article-editorjs .image-tool__caption { @apply mx-auto mt-2 max-w-3xl border-0 px-0 text-sm leading-6 text-muted-foreground shadow-none; } .image-generation-status { border-color: hsl(214 18% 85%); background: linear-gradient(135deg, hsl(210 30% 98%), hsl(0 0% 100%)); } .image-generation-status > div:last-child > div { box-shadow: 0 1px 2px hsl(224 13% 12% / 0.035); } } @media (max-width: 640px) { .modal-overlay { align-items: flex-start; padding: 0; } .modal-panel { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; border-left: 0; border-right: 0; } .article-modal-header { flex-direction: column; gap: 0.75rem; padding: 0.75rem 1rem; } .article-modal-intro { width: 100%; } .article-modal-intro > p { max-width: 100%; line-height: 1.35; } .article-modal-actions { width: 100%; justify-content: flex-start; } .article-publish-time { flex: 1 1 100%; width: 100%; } .article-publish-time input { min-width: 0; width: 100%; } .article-modal-body { padding: 0.75rem; } .article-modal-content { padding: 1rem; } .article-modal-content .article-editorjs .ce-block__content, .article-modal-content .article-editorjs .ce-toolbar__content { max-width: calc(100vw - 4rem); } } @keyframes modal-overlay-in { from { opacity: 0; } to { opacity: 1; } } @keyframes auth-aurora { 0% { background-position: 0% 35%, 100% 65%; transform: translate3d(-2%, -1%, 0) rotate(-2deg); } 50% { background-position: 70% 20%, 25% 80%; transform: translate3d(2%, 1%, 0) rotate(2deg); } 100% { background-position: 100% 70%, 0% 30%; transform: translate3d(-1%, 2%, 0) rotate(-1deg); } } @keyframes modal-panel-in { from { opacity: 0; transform: translateY(8px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } } @keyframes random-frame-wave { from { background-position: 140% 0; } to { background-position: -80% 0; } }