/* Guide Devices - Main Stylesheet */

/* Full-Width Containers with 10% Margins */
.header-container,
.nav-container,
.content-container,
.footer-container {
    width: 100%;
    padding-left: 10%;
    padding-right: 10%;
    margin: 0 auto;
}

/* Header Styles */
.header-top {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-logo {
    flex: 0 0 auto;
}

.header-right {
    flex: 0 0 auto;
}

.language-selector a {
    transition: opacity 0.3s ease;
    padding: 0.25rem 0.5rem;
}

.language-selector a:hover {
    opacity: 0.8;
}

.language-selector img {
    vertical-align: middle;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Navigation Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar-nav {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.navbar-nav .nav-item {
    flex: 1;
    text-align: center;
}

.navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    color: #333;
    display: block;
    text-align: center;
}

.navbar-nav .nav-link:hover {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

.navbar-nav .nav-link.active {
    color: #dc3545;
    border-bottom: 2px solid #dc3545;
}

/* Main Content Styles */
.main-content {
    min-height: 400px;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.newsletter-section .form-control:focus {
    border-color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25);
}

.newsletter-section .btn-light:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Footer Styles */
.footer-main {
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    margin-top: 0 !important;
}

.footer-container .row {
    gap: 2rem;
}

.footer-container .col-md-3 {
    text-align: center;
}

/* Remove default body margin and setup sticky footer */
html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.page-wrapper {
    flex: 1 0 auto;
}

.footer-main {
    flex-shrink: 0;
}

.footer-main h5 {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-main a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

.footer-main .bi {
    margin-right: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-container,
    .nav-container,
    .content-container,
    .footer-container {
        padding-left: 5%;
        padding-right: 5%;
    }
    
    .header-top .d-flex {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .header-logo,
    .header-right {
        width: 100%;
        text-align: center !important;
    }
    
    .header-right {
        justify-content: center !important;
    }
    
    .language-selector {
        margin: 0.5rem 0;
    }
    
    .navbar-nav {
        flex-direction: column;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
    }
    
    .footer-container .col-md-3 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .newsletter-section .col-md-6 {
        text-align: center;
    }
}

/* Utility Classes */
.text-white-50 {
    color: rgba(255,255,255,0.5) !important;
}

/* Smooth Transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease;
}

button, .btn {
    transition: all 0.3s ease;
}

/* Card Hover Effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Product Grid View Styles */
.product-card {
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    border-color: #dc3545;
}

.product-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e0e0e0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.product-card .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    min-height: 2.5rem;
    margin-bottom: 0.5rem;
}

.product-card .price {
    font-size: 1.1rem;
    color: #dc3545;
}

/* Product List View Styles */
.table-hover tbody tr {
    transition: background-color 0.2s ease;
}

.table-hover tbody tr:hover {
    background-color: rgba(220, 53, 69, 0.05);
    cursor: pointer;
}
