/* Found A Pet - Main Stylesheet */
/* Etonix - 2025 */

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #059669;
    --error-color: #dc2626;
    --warning-color: #d97706;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset and Base Styles */
html {
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-white);
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#main-content {
    width: 100%;
}

.main {
    width: 100%;
}

.section {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--background-light);
}

/* Header */
.header {
    background: var(--background-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    left: 0;
    right: 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    margin-right: 10px;
}

.navigation {
    display: flex;
    gap: 30px;
}

.navigation a {
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.navigation a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    font-size: 20px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Steps Section */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--text-primary);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
    padding: 30px;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

/* Benefits Section */
.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.benefit-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 20px;
}

.benefit h3 {
    margin-bottom: 15px;
    font-size: 22px;
    color: var(--text-primary);
}

/* Demo CTA */
.demo-cta {
    text-align: center;
    padding: 60px 30px;
    background: var(--background-light);
    border-radius: var(--border-radius);
}

.demo-tag {
    margin: 40px 0;
}

.demo-qr {
    display: block;
    margin: 0 auto 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.demo-text {
    font-weight: 600;
    color: var(--text-secondary);
}

/* Pet Profile */
.pet-profile {
    min-height: 100vh;
    background: var(--background-light);
    padding: 40px 0;
}

.profile-header {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: center;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.pet-icon {
    font-size: 48px;
}

.profile-info h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.pet-type {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.pet-detail {
    margin-bottom: 8px;
}

/* Profile Sections */
.profile-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.profile-section h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.medical-info {
    border-left: 4px solid var(--warning-color);
}

.medical-alert {
    background: #fef3c7;
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid #fbbf24;
}

/* Contact Section */
.contact-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.contact-section h2 {
    margin-bottom: 20px;
    font-size: 28px;
    color: var(--primary-color);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Alerts */
.alert {
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 40px 0 20px;
    width: 100%;
    left: 0;
    right: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: bold;
}

.footer-logo i {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.footer-section a:hover {
    color: white;
}

.footer-info {
    text-align: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .profile-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .benefits {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        width: 100%;
    }
    
    .footer {
        width: 100%;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .profile-header {
        padding: 20px;
    }
    
    .contact-section {
        padding: 20px;
    }
    
    .profile-section {
        padding: 20px;
    }
}

/* Boxy Lightbox Styles */
.boxy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.boxy-overlay.active {
    opacity: 1;
    visibility: visible;
}

.boxy-lightbox {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.boxy-media-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.boxy-media-container img,
.boxy-media-container video,
.boxy-media-container iframe {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.boxy-description {
    padding: 15px 20px;
    background: white;
    font-size: 14px;
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
}

.boxy-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: white;
    border-top: 1px solid var(--border-color);
}

.boxy-pagination {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.boxy-close, .boxy-share, .boxy-prev, .boxy-next {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.boxy-close:hover, .boxy-share:hover,
.boxy-prev:hover, .boxy-next:hover {
    background: var(--background-light);
    color: var(--text-primary);
}

.boxy-prev, .boxy-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    font-size: 24px;
    padding: 15px 20px;
    z-index: 10;
}

.boxy-prev {
    left: 20px;
}

.boxy-next {
    right: 20px;
}

.boxy-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--text-primary);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.boxy-toast-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
}

/* PretextUI Modal Styles */
.pretext-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pretext-modal.active {
    opacity: 1;
    visibility: visible;
}

.pretext-modal-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.pretext-modal.active .pretext-modal-dialog {
    transform: scale(1);
}

.pretext-modal-small .pretext-modal-dialog {
    width: 400px;
}

.pretext-modal-medium .pretext-modal-dialog {
    width: 600px;
}

.pretext-modal-large .pretext-modal-dialog {
    width: 800px;
}

.pretext-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.pretext-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.pretext-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.pretext-modal-close:hover {
    color: var(--text-primary);
}

.pretext-modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.pretext-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.pretext-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pretext-btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.pretext-btn-primary:hover {
    background-color: var(--primary-hover);
}

.pretext-btn-secondary {
    background-color: var(--background-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.pretext-btn-secondary:hover {
    background-color: var(--border-color);
}

.pretext-btn-danger {
    background-color: var(--error-color);
    color: white;
}

.pretext-btn-danger:hover {
    background-color: #b91c1c;
}

/* Notification Styles */
.pretext-notification-container {
    position: fixed;
    z-index: 10001;
    pointer-events: none;
}

.pretext-notification-container.position-top-right {
    top: 20px;
    right: 20px;
}

.pretext-notification-container.position-top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.pretext-notification {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 12px;
    overflow: hidden;
    pointer-events: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    min-width: 300px;
    position: relative;
}

.pretext-notification.active {
    transform: translateX(0);
}

.pretext-notification-container.position-top-center .pretext-notification {
    transform: translateY(-100%);
}

.pretext-notification-container.position-top-center .pretext-notification.active {
    transform: translateY(0);
}

.pretext-notification {
    display: flex;
    align-items: flex-start;
    padding: 16px;
}

.pretext-notification.type-success {
    border-left: 4px solid var(--success-color);
}

.pretext-notification.type-error {
    border-left: 4px solid var(--error-color);
}

.pretext-notification.type-warning {
    border-left: 4px solid var(--warning-color);
}

.pretext-notification.type-info {
    border-left: 4px solid var(--primary-color);
}

.pretext-notification-icon {
    margin-right: 12px;
    font-size: 20px;
}

.pretext-notification.type-success .pretext-notification-icon {
    color: var(--success-color);
}

.pretext-notification.type-error .pretext-notification-icon {
    color: var(--error-color);
}

.pretext-notification.type-warning .pretext-notification-icon {
    color: var(--warning-color);
}

.pretext-notification.type-info .pretext-notification-icon {
    color: var(--primary-color);
}

.pretext-notification-content {
    flex: 1;
}

.pretext-notification-message {
    margin: 0;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.4;
}

.pretext-notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    margin-left: 12px;
}

.pretext-notification-close:hover {
    color: var(--text-primary);
}

.pretext-notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    width: 0%;
    transition: width linear;
}

/* Toast Styles */
.pretext-toast-container {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
}

.pretext-toast-container.position-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.pretext-toast {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    pointer-events: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 400px;
}

.pretext-toast.active {
    transform: translateY(0);
}

.pretext-toast-icon {
    font-size: 16px;
}

.pretext-toast-content {
    font-size: 14px;
    line-height: 1.4;
}

/* Form Enhancement Styles */
.field-error {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 4px;
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.character-counter {
    text-align: right;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Purchase Form Enhancements */
.purchase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.purchase-form-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.purchase-form h3 {
    margin-bottom: 30px;
    color: var(--text-primary);
    font-size: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.purchase-form select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    background: white;
}

.purchase-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.terms {
    margin: 30px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.product-info {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.product-image {
    text-align: center;
    margin-bottom: 20px;
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.features-list li {
    padding: 8px 0;
    font-size: 16px;
}

.price-box {
    background: var(--background-light);
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    margin-top: 20px;
}

.price {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.price .currency,
.price .period {
    font-size: 24px;
}

.price-note {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.guarantees {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.guarantee {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--background-light);
    border-radius: 8px;
}

.guarantee-icon {
    font-size: 24px;
}

.purchase-header {
    text-align: center;
    margin-bottom: 40px;
}

.purchase-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.purchase-header p {
    font-size: 18px;
    color: var(--text-secondary);
}
