/* CADdy Bid Home CSS */
/* Match the layout/style pattern from the CADdy loginCSS, but keep CADdy Bid classes + placeholders */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: var(--background-color);
  color: var(--font-color);
}

.logo-container-icon img {
  height: 40px;
}

/* Links */
a:not(.app-switch-banner-logo) {
  color: inherit;
  text-decoration: none;
}

/* Buttons */
button {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: var(--secondary-accent-color);
  color: var(--font-color);
  font-weight: bold;
  transition: background 0.2s;
}
button:hover {
  background: var(--secondary-color);
}

/* Hero section */
.hero {
  text-align: center;
  padding: 80px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-top {
  display: flex;
  gap: 15px;
  align-items: flex-end;
}

.hero-top h1 {
  font-size: 2.5em;
  margin: 0;
  color: var(--header-color);
}

/* If you use an actual logo image later */
.hero-logo {
  max-width: 315px;
  height: auto;
}

/* For your current text logo */
.hero-logo-text {
  font-size: 2.5em;
  margin: 0;
  color: var(--header-color);
}

.hero-subtitle p {
  font-size: 1.2em;
  color: var(--font-color);
  max-width: 700px;
  margin: 0 auto;
}

/* Alternating sections (applies to top-image, ontop, alt) */
section {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 15px;
  padding: 60px 10%;
  flex-direction: row-reverse;
}

section.alt {
  flex-direction: row-reverse;
}

section.ontop {
  flex-direction: column;
}

section.top-image {
  flex-direction: row;
  align-items: flex-start;
}

/* Text blocks */
section .text-long {
  text-align: center;
}

section .text {
  text-align: center;
}

/* Image blocks */
section .main-image,
section .project-image,
section .live-preview,
section .image {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Default section sizing */
section .text,
section .text-long,
section .main-image,
section .project-image,
section .live-preview,
section .image {
  flex: 1;
}

/* Bigger hero image */
.top-image > .hero {
  flex: 0.9;
}

.top-image > .main-image {
  flex: 1.6;
}

/* Bigger section 2 image */
.alt > .text {
  flex: 0.9;
}

.alt > .live-preview {
  flex: 1.6;
}

/* Typography inside sections */
section h2 {
  font-size: 2em;
  margin-bottom: 16px;
  color: var(--header-color);
}

section p {
  font-size: 1.1em;
  color: var(--font-color);
  line-height: 1.6;
  max-width: 700px;
}

/* Screenshot styles + placeholder styles */
.screenshot {
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow);
}

/* If you're using placeholders instead of <img> */
.screenshot.placeholder,
.ui-placeholder {
  width: 100%;
  min-height: 320px;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow);
  background: var(--sub-background-color);
  border: 2px dashed var(--other-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ui-placeholder.small {
  min-height: 260px;
}

.ui-placeholder.tile {
  min-height: 180px;
}

.placeholder-inner,
.ui-placeholder-inner {
  text-align: center;
  padding: 16px;
  max-width: 520px;
}

.placeholder-title {
  margin: 0;
  font-weight: bold;
  color: var(--header-color);
}

.placeholder-text {
  margin: 8px 0 0;
  opacity: 0.9;
}

/* Footer (simple) */
.footer {
  padding: 24px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--accent-color);
}

.footer-left p {
  margin: 6px 0 0;
  opacity: 0.85;
}

.footer-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-sep {
  opacity: 0.6;
}

/* Scrollbar (WebKit) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background-color);
}

::-webkit-scrollbar-thumb {
  background: var(--scroll-color);
  border-radius: 999px;
  border: 2px solid var(--background-color);
}

.app-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  font-weight: bold;
  transition: background 0.2s ease;
}

.app-switch-btn:hover {
  text-decoration: none;
}

.app-switch-btn-caddy {
  background: var(--app-switch-caddy-bg);
  border-color: var(--app-switch-caddy-border);
  color: var(--font-color);
  height: 16px;
  font-size: small;
}

.app-switch-btn-caddy:hover {
  background: var(--app-switch-caddy-hover-bg);
  border-color: var(--app-switch-caddy-hover-border);
}

.options-menu-item {
    padding: 8px 12px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 13px;
}

.options-menu-item:hover {
    background: var(--secondary-accent-color);
    border-radius: 6px;
    text-decoration: none;
}

.app-link-section {
  padding: 40px 10%;
}

.app-link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 28px;
}

.app-link-content {
  flex: 0.9;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.app-link-image {
  flex: 1.6;
  display: flex;
  justify-content: center;
  width: 100%;
}

.app-link-logo img {
  max-width: 200px;
  height: auto;
}

.app-link-logo-placeholder {
  min-height: 110px;
  border: 2px dashed var(--other-color);
  border-radius: 12px;
  color: var(--header-color);
  font-weight: bold;
  opacity: 0.85;
}

.app-link-content h2 {
  margin: 0 0 10px;
  color: var(--header-color);
  font-size: 2em;
}

.app-link-content p {
  color: var(--font-color);
  line-height: 1.6;
  text-align: center;
  max-width: 25vw;
}

.app-link-logo:hover {
  text-decoration: none;
}

.caddy-lite-info {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-direction: column;
}

/* App switch banner */
.app-switch-banner {
  position: relative;
  padding: 10px 24px;
  background: var(--accent-color);
  border-bottom: 1px solid var(--accent-color);
  box-shadow: 0 2px 8px var(--shadow);
}

.app-switch-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 1200px;
  margin: 0 auto;
  padding-right: 36px;
}

.app-switch-banner-title {
  color: var(--header-color);
  white-space: nowrap;
}

.app-switch-banner-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-weight: bold;
  text-decoration: underline;
  color: var(--font-color);
  opacity: 0.9;
}

.app-switch-banner-logo img {
  max-height: 28px;
  max-width: 160px;
  width: auto;
}

.app-switch-banner-content p {
  margin: 0;
  color: var(--header-color);
  font-size: 0.95rem;
}

.app-switch-banner-close {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--font-color);
  font-size: 24px;
  font-weight: normal;
  line-height: 1;
  cursor: pointer;
}

.app-switch-banner-close:hover {
  background: var(--secondary-accent-color);
}
