/* ========================================
   PartRoll Theme - SKF Style
   Blue, White, Red Professional Theme
   ======================================== */

/* Root Variables - SKF Color Scheme */
:root {
    /* Primary Blue Colors (SKF Blue) */
    --partroll-primary: #003d82;
    --partroll-primary-light: #0052a3;
    --partroll-primary-dark: #002d5f;
    --partroll-blue: #0066cc;
    --partroll-blue-light: #3399ff;
    --partroll-blue-lighter: #e6f2ff;
    
    /* Red Accent Colors */
    --partroll-red: #e60012;
    --partroll-red-light: #ff3333;
    --partroll-red-dark: #cc0010;
    
    /* Neutral Colors */
    --partroll-white: #ffffff;
    --partroll-gray-light: #f5f5f5;
    --partroll-gray: #e0e0e0;
    --partroll-gray-dark: #666666;
    --partroll-black: #1a1a1a;
    
    /* Gradients */
    --partroll-gradient-primary: linear-gradient(135deg, #003d82 0%, #0066cc 100%);
    --partroll-gradient-red: linear-gradient(135deg, #e60012 0%, #ff3333 100%);
    --partroll-gradient-hero: linear-gradient(135deg, #003d82 0%, #0052a3 50%, #0066cc 100%);
    
    /* Shadows */
    --partroll-shadow-sm: 0 2px 8px rgba(0, 61, 130, 0.1);
    --partroll-shadow-md: 0 4px 16px rgba(0, 61, 130, 0.15);
    --partroll-shadow-lg: 0 8px 24px rgba(0, 61, 130, 0.2);
    --partroll-shadow-xl: 0 12px 40px rgba(0, 61, 130, 0.25);
    
    /* Transitions */
    --partroll-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --partroll-transition-fast: all 0.15s ease;
    
    /* Border Radius */
    --partroll-radius: 8px;
    --partroll-radius-lg: 16px;
    --partroll-radius-xl: 24px;
}

/* Typography */
.text-partroll-primary {
    color: var(--partroll-primary) !important;
}

.text-partroll-blue {
    color: var(--partroll-blue) !important;
}

.text-partroll-red {
    color: var(--partroll-red) !important;
}

.text-gradient-partroll {
    background: var(--partroll-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn-partroll-primary {
    background: var(--partroll-gradient-primary);
    border: none;
    color: white !important;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--partroll-transition);
    box-shadow: var(--partroll-shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-partroll-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--partroll-shadow-lg);
    color: white !important;
    background: var(--partroll-gradient-primary);
}

.btn-partroll-primary:active {
    transform: translateY(0);
}

.btn-partroll-red {
    background: var(--partroll-gradient-red);
    border: none;
    color: white !important;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--partroll-transition);
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.3);
}

.btn-partroll-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 0, 18, 0.4);
    color: white !important;
}

.btn-outline-partroll {
    border: 2px solid var(--partroll-primary);
    color: var(--partroll-primary) !important;
    background: transparent;
    padding: 0.65rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--partroll-transition);
}

.btn-outline-partroll:hover {
    background: var(--partroll-primary);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--partroll-shadow-md);
}

/* Cards */
.partroll-card {
    background: white;
    border-radius: var(--partroll-radius-lg);
    box-shadow: var(--partroll-shadow-sm);
    transition: var(--partroll-transition);
    border: 1px solid var(--partroll-gray);
    overflow: hidden;
}

.partroll-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--partroll-shadow-lg);
    border-color: var(--partroll-blue-light);
}

.partroll-card-header {
    background: var(--partroll-gradient-primary);
    color: white;
    padding: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation */
.navbar-partroll {
    background: var(--partroll-gradient-primary) !important;
    box-shadow: var(--partroll-shadow-md);
}

.navbar-partroll .navbar-brand,
.navbar-partroll .nav-link {
    color: white !important;
    font-weight: 500;
    transition: var(--partroll-transition-fast);
}

.navbar-partroll .nav-link:hover {
    color: var(--partroll-blue-light) !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--partroll-radius);
}

/* Bearing Rotation Animation */
@keyframes bearing-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes bearing-rotate-reverse {
    0% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.bearing-icon {
    display: inline-block;
    animation: bearing-rotate 3s linear infinite;
    color: var(--partroll-primary);
}

.bearing-icon-reverse {
    display: inline-block;
    animation: bearing-rotate-reverse 2s linear infinite;
    color: var(--partroll-red);
}

.bearing-loader {
    width: 60px;
    height: 60px;
    border: 4px solid var(--partroll-gray);
    border-top: 4px solid var(--partroll-primary);
    border-right: 4px solid var(--partroll-red);
    border-radius: 50%;
    animation: bearing-rotate 1s linear infinite;
    margin: 20px auto;
}

/* Hero Section */
.hero-partroll {
    background: var(--partroll-gradient-hero);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-partroll::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: bearing-rotate 20s linear infinite;
}

.hero-partroll .container {
    position: relative;
    z-index: 1;
}

/* Product Cards */
.product-card-partroll {
    background: white;
    border-radius: var(--partroll-radius-lg);
    overflow: hidden;
    box-shadow: var(--partroll-shadow-sm);
    transition: var(--partroll-transition);
    border: 1px solid var(--partroll-gray);
    position: relative;
}

.product-card-partroll:hover {
    transform: translateY(-8px);
    box-shadow: var(--partroll-shadow-xl);
    border-color: var(--partroll-blue-light);
}

.product-card-partroll .product-image {
    position: relative;
    overflow: hidden;
    background: var(--partroll-gray-light);
    padding-top: 75%; /* 4:3 Aspect Ratio */
}

.product-card-partroll .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--partroll-transition);
}

.product-card-partroll:hover .product-image img {
    transform: scale(1.1);
}

.product-card-partroll .product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--partroll-red);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--partroll-radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-card-partroll .product-info {
    padding: 1.5rem;
}

.product-card-partroll .product-title {
    font-weight: 600;
    color: var(--partroll-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.product-card-partroll .product-price {
    color: var(--partroll-red);
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0.5rem 0;
}

/* Section Headers */
.section-header-partroll {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-header-partroll h2 {
    color: var(--partroll-primary);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header-partroll::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--partroll-red);
    border-radius: 2px;
}

/* Background Patterns */
.bg-partroll-light {
    background: var(--partroll-gray-light);
}

.bg-partroll-blue-light {
    background: var(--partroll-blue-lighter);
}

/* Utilities */
.shadow-partroll {
    box-shadow: var(--partroll-shadow-md);
}

.shadow-partroll-lg {
    box-shadow: var(--partroll-shadow-lg);
}

.border-partroll {
    border-color: var(--partroll-primary) !important;
}

.border-partroll-red {
    border-color: var(--partroll-red) !important;
}

/* SKF Theme Variables (for compatibility with existing views) */
:root {
    --skf-blue: #005792;
    --skf-red: #d1001c;
    --skf-light-blue: #e0f2f7;
    --skf-white: #ffffff;
    --skf-gray: #f8f9fa;
    --skf-dark-gray: #343a40;
    --skf-text-color: #212529;
    --skf-link-color: #005792;
    --skf-link-hover-color: #d1001c;
    --skf-border-radius: 8px;
    --skf-transition-speed: 0.3s;
}

/* SKF Button Styles */
.btn-primary-skf {
    background-color: var(--skf-blue);
    border-color: var(--skf-blue);
    color: var(--skf-white);
    transition: all var(--skf-transition-speed) ease-in-out;
}

.btn-primary-skf:hover {
    background-color: #003f6b;
    border-color: #003f6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 87, 146, 0.3);
    color: var(--skf-white);
}

.btn-secondary-skf {
    background-color: var(--skf-white);
    border: 2px solid var(--skf-red);
    color: var(--skf-red);
    transition: all var(--skf-transition-speed) ease-in-out;
}

.btn-secondary-skf:hover {
    background-color: var(--skf-red);
    color: var(--skf-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(209, 0, 28, 0.3);
}

/* Bearing Animation */
.bearing-animation {
    display: inline-block;
    animation: rotateBearing 4s linear infinite;
}

@keyframes rotateBearing {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Homepage Hero Styles */
.homepage-hero-partroll {
    background: linear-gradient(135deg, var(--skf-blue) 0%, #0066cc 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.homepage-hero-partroll::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--skf-red);
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.95);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.bearing-rotating {
    color: rgba(255,255,255,0.2);
    animation: rotateBearing 4s linear infinite;
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
    background: var(--skf-gray);
}

.section-title-skf {
    font-size: 3rem;
    font-weight: 900;
    color: var(--skf-blue);
    margin-bottom: 1rem;
}

.section-subtitle-skf {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 3rem;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 4px solid var(--skf-blue);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,87,146,0.2);
}

.category-icon {
    font-size: 4rem;
    color: var(--skf-blue);
    margin-bottom: 1.5rem;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--skf-blue);
    margin-bottom: 1rem;
}

.category-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.category-link {
    display: inline-flex;
    align-items: center;
    color: var(--skf-red);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-link:hover {
    color: var(--skf-blue);
    transform: translateX(-5px);
}

/* Features Section */
.features-section-skf {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--skf-blue) 0%, #0066cc 100%);
    color: white;
}

.section-title-white {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
}

.section-subtitle-white {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
}

.feature-card-skf {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card-skf:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.feature-icon-skf {
    font-size: 3.5rem;
    color: var(--skf-red);
    margin-bottom: 1.5rem;
}

.feature-title-skf {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.feature-desc-skf {
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
}

/* Stats Section */
.stats-section-skf {
    padding: 80px 0;
    background: var(--skf-light-blue);
}

.stat-card-skf {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--skf-red);
}

.stat-card-skf:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(209,0,28,0.2);
}

.stat-icon-skf {
    font-size: 3rem;
    color: var(--skf-blue);
    margin-bottom: 1rem;
}

.stat-number-skf {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--skf-blue);
    margin-bottom: 0.5rem;
}

.stat-label-skf {
    color: #666;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Brand Section */
.brand-section {
    padding: 80px 0;
    background: white;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--skf-blue);
    margin-bottom: 1.5rem;
}

.brand-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
}

.brand-features {
    list-style: none;
    padding: 0;
}

.brand-features li {
    padding: 0.8rem 0;
    font-size: 1.1rem;
    color: #666;
}

.brand-features li i {
    color: var(--skf-red);
    margin-left: 0.5rem;
}

/* CTA Section */
.cta-section-skf {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--skf-red) 0%, #ff1a3d 100%);
    color: white;
}

.cta-title-skf {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
}

.cta-text-skf {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
}

/* SEO Content Section */
.seo-content-section {
    padding: 60px 0;
    background: var(--skf-gray);
}

.seo-article {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.seo-heading {
    font-size: 2rem;
    font-weight: 900;
    color: var(--skf-blue);
    margin-bottom: 1.5rem;
}

.seo-subheading {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--skf-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.seo-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1.5rem;
}

.seo-list {
    list-style: none;
    padding: 0;
}

.seo-list li {
    padding: 0.8rem 0;
    font-size: 1.1rem;
    color: #666;
}

.keywords-footer {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--skf-light-blue);
    border-radius: 10px;
    font-size: 0.95rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .section-header-partroll h2 {
        font-size: 1.75rem;
    }
    
    .hero-partroll {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title-skf, .section-title-white {
        font-size: 2rem;
    }
}

