/* ========================================
   POS Para Todos - Website Styles
   ======================================== */

/* Variables */
:root {
    --primary: #1565C0;
    --primary-dark: #0D47A1;
    --primary-light: #42A5F5;
    --accent: #4CAF50;
    --accent-dark: #388E3C;
    --warning: #FF9800;
    --danger: #F44336;
    --text-primary: #212121;
    --text-secondary: #757575;
    --background: #F5F5F5;
    --surface: #FFFFFF;
    --border: #E0E0E0;
    --shadow: rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
    --gradient-accent: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    background: var(--surface);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.navbar-brand img {
    height: 40px;
    width: 40px;
}

.navbar-brand span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navbar-nav a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    background: var(--primary);
    color: white;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 100px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--background);
    transform: translateY(-2px);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-icon {
    width: 24px;
    height: 24px;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Features
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--surface);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--shadow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    margin-bottom: 10px;
}

/* ========================================
   Download Section
   ======================================== */
.download-section {
    background: var(--gradient-primary);
    color: white;
}

.download-section .section-title h2,
.download-section .section-title p {
    color: white;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.download-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
}

.download-card img {
    height: 80px;
    margin-bottom: 20px;
}

.download-card h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.download-card p {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.store-badge {
    height: 50px;
    transition: transform 0.3s ease;
}

.store-badge:hover {
    transform: scale(1.05);
}

/* ========================================
   Manual Page
   ======================================== */
.manual-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding-top: 100px;
    min-height: 100vh;
}

.manual-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: var(--surface);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 20px var(--shadow);
}

.manual-sidebar h3 {
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.manual-nav {
    list-style: none;
}

.manual-nav li {
    margin-bottom: 5px;
}

.manual-nav a {
    display: block;
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.manual-nav a:hover,
.manual-nav a.active {
    background: var(--primary);
    color: white;
}

.manual-nav .submenu {
    padding-left: 20px;
    margin-top: 5px;
}

.manual-nav .submenu a {
    font-size: 0.9rem;
    padding: 8px 15px;
}

.manual-content {
    background: var(--surface);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 5px 20px var(--shadow);
    margin-bottom: 40px;
}

.manual-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.manual-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.manual-section h2 {
    color: var(--primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.manual-section h3 {
    color: var(--text-primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.manual-section h4 {
    color: var(--primary-dark);
    margin-top: 25px;
    margin-bottom: 10px;
}

/* Image Placeholder */
.image-placeholder {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border: 2px dashed var(--primary);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.image-placeholder::before {
    content: '📷';
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.image-placeholder p {
    color: var(--primary);
    font-weight: 500;
    margin: 0;
}

.image-placeholder.small {
    padding: 30px 20px;
}

.image-placeholder.small::before {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Screenshot container */
.screenshot-container {
    margin: 25px 0;
    text-align: center;
}

.screenshot-container img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 30px var(--shadow);
    border: 1px solid var(--border);
}

.screenshot-caption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Info Boxes */
.info-box {
    padding: 20px 25px;
    border-radius: 12px;
    margin: 20px 0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-box-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-box-content h4 {
    margin: 0 0 5px 0;
}

.info-box-content p {
    margin: 0;
}

.info-box.tip {
    background: #E8F5E9;
    border-left: 4px solid var(--accent);
}

.info-box.warning {
    background: #FFF3E0;
    border-left: 4px solid var(--warning);
}

.info-box.note {
    background: #E3F2FD;
    border-left: 4px solid var(--primary);
}

.info-box.android {
    background: #F3E5F5;
    border-left: 4px solid #9C27B0;
}

/* Keyboard Shortcuts */
.keyboard-shortcut {
    display: inline-block;
    background: var(--text-primary);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem;
    margin: 0 3px;
    box-shadow: 0 2px 0 #000;
}

.shortcut-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.shortcut-table th,
.shortcut-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.shortcut-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.shortcut-table tr:hover {
    background: var(--background);
}

/* Feature List */
.feature-list {
    list-style: none;
    margin: 20px 0;
}

.feature-list li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Steps */
.steps {
    counter-reset: step;
    margin: 25px 0;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--background);
    border-radius: 12px;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    background: var(--gradient-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 10px 0;
}

.step-content p {
    margin: 0;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section a:hover {
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 992px) {
    .manual-layout {
        grid-template-columns: 1fr;
    }

    .manual-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px var(--shadow);
        gap: 10px;
    }

    .navbar-nav.active {
        display: flex;
    }

    .navbar-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .manual-content {
        padding: 25px;
    }

    .shortcut-table {
        font-size: 0.85rem;
    }

    .shortcut-table th,
    .shortcut-table td {
        padding: 8px 10px;
    }
}

/* ========================================
   Utilities
   ======================================== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}
