/* STORAGEsimple - Main Stylesheet */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --dark: #1f2937;
  --light: #f9fafb;
}

/* Typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #374151;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #374151 100%);
  color: #fff;
  padding: 4rem 0;
}

.hero h1 {
  color: #fff;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
}

.hero p {
  color: rgba(255, 255, 255, 0.8);
}

/* Subhero for inner pages */
.subhero {
  background: linear-gradient(135deg, var(--dark) 0%, #374151 100%);
  display:none; /* unneeded display element; hidden via CSS */
}

/* Cards */
.card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-soft {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-light:hover {
  color: var(--dark);
}

/* Navbar */
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: #fff;
}

.navbar-brand {
  font-size: 1.25rem;
}

/* Footer */
footer {
  background: var(--dark);
}

footer a {
  transition: opacity 0.2s;
}

footer a:hover {
  opacity: 0.8;
}

/* Badge */
.badge-beta {
  background: var(--primary);
  color: #fff;
}

/* Accordion */
.accordion-button:not(.collapsed) {
  background: #e0e7ff;
  color: var(--primary-dark);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

/* Forms */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

/* Screenshots */
.screenshot-hover {
  transition: transform 0.3s, box-shadow 0.3s;
  border-radius: 0.5rem;
}

.screenshot-hover:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Product screenshot thumbnails (tall portrait UI captures cropped to top) */
.screenshot-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  background: #fff;
  transition: transform 0.25s, box-shadow 0.25s;
}

.screenshot-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.screenshot-thumb img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top center;
}

/* Larger feature/hero screenshot */
.screenshot-thumb-lg img {
  height: 420px;
}

/* Subtle "expand" cue on hover */
.screenshot-thumb::after {
  content: "\f065"; /* fa expand */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(31, 41, 55, 0.65);
  color: #fff;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.25s;
}

.screenshot-thumb:hover::after {
  opacity: 1;
}

@media (max-width: 575px) {
  .screenshot-thumb img {
    height: 200px;
  }
  .screenshot-thumb-lg img {
    height: 300px;
  }
}

/* Consent Banner */
#consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: #fff;
  padding: 1rem;
  z-index: 9999;
  display: none;
}

#consent-banner.show {
  display: block;
}

/* Utility */
.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

/* Mega Menu */
.mega-dropdown .mega-menu {
  width: 100%;
  padding: 1.5rem;
  border: none;
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

@media (min-width: 992px) {
  .mega-dropdown .mega-menu {
    min-width: 700px;
    left: 50%;
    transform: translateX(-50%);
  }
}

.mega-menu .dropdown-header {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  padding: 0.5rem 0;
  margin-bottom: 0.25rem;
}

.mega-menu .dropdown-item {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: #374151;
  border-radius: 0.25rem;
}

.mega-menu .dropdown-item:hover {
  background: #f3f4f6;
  color: var(--primary);
}

/* Feature Comparison Table */
.feature-comparison-table {
  font-size: 0.9rem;
}

.feature-comparison-table th {
  vertical-align: middle;
}

.feature-comparison-table td {
  vertical-align: middle;
}

.feature-comparison-table .fa-check {
  font-size: 1rem;
}

.feature-comparison-table .fa-minus {
  font-size: 0.8rem;
}

.feature-comparison-table .table-secondary {
  background-color: #f8f9fa;
}

/* Responsive */
@media (max-width: 767px) {
  .hero {
    padding: 3rem 0;
    text-align: center;
  }

  .hero .d-flex {
    justify-content: center;
  }

  .mega-menu {
    padding: 1rem;
  }

  .mega-menu .row > div {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
  }

  .mega-menu .row > div:last-child {
    border-bottom: none;
  }

  .feature-comparison-table {
    font-size: 0.75rem;
  }

  .feature-comparison-table th,
  .feature-comparison-table td {
    padding: 0.5rem 0.25rem;
  }
}
