/* T-Shirt Custom Tool - Main Styles */
/* Created: 2025-10-17 */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

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

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 10px;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
}

/* Page Hero */
.page-hero {
    min-height: 40vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: white;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    margin-bottom: 1rem;
}

/* Product Cards */
.product-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

.price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
    margin-right: 0.5rem;
}

.badge-sale {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    z-index: 2;
}

.badge-out-of-stock {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--dark-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    z-index: 2;
}

/* Blog Cards */
.blog-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.blog-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.badge-category {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-content {
    padding: 1.5rem;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

/* CTA Section */
.cta-section {
    min-height: 50vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding: 5rem 0;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
}

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

.footer h5,
.footer h6 {
    color: white !important;
}

.footer p,
.footer li,
.footer a {
    color: white !important;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white !important;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: rgba(255,255,255,0.8) !important;
    padding-left: 5px;
}

/* Footer text overrides */
.footer .text-white {
    color: white !important;
}

.footer .text-muted {
    color: white !important;
}

.footer .small {
    color: white !important;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-5px);
}

/* Scroll to Top Button */
.btn-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.btn-scroll-top.show {
    display: flex;
}

.btn-scroll-top:hover {
    transform: translateY(-5px);
}

/* WhatsApp Floating Button */
.btn-whatsapp {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    background: #25D366;
    color: white;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
    border: none;
}

.btn-whatsapp:hover {
    background: #20ba5a;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp i {
    font-size: 24px;
}

/* WhatsApp and scroll-to-top buttons are now stacked vertically */

/* Testimonials Section Styles */
.testimonials-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.testimonial-rating {
    font-size: 1.1rem;
}

.testimonial-content {
    font-style: italic;
    color: #6c757d;
    line-height: 1.6;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
}

.author-name {
    color: #212529;
}

.author-title {
    color: #6c757d;
}

/* Testimonials Carousel Styles */
#testimonialsCarousel {
    position: relative;
}

#testimonialsCarousel .carousel-control-prev,
#testimonialsCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

#testimonialsCarousel .carousel-control-prev {
    left: -25px;
}

#testimonialsCarousel .carousel-control-next {
    right: -25px;
}

#testimonialsCarousel .carousel-control-prev:hover,
#testimonialsCarousel .carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.2);
    opacity: 1;
}

#testimonialsCarousel .carousel-control-prev-icon,
#testimonialsCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

#testimonialsCarousel .carousel-indicators {
    bottom: -50px;
    margin-bottom: 0;
}

#testimonialsCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: #dee2e6;
    border: none;
    opacity: 0.5;
    transition: all 0.3s ease;
}

#testimonialsCarousel .carousel-indicators button.active {
    background-color: #0d6efd;
    opacity: 1;
}

#testimonialsCarousel .carousel-indicators button:hover {
    opacity: 0.8;
}

/* Responsive adjustments for carousel */
@media (max-width: 768px) {
    #testimonialsCarousel .carousel-control-prev {
        left: 10px;
    }
    
    #testimonialsCarousel .carousel-control-next {
        right: 10px;
    }
    
    #testimonialsCarousel .carousel-control-prev,
    #testimonialsCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
}

/* Navbar Logo Styles */
.navbar-logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

/* Utility Classes */
.min-vh-75 {
    min-height: 75vh;
}

/* Dark Mode */
[data-theme="dark"] {
    --dark-color: #f9fafb;
    --light-color: #1f2937;
    background-color: #1f2937;
    color: #f9fafb;
}

[data-theme="dark"] .navbar,
[data-theme="dark"] .card,
[data-theme="dark"] .product-card,
[data-theme="dark"] .blog-card {
    background-color: #374151;
    color: #f9fafb;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

