@charset "UTF-8";

/*
Theme Name: Crypto News
Theme URI: https://wordpress.org/themes/twentytwentyone/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Twenty Twenty-One is a blank canvas for your ideas and it makes the block editor your best brush. With new block patterns, which allow you to create a beautiful layout in a matter of seconds, this theme’s soft colors and eye-catching — yet timeless — design will let your work shine. Take it for a spin! See how Twenty Twenty-One elevates your portfolio, business website, or personal blog.
Requires at least: 5.3
Tested up to: 6.0
Requires PHP: 5.6
Version: 1.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: CryptoNews
Tags: one-column, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready

Twenty Twenty-One WordPress Theme, (C) 2020 WordPress.org
Twenty Twenty-One is distributed under the terms of the GNU GPL.
*/

/**
 * SETTINGS
 * File-header..........The file header for the themes style.css file.
 * Fonts................Any font files, if the project needs specific fonts.
 * Global...............Project-specific, globally available variables.
 *
 * TOOLS
 * Functions............Global functions.
 * Mixins...............Global mixins.
 *
 * GENERIC
 * Normalize.css........Normalise browser defaults.
 * Breakpoints..........Mixins and variables for responsive styles
 * Vertical-margins.....Vertical spacing for the main components.
 * Reset................Reset specific elements to make them easier to style in other contexts.
 * Clearings............Clearings for the main components.
 *
 * ELEMENTS
 * Blockquote...........Default blockquote.
 * Forms................Element-level form styling.
 * Headings.............H1–H6
 * Links................Default links.
 * Lists................Default lists.
 * Media................Images, Figure, Figcaption, Embed, iFrame, Objects, Video.
 *
 * BLOCKS
 * Audio................Specific styles for the audio block.
 * Button...............Specific styles for the button block.
 * Code.................Specific styles for the code block.
 * Columns..............Specific styles for the columns block.
 * Cover................Specific styles for the cover block.
 * File.................Specific styles for the file block.
 * Gallery..............Specific styles for the gallery block.
 * Group................Specific styles for the group block.
 * Heading..............Specific styles for the heading block.
 * Image................Specific styles for the image block.
 * Latest comments......Specific styles for the latest comments block.
 * Latest posts.........Specific styles for the latest posts block.
 * Legacy...............Specific styles for the legacy gallery.
 * List.................Specific styles for the list block.
 * Media text...........Specific styles for the media and text block.
 * Navigation...........Specific styles for the navigation block.
 * Paragraph............Specific styles for the paragraph block.
 * Pullquote............Specific styles for the pullquote block.
 * Quote................Specific styles for the quote block.
 * Search...............Specific styles for the search block.
 * Separator............Specific styles for the separator block.
 * Spacer...............Specific styles for the spacer block.
 * Table................Specific styles for the table block.
 * Verse................Specific styles for the verse block.
 * Video................Specific styles for the video block.
 * Utilities............Block alignments.
 *
 * COMPONENTS
 * Header...............Header styles.
 * Footer...............Footer styles.
 * Comments.............Comment styles.
 * Archives.............Archive styles.
 * 404..................404 styles.
 * Search...............Search styles.
 * Navigation...........Navigation styles.
 * Footer Navigation....Footer Navigation styles.
 * Pagination...........Pagination styles.
 * Single...............Single page and post styles.
 * Posts and pages......Misc, sticky post styles.
 * Entry................Entry, author biography.
 * Widget...............Widget styles.
 * Editor...............Editor styles.
 *
 * UTILITIES
 * A11y.................Screen reader text, prefers reduced motion etc.
 * Color Palette........Classes for the color palette colors.
 * Editor Font Sizes....Editor Font Sizes.
 * Measure..............The width of a line of text, in characters.
 */

/* Categories 01 to 03 are the basics. */

/* Variables */
html, body,
* {
  font-family: 'Open Sans', sans-serif;
}


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

body::-webkit-scrollbar {
  width: 0;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 1px solid theme('colors.gray.100');
  background-clip: padding-box;
  border-radius: 9999px;
  background-color: theme('colors.neutral.300');
}

::-webkit-scrollbar-thumb:hover {
  background-color: theme('colors.neutral.400');
}

html.dark {
  &::-webkit-scrollbar-thumb {
    border-color: theme('colors.neutral.800');
    background-color: theme('colors.neutral.500');
  }

  &::-webkit-scrollbar-thumb:hover {
    background-color: theme('colors.neutral.400');
  }
}

.page-enter-active {
  transition: all 0.1s ease-out;
}

.page-leave-active {
  transition: all 0.3s cubic-bezier(1, 0.5, 0.8, 1);
}

.page-enter-from,
.page-leave-to {
  transform: translateY(20px);
  opacity: 0;
}

.layout-enter-active {
  transition: all 0.1s ease-out;
}

.layout-leave-active {
  transition: all 0.3s cubic-bezier(1, 0.5, 0.8, 1);
}

.layout-enter-from,
.layout-leave-to {
  transform: translateY(-20px);
  opacity: 0;
}


.bg-news {
  background: #08122e;
  position: relative;
  z-index: 0;
  flex: 1;
  will-change: transform;
  contain: layout style paint;
}
.bg-news::before {
  content: '';
  position: absolute;
  background-image: url('./assets/images/bg-section-opt.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 58vw;
  top: -10vw;
  left: 0;
  z-index: -1;
  max-width: 100%;
  will-change: transform;
  contain: layout style paint;
}
.bg-news::after {
  content: '';
  position: absolute;
  background-image: url('./assets/images/bg-section-opt.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 58vw;
  bottom: 0;
  left: 0;
  z-index: -1;
  will-change: transform;
  contain: layout style paint;
}

.news-scroll-to-top {
  background: #192a52;
  border-radius: 999px;
  cursor: pointer;
}

/* Single Post Content Styling - Synced with Vue component */
.main-content h2,
.main-content h2 strong {
  color: #1f2937;
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1.3;
  font-size: 1.9rem;
  margin-top: 3rem;
  margin-bottom: 0.8rem;
}

.main-content h3,
.main-content h3 strong {
  color: #1f2937;
  line-height: 1.5;
  letter-spacing: 0.3px;
  font-weight: 600;
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.main-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  letter-spacing: 0.3px;
  margin-bottom: 1.5rem;
  color: #1f2937;
  font-weight: 400;
}

.main-content ul {
  font-size: 1.125rem;
  line-height: 1.4;
  letter-spacing: 0.3px;
  list-style-type: disc;
  padding-left: 1rem;
  margin-bottom: 1.2rem;
  color: #111827;
}

.main-content li {
  line-height: 1.9;
  letter-spacing: 0.3px;
}

.main-content a {
  color: #3b82f6;
  font-weight: 500;
  text-decoration: none;
}

.main-content a:hover {
  text-decoration: underline;
}

/* Dark mode styles */
.dark .main-content p {
  color: #e4e4e7;
}

.dark .main-content h3,
.dark .main-content h2 strong {
  color: #f5f5f5;
}

.dark .main-content h2,
.dark .main-content h3 strong {
  color: #f5f5f5;
}

.dark .main-content ul {
  color: #fafafa;
}

.dark .main-content strong {
  font-weight: 600;
  color: #f5f5f5;
}

.dark .main-content a {
  word-break: break-word;
  color: #2ecaec;
  font-weight: 500;
}

.dark .main-content a:hover {
  text-decoration: underline;
}

.has-text-align-center {
  text-align: center;
}

figcaption {
  text-align: center;
  padding-top: 10px;
}
