/* ===================================
   WhatsBot - Estilos CSS
   Desenvolvido por Pixel em Foco
   =================================== */

/* Reset e Variáveis */
:root {
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
    --whatsapp-light: #DCF8C6;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --error: #ff4444;
    --success: #00C851;
    --border-radius: 12px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HEADER
   =================================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--whatsapp-green);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.highlight {
    color: var(--whatsapp-green);
}

.hero-description {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Phone Mockup */
.phone-mockup {
    max-width: 300px;
    margin: 0 auto;
    background: #000;
    border-radius: 30px;
    padding: 15px;
    box-shadow: var(--shadow-lg);
}

.phone-screen {
    background: #e5ddd5;
    border-radius: 20px;
    padding: 20px;
    min-height: 500px;
}

.whatsapp-chat {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 8px;
    position: relative;
}

.chat-message.received {
    background: var(--white);
    align-self: flex-start;
}

.chat-message.sent {
    background: var(--whatsapp-light);
    align-self: flex-end;
}

.chat-message p {
    margin: 0;
    font-size: 14px;
}

.chat-message .time {
    font-size: 11px;
    color: var(--text-gray);
    display: block;
    margin-top: 5px;
    text-align: right;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--whatsapp-green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-primary:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--whatsapp-green);
}

.btn-secondary:hover {
    background: var(--whatsapp-green);
    color: var(--white);
}

.btn-whatsapp {
    width: 100%;
    background: var(--whatsapp-green);
    color: var(--white);
    justify-content: center;
    font-size: 18px;
    padding: 16px;
}

.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-2px);
}

.btn-whatsapp:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* ===================================
   FEATURES SECTION
   =================================== */
.features {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===================================
   INSTALLATION SECTION
   =================================== */
.installation {
    padding: 80px 0;
    background: var(--bg-light);
}

.installation-steps {
    max-width: 900px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--whatsapp-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.step-content h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-gray);
    margin-bottom: 15px;
}

.step-content ul {
    margin-left: 20px;
    color: var(--text-gray);
}

.step-content ul li {
    margin-bottom: 8px;
}

.code-block {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 10px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.installation-note {
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin-top: 40px;
    border-radius: var(--border-radius);
}

.installation-note a {
    color: var(--whatsapp-green);
    font-weight: 600;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    padding: 80px 0;
    background: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.tech-stack {
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.tech-stack h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--whatsapp-green);
    color: var(--white);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* ===================================
   APP PAGE (whatsbot.html)
   =================================== */
.app-page {
    background: var(--bg-light);
    min-height: 100vh;
}

.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.app-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.app-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.app-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.app-header p {
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Form */
.whatsapp-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--whatsapp-green);
}

.form-hint {
    font-size: 13px;
    color: var(--text-gray);
}

/* Info Sidebar */
.info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.info-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.info-card ul,
.info-card ol {
    margin-left: 20px;
    color: var(--text-gray);
}

.info-card li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-active {
    background: var(--success);
}

.status-pending {
    background: #ffc107;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
}

.footer p {
    margin: 5px 0;
}

.footer-note {
    font-size: 14px;
    color: #aaa;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 36px;
    }

    .app-wrapper {
        grid-template-columns: 1fr;
    }

    .phone-mockup {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .nav {
        gap: 15px;
        font-size: 14px;
    }

    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }

    .app-card {
        padding: 25px;
    }
}
