/**
 * BarcodeMine Tools Hub - Premium Tool Page Styles
 * Beautiful, Conversion-Focused Design
 */

/* CSS Variables */
:root {
    --bmth-primary: #f97316;
    --bmth-primary-dark: #ea580c;
    --bmth-primary-light: #fed7aa;
    --bmth-secondary: #1e40af;
    --bmth-secondary-dark: #1e3a8a;
    --bmth-success: #10b981;
    --bmth-dark: #0f172a;
    --bmth-text: #334155;
    --bmth-text-light: #64748b;
    --bmth-bg: #f8fafc;
    --bmth-white: #ffffff;
    --bmth-border: #e2e8f0;
    --bmth-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --bmth-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --bmth-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --bmth-radius: 12px;
    --bmth-radius-lg: 16px;
    --bmth-radius-xl: 24px;
}

/* Reset & Base */
.bmth-page-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--bmth-text);
    line-height: 1.6;
    background: var(--bmth-bg);
}

.bmth-page-wrapper * {
    box-sizing: border-box;
}

.bmth-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.bmth-hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    padding: 40px 0 60px;
    position: relative;
    overflow: hidden;
}

.bmth-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Crect x='0' y='0' width='4' height='60'/%3E%3Crect x='8' y='0' width='2' height='60'/%3E%3Crect x='14' y='0' width='4' height='60'/%3E%3Crect x='22' y='0' width='2' height='60'/%3E%3Crect x='28' y='0' width='6' height='60'/%3E%3Crect x='38' y='0' width='2' height='60'/%3E%3Crect x='44' y='0' width='4' height='60'/%3E%3Crect x='52' y='0' width='2' height='60'/%3E%3Crect x='58' y='0' width='2' height='60'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.bmth-hero-section .bmth-container {
    position: relative;
    z-index: 1;
}

/* Breadcrumbs */
.bmth-breadcrumbs {
    font-size: 14px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.7);
}

.bmth-breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.bmth-breadcrumbs a:hover {
    color: #ffffff;
}

.bmth-breadcrumbs .bmth-sep {
    margin: 0 8px;
    opacity: 0.5;
}

.bmth-breadcrumbs .bmth-current {
    color: #ffffff;
}

/* Tool Header */
.bmth-tool-header {
    text-align: center;
    margin-bottom: 40px;
}

.bmth-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.bmth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.bmth-badge-type {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.bmth-badge-free {
    background: var(--bmth-success);
    color: #ffffff;
}

.bmth-tool-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.2;
}

.bmth-tool-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Tool Card */
.bmth-tool-main-card {
    background: var(--bmth-white);
    border-radius: var(--bmth-radius-xl);
    box-shadow: var(--bmth-shadow-xl);
    padding: 40px;
    margin-bottom: 30px;
}

/* Trust Bar */
.bmth-trust-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.bmth-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.bmth-trust-item svg {
    stroke: var(--bmth-primary);
}

/* CTA Banner */
.bmth-cta-banner {
    background: linear-gradient(135deg, var(--bmth-primary) 0%, var(--bmth-primary-dark) 100%);
    padding: 32px 0;
    position: relative;
    overflow: hidden;
}

.bmth-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.bmth-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.bmth-cta-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bmth-cta-icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--bmth-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bmth-cta-icon svg {
    stroke: #ffffff;
}

.bmth-cta-text h3 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px;
}

.bmth-cta-text p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.bmth-cta-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.bmth-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bmth-white);
    color: var(--bmth-primary-dark);
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.bmth-cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.bmth-cta-features {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
}

/* Content Section */
.bmth-content-section {
    padding: 60px 0;
}

.bmth-content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

/* Content Cards */
.bmth-content-card {
    background: var(--bmth-white);
    border-radius: var(--bmth-radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--bmth-shadow);
}

.bmth-content-card h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: var(--bmth-dark);
    margin: 0 0 24px;
}

.bmth-content-card h2 svg {
    stroke: var(--bmth-primary);
}

/* Steps List */
.bmth-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bmth-steps-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.bmth-steps-list li:last-child {
    margin-bottom: 0;
}

.bmth-step-num {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--bmth-primary) 0%, var(--bmth-primary-dark) 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.bmth-steps-list li strong {
    display: block;
    font-size: 16px;
    color: var(--bmth-dark);
    margin-bottom: 4px;
}

.bmth-steps-list li p {
    font-size: 14px;
    color: var(--bmth-text-light);
    margin: 0;
}

/* Features Grid */
.bmth-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.bmth-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bmth-bg);
    border-radius: var(--bmth-radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--bmth-text);
}

.bmth-feature-item svg {
    stroke: var(--bmth-success);
    flex-shrink: 0;
}

/* Description */
.bmth-description {
    color: var(--bmth-text);
    font-size: 15px;
    line-height: 1.8;
}

.bmth-description p {
    margin: 0 0 16px;
}

.bmth-description h3 {
    font-size: 18px;
    color: var(--bmth-dark);
    margin: 24px 0 12px;
}

.bmth-description ol,
.bmth-description ul {
    margin: 16px 0;
    padding-left: 24px;
}

.bmth-description li {
    margin-bottom: 8px;
}

/* Sidebar */
.bmth-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Sidebar CTA */
.bmth-sidebar-cta {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-radius: var(--bmth-radius-lg);
    padding: 28px;
    color: #ffffff;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.bmth-sidebar-cta::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.bmth-cta-header {
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.bmth-gs1-badge {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
}

.bmth-sidebar-cta h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
}

.bmth-sidebar-cta > p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 16px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Marketplace Logos */
.bmth-marketplace-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.bmth-mp-logo {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* Benefits List */
.bmth-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    position: relative;
    z-index: 1;
}

.bmth-benefits-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bmth-benefits-list li:last-child {
    border-bottom: none;
}

.bmth-benefits-list svg {
    fill: var(--bmth-primary);
}

/* Sidebar Button */
.bmth-sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--bmth-primary);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.bmth-sidebar-btn:hover {
    background: var(--bmth-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.bmth-cta-note {
    text-align: center;
    font-size: 13px;
    color: var(--bmth-primary-light);
    margin: 16px 0 0;
    position: relative;
    z-index: 1;
}

/* Sidebar Cards */
.bmth-sidebar-card {
    background: var(--bmth-white);
    border-radius: var(--bmth-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--bmth-shadow);
}

.bmth-sidebar-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--bmth-dark);
    margin: 0 0 16px;
}

/* Stats Grid */
.bmth-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.bmth-stat {
    text-align: center;
    padding: 12px;
    background: var(--bmth-bg);
    border-radius: var(--bmth-radius);
}

.bmth-stat-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--bmth-secondary);
}

.bmth-stat-label {
    font-size: 11px;
    color: var(--bmth-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contact Card */
.bmth-contact-card p {
    font-size: 14px;
    color: var(--bmth-text-light);
    margin: 0 0 16px;
}

.bmth-contact-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bmth-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--bmth-radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.bmth-contact-btn:first-child {
    background: var(--bmth-bg);
    color: var(--bmth-text);
}

.bmth-contact-btn:first-child:hover {
    background: var(--bmth-border);
}

.bmth-contact-btn.bmth-whatsapp {
    background: #25d366;
    color: #ffffff;
}

.bmth-contact-btn.bmth-whatsapp:hover {
    background: #20bd5a;
}

/* Bottom CTA */
.bmth-bottom-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 60px 0;
    text-align: center;
}

.bmth-bottom-cta-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px;
}

.bmth-bottom-cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 32px;
}

.bmth-bottom-cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.bmth-btn-primary-lg {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--bmth-primary) 0%, var(--bmth-primary-dark) 100%);
    color: #ffffff;
    padding: 18px 36px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
}

.bmth-btn-primary-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.5);
}

.bmth-btn-secondary-lg {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #ffffff;
    padding: 18px 36px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.bmth-btn-secondary-lg:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Loader */
.bm-tool-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--bmth-text-light);
}

.bm-loader {
    width: 48px;
    height: 48px;
    border: 4px solid var(--bmth-border);
    border-top-color: var(--bmth-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .bmth-content-grid {
        grid-template-columns: 1fr;
    }
    
    .bmth-sidebar {
        position: static;
    }
    
    .bmth-cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .bmth-cta-left {
        flex-direction: column;
    }
    
    .bmth-cta-right {
        flex-direction: column;
    }
    
    .bmth-cta-features {
        flex-direction: row;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .bmth-tool-title {
        font-size: 28px;
    }
    
    .bmth-tool-subtitle {
        font-size: 15px;
    }
    
    .bmth-tool-main-card {
        padding: 24px;
        border-radius: var(--bmth-radius-lg);
    }
    
    .bmth-trust-bar {
        gap: 20px;
    }
    
    .bmth-trust-item span {
        display: none;
    }
    
    .bmth-features-grid {
        grid-template-columns: 1fr;
    }
    
    .bmth-content-card {
        padding: 24px;
    }
    
    .bmth-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bmth-bottom-cta-content h2 {
        font-size: 24px;
    }
    
    .bmth-btn-primary-lg,
    .bmth-btn-secondary-lg {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .bmth-hero-section {
        padding: 24px 0 40px;
    }
    
    .bmth-badges {
        flex-wrap: wrap;
    }
    
    .bmth-cta-features {
        flex-direction: column;
        gap: 4px;
    }
}

/* Print Styles */
@media print {
    .bmth-cta-banner,
    .bmth-sidebar,
    .bmth-bottom-cta,
    .bmth-trust-bar {
        display: none !important;
    }
    
    .bmth-hero-section {
        background: none !important;
        padding: 20px 0 !important;
    }
    
    .bmth-tool-title {
        color: #000 !important;
    }
}
