/**
 * =====================================================================
 * RECYCLR STYLESHEET
 * =====================================================================
 * 
 * Purpose: Styling for the Recyclr+ landing page
 * Architecture: Mobile-first responsive design with CSS custom properties
 * Browser Support: Modern browsers with CSS Grid and Flexbox support
 * 
 * @author Ingredients2Meals Development Team
 * @version 1.0
 * @since 2025
 */

/* =====================================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   Recyclr+-specific color system with #A8E6CF as primary
   ===================================================================== */
:root {
    /* Recyclr+ Brand Colors */
    --color-recyclr-primary: #A8E6CF;     /* Primary green - main brand color */
    --color-recyclr-secondary: #4CAF50;   /* Secondary green - darker shade */
    --color-recyclr-accent: #81C784;      /* Accent green - medium shade */
    --color-recyclr-dark: #2E7D32;       /* Dark green - text and borders */
    
    /* Background Colors */
    --color-bg-main: #F5F5F5;            /* Main background - light gray */
    --color-bg-card: #FFFFFF;            /* Card backgrounds - pure white */
    --color-bg-alt: #E8F5E8;             /* Alternative background - light green */
    
    /* Typography Colors */
    --color-text-primary: #000000;       /* Primary text - black */
    --color-text-secondary: #555555;     /* Secondary text - gray */
    --color-text-caption: #888888;       /* Caption text - light gray */
    
    /* Button Colors */
    --color-btn-primary: var(--color-recyclr-primary);
    --color-btn-primary-hover: var(--color-recyclr-secondary);
    --color-btn-secondary: transparent;
    --color-btn-secondary-border: var(--color-recyclr-primary);
    
    /* Brand compatibility - orange for Ingredients2Meals consistency */
    --color-primary: #D95921;              /* Orange for main brand */
}

/* =====================================================================
   GLOBAL RESET AND BASE STYLES
   ===================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco', 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-main);
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =====================================================================
   HEADER AND NAVIGATION
   ===================================================================== */
.header {
    background-color: rgba(245, 245, 245, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}


.logo-link.active {
    opacity: 1;
}

.logo-link.active .logo {
    color: var(--color-recyclr-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #D95921; /* Original Ingredients2Meals orange */
    margin: 0;
}

.smartcart-logo {
    color: #007AFF !important; /* SmartCart blue */
}

.recyclr-logo {
    color: #000000 !important; /* Recyclr+ black */
}

.hoopvision-logo {
    color: #000000 !important; /* HoopVision AI black */
}

.nav-divider {
    width: 1px;
    height: 32px;
    background-color: #E5E5E7;
    margin: 0 1rem;
}

.app-store-badge {
    height: 40px;
    width: auto;
}

/* =====================================================================
   RECYCLR HERO SECTION
   Primary landing area with Recyclr branding matching SmartCart layout
   ===================================================================== */

/* Recyclr hero container */
.recyclr-hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
    background: var(--color-bg-main);
}

/* Recyclr hero content (left side) */
.recyclr-hero-content {
    flex: 1;
    text-align: left;
}

/* Recyclr description section */
.recyclr-description h2 {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}

/* Recyclr lead text */
.recyclr-lead {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0;
    margin-bottom: 2.5rem;
}

/* Recyclr hero image (right side) */
.recyclr-hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Recyclr hero buttons */
.recyclr-hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

/* Recyclr primary button */
.btn-recyclr-primary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-recyclr-primary);
    color: var(--color-text-primary);
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}

/* Recyclr primary button hover */
.btn-recyclr-primary:hover {
    background-color: #000000;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Phone mockup container with realistic proportions */
.phone-mockup {
    width: 400px;
    height: 800px;
    background: var(--color-bg-main);
    border-radius: 30px;
    padding: 20px;
    max-width: 100%;
}

/* Phone screen area with overflow management */
.phone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-main);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

/* CTA section specific phone mockup styling */
.cta .phone-mockup {
    background: var(--color-bg-main);
}

.cta .phone-screen {
    background-color: var(--color-bg-main);
}

/* Recyclr hero image container for rotating images */
.recyclr-hero-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Individual Recyclr rotating image */
.recyclr-rotating-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Active Recyclr rotating image state */
.recyclr-rotating-image.active {
    opacity: 1;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-btn-primary);
    color: var(--color-text-primary);
}

.btn-primary:hover {
    background-color: var(--color-btn-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 230, 207, 0.4);
}

.btn-secondary {
    background-color: var(--color-btn-secondary);
    color: var(--color-recyclr-primary);
    border: 2px solid var(--color-btn-secondary-border);
}

.btn-secondary:hover {
    background-color: var(--color-recyclr-primary);
    color: var(--color-text-primary);
    transform: translateY(-2px);
}

.btn-primary-alt {
    background-color: var(--color-recyclr-secondary);
    color: white;
}

.btn-primary-alt:hover {
    background-color: var(--color-recyclr-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

/* =====================================================================
   FEATURES SECTION
   ===================================================================== */
.features {
    padding: 4rem 0;
    background-color: var(--color-bg-alt);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.feature-card {
    background-color: var(--color-bg-card);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(168, 230, 207, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(168, 230, 207, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* =====================================================================
   INFO SECTION
   Information section with horizontal image matching instore-section
   ===================================================================== */

/* Info section container */
.info-section {
    padding: 6rem 0;
    background-color: var(--color-recyclr-primary);
    color: white;
}

/* Info main container */
.info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

/* Info image (centered at top) */
.info-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Info image styling */
.info-img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
}

/* Info content (below image) */
.info-content {
    width: 100%;
    max-width: 800px;
}

/* Info main title */
.info-content h2 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* =====================================================================
   WISHCYCLING SECTION
   Wishcycling section with same green background as info section
   ===================================================================== */

/* Wishcycling section container */
.wishcycling-section {
    padding: 6rem 0;
    background-color: var(--color-recyclr-primary);
    color: white;
}

/* Wishcycling main container */
.wishcycling-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

/* Wishcycling content */
.wishcycling-content {
    width: 100%;
    max-width: 800px;
    background-color: white;
    padding: 3rem;
    border-radius: 20px;
}

/* Wishcycling main title */
.wishcycling-content h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Wishcycling main description */
.wishcycling-content > p {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* Wishcycling section groups */
.wishcycling-section-group {
    margin-bottom: 2.5rem;
    text-align: left;
}

.wishcycling-section-group:last-child {
    margin-bottom: 0;
}

/* Wishcycling section titles */
.wishcycling-section-group h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Wishcycling lists */
.wishcycling-section-group ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 0;
}

.wishcycling-section-group li {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.wishcycling-section-group li:last-child {
    margin-bottom: 0;
}

/* Strong text in wishcycling lists */
.wishcycling-section-group li strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* =====================================================================
   CTA SECTION
   ===================================================================== */
.cta {
    background: var(--color-bg-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
}

/* CTA container matching hero layout */
.cta-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
    width: 100%;
}

/* CTA content (left side) */
.cta-content {
    flex: 1;
    text-align: left;
}

.cta-title {
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* CTA download section */
.cta-download {
    margin-top: 2rem;
}

.cta-download .app-store-badge {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.cta-download .app-store-badge:hover {
    transform: translateY(-2px);
}

/* CTA image (right side) */
.cta-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CTA image container */
.cta-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* CTA image styling */
.cta-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
    background-color: #000000;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: var(--color-recyclr-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-recyclr-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(168, 230, 207, 0.2);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.7;
}

/* =====================================================================
   MOBILE NAVIGATION IMPROVEMENTS
   ===================================================================== */

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-text-primary);
    z-index: 1001;
}

.mobile-menu-btn:focus {
    outline: 2px solid var(--color-recyclr-primary);
    border-radius: 4px;
}

/* Hamburger icon */
.hamburger {
    width: 25px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-text-primary);
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Hamburger animation when menu is open */
.mobile-menu-btn.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile navigation overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-nav-overlay.active {
    display: block;
}

/* Mobile navigation menu */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background-color: var(--color-bg-main);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
}

.mobile-nav-menu.active {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    text-decoration: none;
    border-radius: 12px;
    transition: background-color 0.3s ease;
    border: 2px solid transparent;
}


.mobile-nav-link.active {
    background-color: #000000;
    border-color: #000000;
}

.mobile-nav-link.active .logo {
    color: #FFFFFF;
}

/* Recyclr+ active state - white text on Recyclr page (for black background visibility) */
.mobile-nav-link:nth-child(3).active .logo {
    color: #FFFFFF !important;
}

.mobile-nav-link .logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.mobile-nav-link .logo {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: var(--color-primary); /* Default orange for Ingredients2Meals */
}

/* SmartCart+ mobile navigation color (blue) */
.mobile-nav-link:nth-child(2) .logo {
    color: #007AFF !important;
}

/* Recyclr+ mobile navigation color (white for visibility on black background) */
.mobile-nav-link:nth-child(3) .logo {
    color: #FFFFFF !important;
}

/* HoopVision AI mobile navigation color (black) */
.mobile-nav-link:nth-child(4) .logo {
    color: #000000 !important;
}

.mobile-app-store {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.mobile-app-store .app-store-badge {
    height: 50px;
    width: auto;
}

/* =====================================================================
   RESPONSIVE DESIGN
   ===================================================================== */
@media (max-width: 768px) {
    .nav {
        padding: 1rem;
        position: relative;
    }
    
    /* Hide desktop navigation elements on mobile */
    .nav-brand {
        display: none;
    }
    
    .nav-download {
        display: none;
    }
    
    /* Show mobile menu button and current page indicator */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Show current page brand on mobile */
    .mobile-current-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
    }
    
    .mobile-current-brand .logo-icon {
        width: 32px;
        height: 32px;
        border-radius: 6px;
    }
    
    .mobile-current-brand .logo {
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0;
        color: #000000 !important;
    }
    
    .recyclr-hero {
        flex-direction: column;
        padding: 5rem 1rem 3rem;
        gap: 2.5rem;
        min-height: auto;
    }
    
    .recyclr-hero-content {
        text-align: center;
    }
    
    .recyclr-hero-buttons {
        justify-content: center;
    }
    
    .recyclr-hero-image {
        order: -1;
    }
    
    .recyclr-description h2 {
        font-size: 2.5rem;
    }
    
    .btn,
    .btn-recyclr-primary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
        max-width: 90vw;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .info-section {
        padding: 4rem 0;
    }
    
    .info-container {
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .info-content h2 {
        font-size: 2.5rem;
    }
    
    .info-img {
        max-width: 90%;
    }
    
    .wishcycling-section {
        padding: 4rem 0;
    }
    
    .wishcycling-container {
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .wishcycling-content h2 {
        font-size: 2.5rem;
    }
    
    .wishcycling-content > p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .wishcycling-section-group {
        margin-bottom: 2rem;
    }
    
    .wishcycling-section-group h3 {
        font-size: 1.3rem;
    }
    
    .wishcycling-content {
        padding: 2rem;
    }
    
    .cta {
        padding: 5rem 1rem 3rem;
        min-height: auto;
    }
    
    .cta-container {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .cta-content {
        text-align: center;
    }
    
    .cta-image {
        order: -1;
    }
    
    .cta-title {
        font-size: 2.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Mobile breakpoint (480px and below) */
/* Additional mobile breakpoint improvements */
@media (max-width: 480px) {
    .nav {
        padding: 0.8rem 1rem;
    }
    
    .mobile-current-brand .logo {
        font-size: 1.3rem;
    }
    
    .mobile-current-brand .logo-icon {
        width: 28px;
        height: 28px;
    }
    
    .mobile-nav-menu {
        width: 280px;
        padding: 4rem 1.5rem 2rem;
    }
    
    .recyclr-hero {
        padding: 4rem 1rem 2rem;
        gap: 1.5rem;
    }
    
    .recyclr-description h2 {
        font-size: 2.2rem;
        line-height: 1.1;
    }
    
    .recyclr-lead {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
        max-width: 85vw;
    }
    
    .btn-recyclr-primary {
        width: 100%;
        max-width: 260px;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
    
    .recyclr-hero-buttons {
        margin-top: 2rem;
        justify-content: center;
    }
    
    .wishcycling-content {
        padding: 1.5rem;
    }
    
    .wishcycling-content h2 {
        font-size: 2.2rem;
    }
    
    .wishcycling-content > p {
        font-size: 1rem;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
}

/* Mobile brand override to ensure visibility */
@media (max-width: 768px) {
    .mobile-current-brand {
        display: flex !important;
    }
}
