/* Resume Tooltip Grid Styles - Controls portfolio/resume section layout */
/* This file defines the grid layout for Resume tooltips using CSS custom properties */

:root {
  /* Grid spacing properties for resume tooltips */
  --resume-grid-gap: 20px;
  --resume-content-padding: 10px;
  --resume-section-margin: 8px;
  --resume-color-swatch-size: 25px;
  --resume-color-swatch-gap: 5px;
  --resume-tagline-margin: 6px;
  --resume-list-padding: 0 0 0 15px;
  --resume-theme-preview-padding: 10px;
  --resume-theme-preview-border-radius: 4px;
}

/* === MAIN RESUME TOOLTIP CONTAINER === */
.tooltip-resume {
  /* Override default tooltip width for resume layout */
  min-width: fit-content;
}

/* Ensure all text in resume tooltip is black */
.tooltip-resume,
.tooltip-resume * {
  color: black !important;
}

/* Make the resume tooltip container more compact */
.floating-ui-tooltip.tooltip-resume {
  height: fit-content !important;
  max-height: 350px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 12px !important;
  padding-top: 16px !important;
}

/* Extra Compact Resume Layout specific styles */
.floating-ui-tooltip[data-layout="extra-compact-resume"] .tooltip-resume {
  max-height: 300px !important;
  padding: 10px !important;
}

/* Apply compact layout styles also to extra-compact-resume */
.floating-ui-tooltip[data-layout="compact"] .tooltip-resume,
.floating-ui-tooltip[data-layout="extra-compact-resume"] .tooltip-resume {
  width: 250px !important;
}

/* Compact-2 variant specific styles */
.tooltip-layout-compact.compact-2 .product-price-section.compact-2 {
  gap: 15px;
}

.tooltip-layout-compact.compact-2 .right-section.compact-2 {
  margin-left: auto;
}

.tooltip-layout-compact.compact-2 .product-feautres.compact-2 {
  font-size: 13px;
  line-height: 1.4;
}

.tooltip-layout-compact.compact-2 .product-category-section.compact-2 {
  margin-top: 12px;
}

.tooltip-layout-compact.compact-2 .first-option.compact-2 {
  background: rgba(0, 0, 0, 0.02);
  padding: 8px;
  margin-bottom: 10px;
}

.tooltip-layout-compact.compact-2 .second-option.compact-2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  background: rgba(0, 0, 0, 0.02);
}

.tooltip-layout-compact.compact-2 .tooltip-add-to-cart-btn.compact-2 {
  margin-top: 15px;
}

/* Next compact2 button styling */
.next-compact2 {
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.next-compact2:hover {
  opacity: 1;
}

/* Add extra height for classic terminal resume tooltip - Standard Layout Only */
.floating-ui-tooltip[data-layout="standard"]
  .style-classic-terminal.tooltip-resume {
  padding: 12px !important;
  padding-bottom: calc(12px + 0.1rem) !important;
  min-height: calc(350px + 0.1rem) !important;
}

/* Reduce height for vintage typewriter resume tooltip */
.floating-ui-tooltip.style-vintage-typewriter.tooltip-resume {
  padding: 12px !important;
  padding-bottom: calc(12px - 0.8rem) !important;
  padding-top: calc(12px + 0.2rem) !important;
}
.tooltip-resume .tooltip-product-name {
  font-size: 14px;
  height: 20px;
}
/* === TAGLINE SECTION === */
.bullet-points {
  display: grid;
  grid-auto-flow: column;
  justify-content: space-between;
}
/* Use more specific selector to override classic terminal's color inheritance */
.tooltip-resume .tooltip-tagline {
  font-size: 13px;
  font-weight: bold;
  opacity: 1;
  color: black !important;
  margin: 8px 0 !important;
}
/* === MAIN GRID CONTAINER - Two column layout === */
.tooltip-resume .tooltip-resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "whats-included support-section"
    "theme-preview support-section";
  margin-top: var(--resume-tagline-margin);
  gap: 0.6rem;
  height: fit-content;
  padding-bottom: 5px;
}

/* === LEFT COLUMN - Whats Included Section === */
.tooltip-resume .tooltip-whats-included {
  grid-area: whats-included;
  display: grid;
  grid-template-rows: auto auto;
  gap: 0.2rem;
  padding: var(--resume-content-padding);
  font-size: 13px !important;
  max-height: calc(120px + 0.5rem);
}

/* === RIGHT COLUMN - Support Section (spans full height) === */
.tooltip-resume .tooltip-support-section {
  grid-area: support-section;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.2rem;
  padding: var(--resume-content-padding);
  font-size: 13px !important;
  max-height: calc(250px - 2.7rem);
}

/* === SECTION TITLES === */
.tooltip-resume .tooltip-section-title {
  font-weight: 600;
  font-size: 14px;
  text-transform: lowercase;
  margin-bottom: 5px;
}

/* === FEATURE AND SUPPORT LISTS === */
.floating-ui-tooltip.style-classic-terminal
  .tooltip-resume
  .tooltip-feature-list,
.floating-ui-tooltip.style-classic-terminal
  .tooltip-resume
  .tooltip-support-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px !important;
  display: grid;
  gap: 5px;
}

/* Specific grid layout for feature list */
.tooltip-resume .tooltip-feature-list {
  display: grid;
  gap: 0.1rem;
}

/* Specific grid layout for support list */
.tooltip-resume .tooltip-support-list {
  display: grid;
  gap: 0.1rem;
}

.tooltip-resume .tooltip-feature-list li,
.tooltip-resume .tooltip-support-list li {
  position: relative;
  padding-left: 15px;
}

.tooltip-resume .tooltip-feature-list li::before,
.tooltip-resume .tooltip-support-list li::before {
  content: "•";
  position: absolute;
  left: 0;
}

/* Ensure item class has proper font size - more specific selector to override classic-terminal */
.floating-ui-tooltip.style-classic-terminal
  .tooltip-resume
  .tooltip-feature-list
  .item,
.floating-ui-tooltip.style-classic-terminal
  .tooltip-resume
  .tooltip-support-list
  .item {
  font-size: 13px !important;
  position: relative;
}

/* Highlight specific words in support list */
.tooltip-resume .tooltip-support-list .highlight-word {
  margin-left: 1.2rem !important;
}

/* === THEME PREVIEW SECTION - Bottom left === */
.tooltip-resume .tooltip-resume-grid > .tooltip-theme-preview {
  grid-area: theme-preview;
  display: grid;
  grid-template-areas:
    "title typography"
    "colors typography";
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 5px;
  row-gap: var(--resume-section-margin);
  padding: var(--resume-theme-preview-padding);
  border-radius: 0;
  align-items: center;
  justify-self: stretch;
  height: fit-content;
}

.tooltip-resume .tooltip-theme-title {
  grid-area: title;
  font-size: 13px;
  font-weight: 700;
  text-transform: capitalize;
  justify-self: start;
}

/* === COLOR SWATCHES GRID === */
.tooltip-resume .tooltip-theme-colors {
  grid-area: colors;
  display: grid;
  grid-template-columns: repeat(3, var(--resume-color-swatch-size));
  gap: var(--resume-color-swatch-gap);
  justify-self: start;
  align-self: start;
}

.tooltip-resume .color-swatch {
  width: var(--resume-color-swatch-size);
  height: var(--resume-color-swatch-size);
  border-radius: 0;
  display: block;
  border: 1px dashed rgba(0, 0, 0, 0.2);
}

/* === TYPOGRAPHY PREVIEW === */
.tooltip-resume .tooltip-theme-typography {
  grid-area: typography;
  font-size: 1.8em;
  font-weight: 700;
  justify-self: end;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 5px 20px;
  background: #1a1a1a !important;
  color: white !important; /* Keep white on dark background */
  border-radius: 0;
  border: 1px dashed black !important;
}

/* Ensure first letter stays uppercase */
.tooltip-resume .tooltip-theme-typography .first-letter {
  text-transform: uppercase !important;
  color: white !important;
}

/* === ADD TO CART BUTTON - Full width === */
.tooltip-resume .tooltip-add-to-cart-btn {
  width: 100%;
  margin-top: var(--resume-section-margin);
  text-transform: uppercase;
  background: #1a1a1a !important;
  color: white !important;
  border: 1px solid #1a1a1a !important;
}

/* === COMPACT LAYOUT ADJUSTMENTS === */
.tooltip-layout-compact.tooltip-resume {
  min-width: 320px;
}

.tooltip-layout-compact.tooltip-resume .tooltip-tagline {
  font-size: 0.8em;
}

/* === MINIMAL MODE ADJUSTMENTS === */
.tooltip-minimal-mode.tooltip-resume .tooltip-resume-grid,
.tooltip-minimal-mode.tooltip-resume .tooltip-tagline {
  display: none;
}

.tooltip-minimal-mode.tooltip-resume:hover .tooltip-resume-grid,
.tooltip-minimal-mode.tooltip-resume:hover .tooltip-tagline {
  display: grid;
}

.tooltip-minimal-mode.tooltip-resume:hover .tooltip-tagline {
  display: block;
}

/* === STYLE-SPECIFIC OVERRIDES === */

/* Classic Terminal style - Dark gray terminal aesthetic */
.style-classic-terminal.tooltip-resume {
  --border-color: #333;
  --text-color: #333;
  --button-bg: #333;
  --button-text: #f8f8f0;
}

.style-classic-terminal.tooltip-resume .tooltip-theme-preview,
.style-classic-terminal.tooltip-resume .tooltip-whats-included,
.style-classic-terminal.tooltip-resume .tooltip-support-section {
  border-color: var(--border-color);
}

.style-classic-terminal.tooltip-resume .color-swatch {
  border-color: var(--border-color);
}

.style-classic-terminal.tooltip-resume .tooltip-add-to-cart-btn {
  background: #333 !important;
  color: white !important;
  border: 1px solid #333 !important;
  transition: background 0.2s ease !important;
}

.style-classic-terminal.tooltip-resume .tooltip-add-to-cart-btn:hover {
  background: #494949 !important;
  border-color: #494949 !important;
}

.style-classic-terminal.tooltip-resume .tooltip-theme-typography {
  background: #333 !important;
  color: white !important;
  border: 1px dashed white !important;
}

.style-classic-terminal.tooltip-resume .tooltip-resume-grid {
  border-bottom: 1px dashed #333 !important;
}

/* Modern Terminal style - Sleek green terminal */
.style-modern-terminal.tooltip-resume {
  --border-color: #00ff00;
  --text-color: #00ff00;
  --button-bg: #444;
  --button-text: #00ff00;
}

.style-modern-terminal.tooltip-resume .tooltip-theme-preview,
.style-modern-terminal.tooltip-resume .tooltip-whats-included,
.style-modern-terminal.tooltip-resume .tooltip-support-section {
  border-color: var(--border-color);
}

.style-modern-terminal.tooltip-resume .color-swatch {
  border-color: var(--border-color);
}

.style-modern-terminal.tooltip-resume .tooltip-add-to-cart-btn {
  background: #1a1a1a !important;
  color: #00ff00 !important;
  border: 1px solid #00ff00 !important;
}

.style-modern-terminal.tooltip-resume * {
  color: #00ff00 !important;
}

.style-modern-terminal.tooltip-resume .tooltip-theme-typography {
  background: #1a1a1a !important;
  color: #00ff00 !important;
  border: 1px dashed #00ff00 !important;
}

.style-modern-terminal.tooltip-resume .tooltip-theme-typography .first-letter {
  color: #00ff00 !important;
}

.style-modern-terminal.tooltip-resume .tooltip-resume-grid {
  border-bottom: 1px dashed #00ff00 !important;
}

/* LCD Display style - Pink/Red LCD aesthetic */
.style-lcd-display.tooltip-resume {
  --border-color: #e94560;
  --text-color: #e94560;
  --button-bg: #16213e;
  --button-text: #e94560;
  --bg-color: #1a1a2e;
}

.style-lcd-display.tooltip-resume {
  background: var(--bg-color) !important;
}

.style-lcd-display.tooltip-resume .tooltip-theme-preview,
.style-lcd-display.tooltip-resume .tooltip-whats-included,
.style-lcd-display.tooltip-resume .tooltip-support-section {
  border-color: var(--border-color);
  color: var(--text-color) !important;
}

.style-lcd-display.tooltip-resume .color-swatch {
  border-color: var(--border-color);
}

.style-lcd-display.tooltip-resume .tooltip-add-to-cart-btn {
  background: #1a1a1a !important;
  color: white !important;
  border: 1px solid #1a1a1a !important;
}

.style-lcd-display.tooltip-resume * {
  color: var(--text-color) !important;
}

.style-lcd-display.tooltip-resume .tooltip-theme-typography {
  background: #1a1a1a !important;
  color: white !important;
  border: 1px dashed #e94560 !important;
}

.style-lcd-display.tooltip-resume .tooltip-resume-grid {
  border-bottom: 1px dashed #e94560 !important;
}

/* Vintage Typewriter style - Brown paper aesthetic */
.style-vintage-typewriter.tooltip-resume {
  --border-color: #8b4513;
  --text-color: #3c2414;
  --button-bg: #8b4513;
  --button-text: #fff8dc;
  --bg-color: #f4f1e8;
}

/* Remove margin-left from highlight words in vintage typewriter */
/* .style-vintage-typewriter.tooltip-resume .tooltip-support-list .highlight-word {
  margin-left: 0 !important;
} */

/* Add margin-right to "you" word only in vintage typewriter */
.style-vintage-typewriter.tooltip-resume .you-word {
  margin-right: 1.2rem !important;
}

.style-vintage-typewriter.tooltip-resume {
  background: var(--bg-color) !important;
}

.style-vintage-typewriter.tooltip-resume .tooltip-theme-preview,
.style-vintage-typewriter.tooltip-resume .tooltip-whats-included,
.style-vintage-typewriter.tooltip-resume .tooltip-support-section {
  border-color: var(--border-color);
}

.style-vintage-typewriter.tooltip-resume .color-swatch {
  border-color: var(--border-color);
}

.style-vintage-typewriter.tooltip-resume .tooltip-add-to-cart-btn {
  border: 1px solid #8b4513 !important;
  transition: background 0.2s ease, color 0.2s ease !important;
}

.style-vintage-typewriter.tooltip-resume .tooltip-add-to-cart-btn:hover {
  background: #8b4513 !important;
  color: #fef9e7 !important;
}

.style-vintage-typewriter.tooltip-resume * {
  color: var(--text-color) !important;
}

.style-vintage-typewriter.tooltip-resume .tooltip-theme-typography {
  background: #8b4513 !important;
  color: white !important;
  border: 1px dashed white !important;
  font-size: 14px !important;
}

.style-vintage-typewriter.tooltip-resume .tooltip-resume-grid {
  border-bottom: 1px dashed #8b4513 !important;
}

/* Retro OS style - Classic blue system UI */
.style-retro-os.tooltip-resume {
  --border-color: #808080;
  --text-color: #000;
  --button-bg: #000080;
  --button-text: #ffffff;
  --bg-color: #c0c0c0;
}

.style-retro-os.tooltip-resume {
  background: var(--bg-color) !important;
}

.style-retro-os.tooltip-resume .tooltip-theme-preview,
.style-retro-os.tooltip-resume .tooltip-whats-included,
.style-retro-os.tooltip-resume .tooltip-support-section {
  border: 2px solid #808080;
}

.style-retro-os.tooltip-resume .color-swatch {
  border: 1px solid #808080;
}

.style-retro-os.tooltip-resume .tooltip-add-to-cart-btn {
  background: #1a1a1a !important;
  color: white !important;
  border: 2px solid #808080 !important;
}

.style-retro-os.tooltip-resume .tooltip-theme-typography {
  background: #1a1a1a !important;
  color: white !important;
  border: 2px solid #808080 !important;
}

.style-retro-os.tooltip-resume .tooltip-resume-grid {
  border-bottom: 2px solid #808080 !important;
}

/* Next-extcolor cursor styling */
.next-extcolor {
  cursor: pointer;
}

/* Paper Card style - Elegant paper texture */
.style-paper-card.tooltip-resume {
  --border-color: #000;
  --text-color: #494949;
  --button-bg: #ff8383;
  --button-text: #fff;
  --bg-color: #fff8f4;
}

.style-paper-card.tooltip-resume {
  background: var(--bg-color) !important;
}

.style-paper-card.tooltip-resume .tooltip-theme-preview,
.style-paper-card.tooltip-resume .tooltip-whats-included,
.style-paper-card.tooltip-resume .tooltip-support-section {
  border-color: var(--border-color);
}

.style-paper-card.tooltip-resume .color-swatch {
  border-color: var(--border-color);
}

.style-paper-card.tooltip-resume .tooltip-add-to-cart-btn {
  background: #1a1a1a !important;
  color: white !important;
  border: 1px solid #1a1a1a !important;
}

.style-paper-card.tooltip-resume * {
  color: var(--text-color) !important;
}

.style-paper-card.tooltip-resume .tooltip-theme-typography {
  background: #1a1a1a !important;
  color: white !important;
  border: 1px dashed white !important;
  font-size: 14px !important;
}

.style-paper-card.tooltip-resume .tooltip-resume-grid {
  border-bottom: 1px dashed #000 !important;
}

/* Coder Core style - Minimal developer aesthetic */
.style-coder-core.tooltip-resume {
  --border-color: #6ac441;
  --text-color: #6ac441;
  --button-bg: #1e1e1e;
  --button-text: #6ac441;
  --bg-color: #1e1e1e;
}

.style-coder-core.tooltip-resume .bullet-points {
  border-bottom: 1px dashed #6ac441 !important;
}

.style-coder-core.tooltip-resume {
  background: var(--bg-color) !important;
}

.style-coder-core.tooltip-resume .tooltip-theme-preview,
.style-coder-core.tooltip-resume .tooltip-whats-included,
.style-coder-core.tooltip-resume .tooltip-support-section {
  border-color: var(--border-color);
}

.style-coder-core.tooltip-resume .color-swatch {
  border-color: var(--border-color);
}

.style-coder-core.tooltip-resume .tooltip-add-to-cart-btn {
  background: #1a1a1a !important;
  color: black !important;
  border: 1px solid #1a1a1a !important;
}

.style-coder-core.tooltip-resume * {
  color: var(--text-color) !important;
}

.style-coder-core.tooltip-resume .tooltip-theme-typography {
  background: #6ac441 !important;
  color: black !important;
  border: 1px dashed #6ac441 !important;
  font-size: 23px !important;
}

.style-coder-core.tooltip-resume .tooltip-theme-typography .first-letter {
  color: black !important;
}

.style-coder-core.tooltip-resume .tooltip-resume-grid {
  border-bottom: 1px dashed #6ac441 !important;
}

/* Figma Design style - Modern design tool aesthetic */
.style-figma-design.tooltip-resume {
  --border-color: #e1e5e9;
  --text-color: #000;
  --button-bg: #0066cc;
  --button-text: #fff;
  --bg-color: #ffffff;
}

.style-figma-design.tooltip-resume .tooltip-theme-preview,
.style-figma-design.tooltip-resume .tooltip-whats-included,
.style-figma-design.tooltip-resume .tooltip-support-section {
  border-color: #0066cc !important;
  border-style: solid;
}

.style-figma-design.tooltip-resume .color-swatch {
  border-color: var(--border-color);
}

.style-figma-design.tooltip-resume .tooltip-add-to-cart-btn {
  background: #0066cc !important;
  color: white !important;
}

.style-figma-design.tooltip-resume .tooltip-theme-typography {
  background: #0066cc !important;
  color: white !important;
  border: 1px dashed #e1e5e9 !important;
}

.style-figma-design.tooltip-resume .tooltip-resume-grid {
  border-bottom: 1px dashed #0066cc !important;
}

/* Remove margin-left from highlight words in Figma Design*/
.style-figma-design.tooltip-resume .tooltip-support-list .highlight-word {
  margin-left: 0 !important; 
}

/* Increase add to cart button height in Figma Design */
.style-figma-design.tooltip-resume .tooltip-add-to-cart-btn {
  padding: 6px 12px !important;
  min-height: auto !important;
  background: #0066cc !important;
}

.tooltip-resume-grid {
  margin-bottom: 0px;
}
.product-price-section {
  display: grid;
  grid-template-columns: 50% 40%;
  gap: 1.6rem;
  padding-bottom: 2px;
}
.left-section {
  display: grid;
  grid-template-rows: 25px auto;
  gap: 0.5rem;
  align-items: center;
}
.product-price {
  padding: 4px 0px  !important;
  font-size: 12px !important;
  font-weight: bold !important;
}

/* Exclude extra compact layout from the above rule */
.tooltip-layout-extra-compact-resume .product-price {
  padding: initial !important;
}
.preview {
  padding: 0px 6px;
  width: fit-content;
  max-height: 20px !important;
  margin: 0px 0px 5px 0px;
  cursor: pointer;
}
.right-section {
  display: grid;
  grid-template-rows: 20px 20px;
  gap: 0.7rem;
  height: fit-content;
  align-items: center;
}
.numbers {
  text-align: end;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.cap {
  text-transform: uppercase;
  font-weight: bold;
  font-size: 13px;
}
.Aa {
  font-size: 13px;
  font-weight: bold;
  padding: 4px 7px;
}
.color-section,
.color {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  justify-items: center;
}
.color-section {
  justify-content: space-between;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.color-1,
.color-2,
.color-3 {
  padding: 4px 10px !important;
  width: 32.67px !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  text-align: center;
}
.color-1 {
  background: #ff6b6b;
}
.color-2 {
  background: #4ecdc4;
}
.color-3 {
  background: yellowgreen;
}
.product-feautres {
  display: grid;
  gap: 0.4rem;
  align-items: center;
  padding: 4px 0px 8px 0px;
}
.product-category-section {
  display: grid;
  gap: 0.5rem;
}
.first-option {
  padding: 10px;
  margin-top: 4px;
  display: grid;
  align-items: center;
}
.second-option {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  display: grid;
  grid-auto-flow: column;
  justify-content: space-between;
  align-items: end;
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  /* margin-bottom: 5px; */
}

.second-option:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.second-option input[type="radio"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: #6ac441;
}
.option-head {
  font-size: 14px;
  margin: 0px !important;
  text-transform: none;
  font-weight: bold;
}
.next-color,
.next-number {
  cursor: pointer;
}
.color-number {
  cursor: pointer;
  position: relative;
}
.color-number.active {
  text-decoration: underline;
}
.highlight-word{

}