/* Global Styles */
:root {
    --primary-color: #1e88e5;
    --secondary-color: #ff9800;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --success-color: #4caf50;
    --danger-color: #f44336;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

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

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e88e5 0%, #512da8 100%);
    color: white;
    padding: 6rem 0;
    margin-bottom: 2rem;
}

.hero-section h1 {
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

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

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    color: #6c757d;
    margin-left: 0.5rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #1976d2;
    border-color: #1976d2;
    transform: translateY(-1px);
}

/* Price Comparison Table */
.table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.table tbody tr:hover {
    background-color: rgba(0,0,0,0.02);
}

/* Server Status */
.server-status .card {
    border-radius: 10px;
}

.badge {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* FAQ Section */
.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,0.125);
}

/* Footer */
footer {
    background-color: var(--dark-color);
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .card-img-top {
        height: 160px;
    }
    
    .price {
        font-size: 1.25rem;
    }
}

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

.card, .section-title {
    animation: fadeIn 0.6s ease-out forwards;
}

/* SEO Optimization */
.section-title {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1976d2;
}

/* Product Cards */
.product-card {
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.product-features {
    margin: 1rem 0;
}

.product-features .badge {
    margin-right: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.discount-badge {
    background: var(--danger-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.featured-products .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-products .card:hover .card-img-top {
    transform: scale(1.05);
}

.featured-products .card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.featured-products .card-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive adjustments for product cards */
@media (max-width: 768px) {
    .featured-products .card-img-top {
        height: 200px;
    }
    
    .product-features .badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .price-container {
        flex-wrap: wrap;
    }
}

/* Animation for product badges */
@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.product-badge {
    animation: badgePulse 2s infinite;
}

/* Reviews Section */
.review-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.review-avatar {
    margin-right: 1rem;
}

.review-avatar img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.reviewer-name {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.review-rating {
    color: #ffc107;
}

.review-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1rem;
}

.review-date {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.verified-purchase {
    font-size: 0.85rem;
    color: var(--success-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Trust Badges */
.trust-badge {
    background: white;
    border-radius: 10px;
    padding: 2rem 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.trust-badge i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.trust-badge h4 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.trust-badge p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Responsive adjustments for reviews and trust badges */
@media (max-width: 768px) {
    .review-card {
        margin-bottom: 1rem;
    }
    
    .trust-badge {
        margin-bottom: 1rem;
    }
    
    .review-content p {
        font-size: 0.9rem;
    }
}

/* Animation for trust badges */
@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.trust-badge i {
    animation: iconPulse 2s infinite;
} 