/**
 * Main Site Styles
 * Customized styles for the email marketing public website
 */

/* Base Styles */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar styling */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-light .navbar-brand {
    color: #0d6efd;
}

.navbar-light .navbar-brand:hover {
    color: #0a58ca;
}

.nav-link {
    font-weight: 500;
}

/* Hero section */
.hero-section {
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.hero-section:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%230d6efd' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Feature icon */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    font-size: 2rem;
    border-radius: 50%;
    background-color: #0d6efd;
    color: white;
}

/* Card styling */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 1.5rem;
}

/* Footer styling */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.footer a {
    color: #6c757d;
    text-decoration: none;
}

.footer a:hover {
    color: #0d6efd;
}

/* Form styling */
.form-control {
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Button styling */
.btn {
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    border-radius: 0.375rem;
}

.btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1.125rem;
}

/* Section styling */
.section-heading {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-heading:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #0d6efd;
}

/* Confirmation dialog icon */
.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    font-size: 2rem;
    margin: 0 auto;
}

/* Blockquote styling */
blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    font-style: italic;
}

/* Code block styling */
pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    overflow-x: auto;
}

code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
}

pre code {
    padding: 0;
    background-color: transparent;
}

/* API code example */
.api-example {
    background-color: #212529;
    color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    line-height: 1.5;
}

.api-example .comment {
    color: #6c757d;
}

.api-example .keyword {
    color: #ff79c6;
}

.api-example .string {
    color: #f1fa8c;
}

.api-example .function {
    color: #50fa7b;
}

/* For embedded forms in external sites */
.alegorix-form {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 100%;
    padding: 15px;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.alegorix-dark {
    background-color: #343a40;
    color: #fff;
}

.alegorix-form-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.alegorix-form-group {
    margin-bottom: 15px;
}

.alegorix-form-control {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.alegorix-dark .alegorix-form-control {
    background-color: #495057;
    border-color: #6c757d;
    color: #fff;
}

.alegorix-form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.alegorix-btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 4px;
    color: #fff;
    background-color: #0d6efd;
    cursor: pointer;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.alegorix-btn:hover {
    background-color: #0b5ed7;
}

.alegorix-dark .alegorix-btn {
    background-color: #6c757d;
}

.alegorix-dark .alegorix-btn:hover {
    background-color: #5a6268;
}

/* Responsive Media Queries */
@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .feature-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
    }
}
