@font-face {
    font-family: 'Roboto';
    src: url('./assets/fonts/Roboto/Roboto-VariableFont_wdth,wght.ttf');
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 18px;
    font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body {
    background-color: #ffffff;
    color: #1a1a1a;
}

/* ===== Suite Header & Navigation (Light Theme) ===== */
.title-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 0.5rem 1rem 0;
}
.title-top h1 {
    background-image: linear-gradient(30deg, #9e9e9e 45%, #64b5f6 46%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2rem;
    font-weight: 800;
}
.title-top img {
    width: 60px;
    height: 60px;
}
nav a {
    text-decoration: none;
    color: #555555;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 0.5rem;
    transition: color 0.2s ease;
}
nav a:hover {
    color: #64b5f6;
}
nav button, .suite-install {
    background-color: #64b5f6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
nav button:hover, .suite-install:hover {
    background-color: #42a5f5;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(100, 181, 246, 0.3);
}
.title-bottom {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    color: #555555;
    padding: 0 1rem;
    background-color: #ffffff;
}

/* Hero */
.suite-hero {
    text-align: center;
    padding: 2rem 1rem 1rem;
}
.suite-hero h2 {
    font-size: 2rem;
    font-weight: 300;
    color: #1a1a1a;
}
.suite-hero p {
    font-size: 1rem;
    color: #555;
    max-width: 600px;
    margin: 0.5rem auto;
}

/* ===== App Selector Cards ===== */
.app-selector {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 2rem auto 0;
    padding: 0 1rem;
    flex-wrap: wrap;
}
.app-card {
    flex: 1;
    min-width: 200px;
    background: #f5f5f5;
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    border: 2px solid #e0e0e0;
    transition: all 0.2s;
    cursor: pointer;
}
.app-card.active {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.05);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}
.app-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #eeeeee;
    border-color: #ddd;
}
.app-card i {
    font-size: 2rem;
    color: #4caf50;
    margin-bottom: 0.5rem;
}
.app-card.disabled i {
    color: #aaa;
    margin-bottom: 1rem;
}
.app-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}
.app-card p {
    font-size: 0.8rem;
    color: #666;
}

/* Theme Bar */
.theme-bar {
    width: 100%;
    height: 12px;
    background: #4caf50;
    margin: 1.5rem 0 0;
    position: relative;
}
.theme-bar::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #4caf50;
}

/* ===== SHOWCASE SECTION – DARK THEME (Neat Calorie) ===== */
.app-showcase {
    background: #1a1a1a;
    padding: 2rem 0 1rem;
    margin-top: 0;
    color: #e5e5e5;
}
.app-showcase .main-container {
    background: transparent;
}
#appShowcase .card {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #e5e5e5;
}
#appShowcase .card h3 {
    color: white;
}
#appShowcase .card p {
    color: #bcbcbc;
}
#appShowcase .card i {
    color: #4caf50;
}
#appShowcase .card.active {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}
#appShowcase .slider-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}
#appShowcase .slider-btn:hover {
    background: #4caf50;
}
#appShowcase .dot {
    background: rgba(255, 255, 255, 0.3);
}
#appShowcase .dot.active {
    background: #4caf50;
}
.app-showcase .install-section {
    background: transparent;
}
.app-showcase .install-main-btn {
    background: #4caf50;
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}
.app-showcase .install-main-btn:hover {
    background: #45a049;
}
.app-showcase .install-note {
    color: #bcbcbc;
}

/* ===== Global Layout Components (Light Default) ===== */
.main-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    background-color: #ffffff;   /* Only applies outside .app-showcase */
}
.cards-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.card {
    background: #f5f5f5;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
    cursor: pointer;
}
.card:hover {
    transform: translateY(-4px);
    border-color: #64b5f6;
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.1);
}
.card.active {
    border-color: #64b5f6;
    background: rgba(100, 181, 246, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.15);
}
.card i {
    font-size: 1.5rem;
    color: #64b5f6;
    margin-bottom: 0.5rem;
}
.card h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
}
.card p {
    font-size: 0.8rem;
    color: #555555;
    line-height: 1.3;
}

/* Slider (light defaults) */
.slider-container {
    flex: 0.8;
    position: relative;
    background: transparent;
    border-radius: 20px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.slide.active {
    opacity: 1;
    position: relative;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
    cursor: pointer;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}
.slider-btn:hover {
    background: #64b5f6;
    transform: translateY(-50%) scale(1.05);
}
.prev-btn { left: 10px; }
.next-btn { right: 10px; }
.slider-btn i {
    font-size: 1rem;
    color: white;
}
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}
.dot.active {
    background: #64b5f6;
    width: 25px;
    border-radius: 5px;
}

/* Install Section (light default) */
.install-section {
    text-align: center;
    padding: 2rem 1rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
}
.install-main-btn {
    background: #64b5f6;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3);
}
.install-main-btn:hover {
    background: #42a5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(100, 181, 246, 0.4);
}
.install-note {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #666666;
}

/* About Summary */
.about-summary {
    background: #f9f9f9;
    padding: 2rem;
    margin-top: 0;
    text-align: center;
}
.about-summary h3 {
    color: #1a1a1a;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.about-summary p {
    color: #555;
    max-width: 800px;
    margin: 0 auto 1rem;
}
.about-summary a {
    color: #64b5f6;
    text-decoration: none;
}

/* Footer */
.page-footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #e0e0e0;
    background-color: #ffffff;
}
.page-footer p {
    color: #888888;
    font-size: 0.8rem;
}

/* Modal (light) */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.image-modal.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}
.modal-content img {
    width: auto;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
}
.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #1a1a1a;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}
.modal-prev, .modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.2s;
}
.modal-prev { left: 20px; }
.modal-next { right: 20px; }
.modal-prev:hover, .modal-next:hover {
    background: #64b5f6;
    color: white;
}
.modal-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #1a1a1a;
    font-size: 0.9rem;
}

/* ===== Calorie Theme Overrides (for active app accents) ===== */
.calorie-theme .card.active {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.05);
}
.calorie-theme .install-main-btn {
    background: #4caf50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}
.calorie-theme .install-main-btn:hover {
    background: #45a049;
}

/* Static PWA info box – complete styling */
.pwa-card {
  max-width: 800px;
  margin: 1.5rem auto;
  background: #f5f5f5;        /* light gray background */
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-family: inherit;
}

.pwa-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: #1a1a1a;
}

.pwa-facts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pwa-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: #444;
  line-height: 1.4;
}

.pwa-facts li:last-child {
  margin-bottom: 0;
}

.pwa-facts i {
  width: 20px;
  color: #4caf50;
  font-size: 0.9rem;
  flex-shrink: 0;
}
/* Green info box inside the Neat Calorie card */
.app-description {
  margin-top: 1rem;
  padding: 1rem;
  background: #2d2d2d;   /* deep green, matches your brand */
  border-radius: 12px;
  color: #ffffff;
  text-align: left;      /* left‑align bullets for readability */
}
.app-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.app-feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #f5f5f5;
}
.app-feature-list li:last-child {
  margin-bottom: 0;
}
.app-feature-list i {
  width: 20px;
  color: #4caf50;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .app-selector {
        flex-direction: column;
        align-items: stretch;
    }
    .app-card {
        min-width: auto;
    }
    .main-container {
        flex-direction: column;
        padding: 1rem;
    }
    .cards-container {
        order: 2;
        width: 100%;
    }
    .slider-container {
        order: 1;
        margin-bottom: 1rem;
        height: 320px;
    }
    .card {
        padding: 0.875rem 1rem;
    }
    .card i { font-size: 1.25rem; }
    .card h3 { font-size: 0.9rem; }
    .card p { font-size: 0.75rem; }
    .slider-btn {
        width: 32px;
        height: 32px;
    }

    .app-card.disabled {
        display: none;
    }
}
@media (max-width: 480px) {
    .slider-container {
        height: 280px;
    }
}