﻿/* Medicast - Updated Stylesheet
 * A responsive, mobile-friendly design based on the Medicast product branding
 * This stylesheet is designed to integrate with your existing project
 */

:root {
    /* Color palette extracted from the product image */
    --primary-blue: #0072bb; /* Deep blue from the background */
    --secondary-blue: #00a0e3; /* Lighter blue highlights */
    --accent-yellow: #ffd100; /* Yellow from the logo/header */
    --dark-blue: #005b95; /* Darker blue for text/accents */
    --white: #ffffff;
    --light-gray: #f4f4f4;
    --text-dark: #333333;
    --text-light: #ffffff;
    --success-green: #008755;
    --footer-blue: #005480;
}

/* Base styles to update without overriding existing animations */
body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Navigation - Preserve existing functionality */
.navbar {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: var(--accent-yellow) !important;
    font-weight: 700;
}

.navbar .nav-link {
    color: var(--text-light) !important;
    position: relative;
}

    .navbar .nav-link:after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--accent-yellow);
        transition: width 0.3s ease;
    }

    .navbar .nav-link:hover:after,
    .navbar .nav-link.active:after {
        width: 100%;
    }

    .navbar .nav-link:hover,
    .navbar .nav-link.active {
        color: var(--accent-yellow) !important;
    }

/* Buttons - Can be applied to existing buttons */
.btn-primary {
    background-color: var(--accent-yellow) !important;
    color: var(--primary-blue) !important;
    border-color: var(--accent-yellow) !important;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background-color: #e6bc00 !important;
        border-color: #e6bc00 !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

.btn-secondary {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: var(--text-light) !important;
    transition: all 0.3s ease;
}

    .btn-secondary:hover {
        background-color: var(--dark-blue) !important;
        border-color: var(--dark-blue) !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

.btn-outline-primary {
    border-color: var(--accent-yellow) !important;
    color: var(--accent-yellow) !important;
    transition: all 0.3s ease;
}

    .btn-outline-primary:hover {
        background-color: var(--accent-yellow) !important;
        color: var(--primary-blue) !important;
        transform: translateY(-2px);
    }

/* Product Cards - Apply to existing card elements */
.card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    margin-bottom: 20px;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }

.card-title {
    color: var(--primary-blue);
    font-weight: 600;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Hero Section - If you have a jumbotron/hero section */
.jumbotron,
.hero,
.banner {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--text-light);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

    .hero h1,
    .jumbotron h1,
    .banner h1 {
        color: var(--text-light);
        font-weight: 700;
    }

/* Special Medicast product styling */
.medicast-product {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.medicast-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--text-light);
    padding: 15px;
    position: relative;
}

.medicast-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 4px;
}

.medicast-content {
    padding: 20px;
}

.joint-diagram img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

.usage-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    background-color: var(--accent-yellow);
    padding: 15px;
    border-radius: 8px;
}

.usage-icon {
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-specs {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

/* Features Section - Can be applied to existing features sections */
.feature-card {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

/* Tables - Product info tables */
.table-medicast {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

    .table-medicast th {
        background-color: var(--primary-blue);
        color: var(--text-light);
        padding: 10px;
        text-align: left;
    }

    .table-medicast td {
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }

    .table-medicast tr:nth-child(even) {
        background-color: var(--light-gray);
    }

/* Forms - Update existing forms */
.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 114, 187, 0.25);
}

label {
    font-weight: 500;
}

/* Footer - Apply to existing footer */
footer {
    background-color: var(--footer-blue);
    color: var(--text-light);
    padding: 40px 0 20px;
}

    footer h5 {
        color: var(--accent-yellow);
        margin-bottom: 15px;
    }

    footer ul {
        list-style: none;
        padding-left: 0;
    }

    footer a {
        color: var(--text-light);
    }

        footer a:hover {
            color: var(--accent-yellow);
            text-decoration: none;
        }

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    margin-right: 10px;
    transition: all 0.3s ease;
}

    .social-links a:hover {
        background-color: var(--accent-yellow);
        color: var(--primary-blue);
        transform: translateY(-3px);
    }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
}

/* Product Detail Page */
.product-gallery img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.product-thumbnail {
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

    .product-thumbnail:hover,
    .product-thumbnail.active {
        border-color: var(--primary-blue);
    }

.product-price-detail {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.features-list {
    list-style: none;
    padding-left: 0;
}

    .features-list li {
        position: relative;
        padding-left: 1.5rem;
        margin-bottom: 8px;
    }

        .features-list li:before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--success-green);
            font-weight: bold;
        }

/* Quantity input for cart */
.quantity-input {
    width: 80px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Breadcrumb styling */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
}

.breadcrumb-item a {
    color: var(--primary-blue);
}

.breadcrumb-item.active {
    color: #6c757d;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}

/* Section titles */
.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-blue);
}

/* Media Queries - For Responsive Design */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: var(--primary-blue);
        padding: 15px;
        border-radius: 0 0 8px 8px;
    }

    .product-detail-images,
    .product-detail-info {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .hero h1,
    .jumbotron h1,
    .banner h1 {
        font-size: 2rem;
    }

    .usage-icons {
        gap: 10px;
    }

    .usage-icon {
        width: 50px;
        height: 50px;
    }

    .product-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    body {
        font-size: 0.9rem;
    }

    .card-price {
        font-size: 1.25rem;
    }

    .product-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* Utility Classes - Helpful additions */
.text-primary {
    color: var(--primary-blue) !important;
}

.text-accent {
    color: var(--accent-yellow) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

.bg-accent {
    background-color: var(--accent-yellow) !important;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%) !important;
}

.rounded-lg {
    border-radius: 8px !important;
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.shadow-md {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1) !important;
}

/* === Preserving existing animations === */
/* Note: This section is meant to work with your existing animations.
   You should keep all animation-related classes and keyframes from your current CSS */

/* This is a placeholder - replace with your actual animation classes */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* If you have slide animations */
.slide-in {
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* If you have rotating animations */
.rotate {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* If you have a pulse animation for highlights */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}
