/* ====================================
   ProductAI - Layout CSS
   Containers, navigation, and page layouts
   ==================================== */

/* Footer links styling */
.footer-links {
    text-align: center;
    padding: 20px 0; /* Simple equal padding */
    border-top: 1px solid #eee;
    margin-top: 40px;
    background: #f8f9fa;
    min-height: auto; /* Auto height for compact footer */
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    margin: 0 12px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Home/Landing Page Styles */
.home-container {
    max-width: 428px;
    margin: 0 auto; /* No bottom margin to eliminate gap */
    min-height: 100vh;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
}

/* Fixed bottom navigation - White Background for Button Contrast */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 428px;
    background: #ffffff;
    padding: 16px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px 12px 0 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/sample_after1.png') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.logo-hero {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.hero-tagline {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 30px;
}

/* Hero Section Additional Styles */
.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.hero-tagline {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 30px;
}

/* Features Section */
.features-section {
    padding: 40px 20px;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

/* Samples Section */
.samples-section {
    background: #f8f9fa;
    padding: 40px 20px;
}

.samples-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* CTA Section */
.cta-section {
    padding: 40px 20px;
    text-align: center;
    background: white;
}

/* App Container Layout */
.app-container {
    display: none;
    max-width: 428px;
    margin: 0 auto;
    min-height: 100vh;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    padding: 20px;
}

.app-container.active {
    display: block;
}

/* App Header - Universal Modern Sticky Design */
.app-header { 
    display: flex; 
    flex-direction: column;
    justify-content: space-between; 
    align-items: center; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white; 
    padding: 20px 24px; 
    border-radius: 12px; 
    margin-bottom: 1.5rem; 
    gap: 16px;
    min-height: 90px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-header-left { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.app-header-logo { 
    width: 40px; 
    height: 40px; 
}

.app-header-title-tagline { 
    display: flex; 
    flex-direction: column; 
}

.app-header-title { 
    font-weight: 700; 
    font-size: 1.25rem; 
}

.app-header-tagline { 
    font-size: 0.8rem; 
    color: #e0e0e0; 
    margin-top: -2px;
}

.header-right { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    margin-left: 0;
}

/* Tokens Display Styling - Enhanced Video Page Style */
.tokens-display-header {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 14px;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.tokens-display-header:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Icon Button Styling - Universal Rounded-Square Style */
.icon-button {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 40px;
    min-height: 40px;
}

.icon-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Hamburger Menu Styling */
.hamburger-menu {
    position: relative;
}

.hamburger-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    z-index: 1000;
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.hamburger-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    color: #333;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.hamburger-option:last-child {
    border-bottom: none;
}

.hamburger-option:hover {
    background: #f8f9fa;
    color: #667eea;
}

.hamburger-option .material-icons {
    font-size: 20px;
    color: #666;
}

.hamburger-option:hover .material-icons {
    color: #667eea;
}

/* Screen Layout */
.screen {
    display: none;
    min-height: 100vh;
    animation: slideIn 0.3s ease-out;
}

.screen.active {
    display: block;
}

/* Essential fix for screen5 result display only */
#screen5.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Headers and Navigation */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* Input Groups */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

/* Preset Grid */
.preset-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

/* Footer */
.footer-links {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    margin: 0 8px;
    font-size: 0.9rem;
}

/* Sticky Login Bottom Bar */
.sticky-login-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    opacity: 1;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 428px;
    border-radius: 12px 12px 0 0;
    margin: 0 auto;
} 