/* Genetix Company Website Styles */

/* ============================================
   CSS Variables - Color Theme
   ============================================ */
:root {
    --primary-purple: #6C63FF;
    --primary-purple-dark: #5a52d5;
    --primary-purple-light: #8b85ff;
    --secondary-blue: #0D6EFD;
    --secondary-blue-dark: #0b5ed7;
    --white: #FFFFFF;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --text-muted: #6c757d;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --transition: all 0.3s ease;
}

/* ============================================
   Base Styles
   ============================================ */
body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark-gray);
    background-color: var(--white);
    line-height: 1.6;
}

.bg-primary-custom {
    background-color: var(--primary-purple) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-blue) !important;
}

.text-primary-custom {
    color: var(--primary-purple) !important;
}

.text-secondary-custom {
    color: var(--secondary-blue) !important;
}

.btn-primary-custom {
    background-color: var(--primary-purple);
    border-color: var(--primary-purple);
    color: var(--white);
}

.btn-primary-custom:hover {
    background-color: var(--primary-purple-dark);
    border-color: var(--primary-purple-dark);
    color: var(--white);
}

.btn-secondary-custom {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
    color: var(--white);
}

.btn-secondary-custom:hover {
    background-color: var(--secondary-blue-dark);
    border-color: var(--secondary-blue-dark);
    color: var(--white);
}

/* ============================================
   Navbar Styles
   ============================================ */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-purple) !important;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--dark-gray) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-purple) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary-purple) !important;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-icon {
    opacity: 0.3;
}

.hero-section .btn-light {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--primary-purple);
    font-weight: 600;
    transition: var(--transition);
}

.hero-section .btn-light:hover {
    background-color: var(--light-gray);
    border-color: var(--light-gray);
    color: var(--primary-purple-dark);
    transform: translateY(-2px);
}

.hero-section .btn-outline-light {
    border-color: var(--white);
    color: var(--white);
    font-weight: 600;
    transition: var(--transition);
}

.hero-section .btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-purple);
    transform: translateY(-2px);
}

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: 80px 0;
}

.section-title {
    color: var(--dark-gray);
}

.badge {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ============================================
   Product Cards
   ============================================ */
.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    background-color: var(--white);
}

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

.product-card img {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
    overflow: hidden;
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
}

.product-card .card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.product-card .btn {
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
}

.product-card .btn-outline-primary {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

.product-card .btn-outline-primary:hover {
    background-color: var(--primary-purple);
    border-color: var(--primary-purple);
    color: var(--white);
}

/* ============================================
   Coming Soon Badge
   ============================================ */
.badge-coming-soon {
    background-color: #ffc107;
    color: #000;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    display: inline-block;
}

.badge-status {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

.badge-published {
    background-color: #198754;
    color: #fff;
}

.badge-coming-soon-status {
    background-color: #ffc107;
    color: #000;
}

/* ============================================
   Product Detail Page
   ============================================ */
.product-detail-section {
    padding: 60px 0;
}

.product-gallery {
    position: relative;
}

.product-gallery img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.product-info h1 {
    color: var(--dark-gray);
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-info .description {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.product-info .btn-visit {
    background-color: var(--primary-purple);
    border-color: var(--primary-purple);
    color: var(--white);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.product-info .btn-visit:hover {
    background-color: var(--primary-purple-dark);
    border-color: var(--primary-purple-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.product-info .badge-status-display {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* ============================================
   Image Gallery Slider
   ============================================ */
.gallery-slider .carousel-item img {
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.gallery-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
}

.gallery-thumbnails img:hover,
.gallery-thumbnails img.active {
    opacity: 1;
    border-color: var(--primary-purple);
}

/* ============================================
   Category Page
   ============================================ */
.category-header {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 60px 0;
    margin-bottom: 40px;
}

.category-header h1 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* ============================================
   Links
   ============================================ */
a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-purple-dark);
}

/* ============================================
   Footer
   ============================================ */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0;
}

footer a {
    color: var(--primary-purple-light);
}

footer a:hover {
    color: var(--white);
}

/* ============================================
   Admin Styles
   ============================================ */
.admin-bg {
    background-color: var(--light-gray);
    min-height: 100vh;
}

.card {
    border-radius: 12px;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }

    .hero-section .display-3 {
        font-size: 2.5rem;
    }

    section {
        padding: 50px 0;
    }

    .gallery-slider .carousel-item img {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hero-section .display-3 {
        font-size: 2rem;
    }

    .product-card {
        margin-bottom: 1rem;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.product-card {
    animation: fadeIn 0.5s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   Auth Pages - Login & Register
   ============================================ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6C63FF 0%, #0D6EFD 50%, #6C63FF 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.auth-wrapper::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, 30px) rotate(10deg); }
}

.auth-container {
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.auth-split {
    display: flex;
    min-height: 550px;
}

.auth-brand-side {
    flex: 1;
    background: linear-gradient(135deg, #6C63FF 0%, #0D6EFD 100%);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-brand-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.auth-brand-side .brand-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-size: 48px;
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 30px 10px rgba(255, 255, 255, 0.1); }
}

.auth-brand-side h2 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.auth-brand-side p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 280px;
}

.auth-form-side {
    flex: 1;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-side .form-header {
    margin-bottom: 35px;
    text-align: center;
}

.auth-form-side .form-header h3 {
    color: #343a40;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-form-side .form-header p {
    color: #6c757d;
    font-size: 0.95rem;
}

.auth-form-side .form-header p a {
    color: #6C63FF;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.auth-form-side .form-header p a:hover {
    color: #5a52d5;
}

.form-floating {
    margin-bottom: 20px;
}

.form-floating > label {
    color: #6c757d;
    font-weight: 500;
}

.form-floating > .form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem 1rem;
    height: auto;
    transition: all 0.3s ease;
}

.form-floating > .form-control:focus {
    border-color: #6C63FF;
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

.form-floating > .form-control.is-invalid {
    border-color: #dc3545;
}

.form-floating > .form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 6px;
    display: block;
}

.form-check {
    margin-bottom: 25px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0;
    cursor: pointer;
    border: 2px solid #dee2e6;
    transition: all 0.2s;
}

.form-check-input:checked {
    background-color: #6C63FF;
    border-color: #6C63FF;
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.15);
}

.form-check-label {
    color: #6c757d;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

.btn-auth {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, #6C63FF 0%, #0D6EFD 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-auth::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.3);
}

.btn-auth:hover::before {
    left: 100%;
}

.btn-auth:active {
    transform: translateY(0);
}

.btn-auth i {
    margin-right: 8px;
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.divider span {
    padding: 0 15px;
    color: #6c757d;
    font-size: 0.85rem;
}

.social-auth {
    display: flex;
    gap: 12px;
}

.btn-social {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    background: white;
    color: #343a40;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-social:hover {
    border-color: #6C63FF;
    color: #6C63FF;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.1);
}

.btn-social i {
    font-size: 1.1rem;
}

.btn-social.google i {
    color: #DB4437;
}

.btn-social.facebook i {
    color: #4267B2;
}

.btn-social.apple i {
    color: #000000;
}

/* Form Row - Two Columns */
.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-floating {
    flex: 1;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
}

.password-strength-bar {
    height: 4px;
    border-radius: 2px;
    background: #e9ecef;
    overflow: hidden;
    margin-bottom: 6px;
}

.password-strength-bar .strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-bar .strength-fill.weak {
    width: 33%;
    background: #dc3545;
}

.password-strength-bar .strength-fill.medium {
    width: 66%;
    background: #ffc107;
}

.password-strength-bar .strength-fill.strong {
    width: 100%;
    background: #198754;
}

.password-strength-text {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Remember Me & Forgot Password */
.forgot-password {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-password a {
    color: #6C63FF;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password a:hover {
    color: #5a52d5;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-split {
        flex-direction: column;
    }

    .auth-brand-side {
        padding: 40px 30px;
        min-height: 200px;
    }

    .auth-brand-side .brand-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
        margin-bottom: 20px;
    }

    .auth-brand-side h2 {
        font-size: 1.5rem;
    }

    .auth-form-side {
        padding: 35px 25px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

