/* QR-Verify Frontend Styles - True Connoisseur Club Style */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* Reset and Base Styles */
.vqr-strain-page {
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    color: #333;
    background: #070b14;
    min-height: 100vh;
    font-size: 16px;
}

.vqr-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 36px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: none;
    border: 4px solid transparent;
    transition: border-color 0.3s ease;
}

/* Authentic product - green border */
.vqr-strain-page.vqr-authentic .vqr-container {
    border-color: #008009;
}

/* Fake product - red border */
.vqr-strain-page.vqr-fake .vqr-container {
    border-color: #850000;
}

/* Logo Section */
.vqr-logo-section {
    text-align: center;
    margin-bottom: 8px;
}

.vqr-centered-logo {
    max-width: 100px;
    max-height: 100px;
    border-radius: 0;
    object-fit: contain;
}

/* Verify 420 Logo Link */
.vqr-verify420-logo-link {
    display: inline-block;
    transition: opacity 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    color: var(--primary);
}

.vqr-verify420-logo-link:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.vqr-verify420-logo-link:hover .vqr-verify420-logo {
    filter: brightness(1.1);
}

.vqr-verify420-logo {
    cursor: pointer;
}

.vqr-custom-logo {
    /* Custom logos are not clickable */
}

/* Header Section */
.vqr-header {
    text-align: center;
    margin-bottom: 12px;
}

.vqr-strain-title {
    margin: 16px 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.vqr-companies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.vqr-company-tag {
    background: #008009;
    color: white;
    padding: 4px 10px;
    border-radius: 50vw;
    font-size: 12px;
    font-weight: 500;
    border: 2px solid #008009;
}

/* Product Image */
.vqr-product-image {
    text-align: center;
    margin-bottom: 12px;
}

.vqr-product-img {
    max-width: 100%;
    max-height: 220px;
    border-radius: 0;
    object-fit: contain;
    box-shadow: none;
    margin-top: 12px;
}

/* Section Styles */
.vqr-section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 20px;
    margin-bottom: 8px;
    text-align: center;
}

/* Override parent theme section styles */
.vqr-strain-page section {
    gap: 8px !important;
    align-items: stretch !important;
}

/* Override parent theme div styles inside sections */
.vqr-strain-page section > div {
    gap: 8px !important;
}

/* Force product details section to override theme styles */
.vqr-strain-page .vqr-product-details-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.vqr-strain-page .vqr-product-info-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
}

.vqr-strain-page .vqr-info-line {
    display: block !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Center-aligned info items - no boxes */
.vqr-info-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 15px;
    text-align: left;
    gap: 4px;
    width: 100%;
}

.vqr-info-item:last-child {
    margin-bottom: 6px;
}

/* Ensure all info sections are centered */
.vqr-basic-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 500px;
    margin: 0 auto;
}

/* Special layout for batch info section */
.vqr-batch-info-section {
    gap: 0 !important;
    padding: 0;
}

.vqr-batch-info-row {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
}

.vqr-batch-info-row .vqr-info-item {
    flex-direction: column !important;
    gap: 4px !important;
    margin-bottom: 16px !important;
}

.vqr-batch-code-row {
    width: 100% !important;
    margin-top: 0 !important;
}

/* Preview-specific overrides to combat theme styles */
.vqr-strain-page .vqr-basic-info,
.vqr-strain-page .vqr-product-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
}

/* Force left alignment for all children in preview */
.vqr-strain-page .vqr-info-item,
.vqr-strain-page .vqr-genetics-item,
.vqr-strain-page .vqr-batch-item,
.vqr-strain-page .vqr-code-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: 4px !important;
}

/* Override any theme flex properties on spans */
.vqr-strain-page .vqr-label,
.vqr-strain-page .vqr-value,
.vqr-strain-page .vqr-field-label,
.vqr-strain-page .vqr-field-value {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

/* Verification Info */
.vqr-scan-info {
    margin-bottom: 12px;
    padding: 0!important;
}

.vqr-scan-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.vqr-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.vqr-stat-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 12px;
    margin-bottom: 2px;
    text-align: center;
}

.vqr-stat-value {
    font-weight: 600;
    color: #008009;
    font-size: 14px;
    text-align: center;
}

/* Specific styles for scan count and first scan values */
.vqr-scan-count-value,
.vqr-first-scan-value {
    font-size: 16px !important;
}

/* Verification Badge */
.vqr-verification-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 24px;
    border-radius: 50vw;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    border: 2px solid;
}

.vqr-verification-badge.vqr-authentic {
    background: #bdffc8;
    color: #008009;
    border-color: #008009;
}

.vqr-verification-badge.vqr-fake {
    background: #ffc2c2;
    color: #850000;
    border-color: #850000;
}

.vqr-badge-icon {
    font-size: 18px;
    font-weight: 600;
}

/* Warning Subtext */
.vqr-warning-subtext {
    text-align: center;
    color: #6b7280;
    font-size: 16px;
    margin: 16px 0 16px 0;
    padding: 0;
}

/* Basic Info */
.vqr-basic-info {
    margin-bottom: 12px;
    padding: 0!important;
}

/*.vqr-info-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    font-size: 15px;
}

.vqr-info-item:last-child {
    margin-bottom: 6px;
}*/

section.vqr-basic-info.vqr-product-info {
    margin-bottom: 0px!important;
    gap: 8px !important; /* Override any inherited gap values */
}

.vqr-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vqr-value {
    font-weight: 600;
    color: #1a1a1a;
    text-align: left;
    font-size: 18px;
    line-height: 1.3;
}

/* Batch code pill style */
.vqr-batch-code-pill {
    font-family: 'DM Sans', monospace;
    background: #E6F7FF;
    color: #0066CC;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid #B3D9FF;
    display: inline-block;
    margin: 0 auto;
}

/* Ensure batch code value spans are centered */
.vqr-strain-page .vqr-value .vqr-batch-code-pill {
    display: inline-block !important;
    margin: 0 auto !important;
}

/* Force center alignment for value containers with pills */
.vqr-strain-page .vqr-code-item .vqr-value {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

/* Cannabinoid Information */
.vqr-cannabinoids {
    margin-bottom: 12px;
    padding: 0;
}

.vqr-cannabinoid-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.vqr-cannabinoid-item {
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid;
    min-height: 75px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.vqr-cannabinoid-item.vqr-thc {
    background: rgb(189, 255, 200);
    color: rgb(0, 128, 9);
    border-color: rgb(0, 128, 9);
}

.vqr-cannabinoid-item.vqr-cbd {
    background: #bdffc8;
    color: #008009;
    border-color: #008009;
}

.vqr-cannabinoid-label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vqr-cannabinoid-value {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1;
}

.vqr-cannabinoid-mg {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
}

/* Description */
.vqr-description {
    margin-bottom: 12px;
    padding: 0;
    text-align: center;
}

.vqr-description-content {
    font-size: 16px;
    line-height: 1.4;
    text-align: center !important;
    display: block;
    width: 100%;
}

.vqr-description-content p {
    margin-bottom: 8px;
    text-align: center;
}

.vqr-description-content p:last-child {
    margin-bottom: 0;
}

/* Social Links */
.vqr-social-links {
    margin-bottom: 12px;
    padding: 0;
}

.vqr-social-grid {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
}

.vqr-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50vw;
    text-decoration: none;
    border: 2px solid;
    transition: all 0.2s ease;
}

.vqr-social-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.vqr-social-icon {
    width: 20px;
    height: 20px;
}

.vqr-social-link.vqr-instagram {
    background: #e4405f;
    border-color: #e4405f;
    color: white;
}

.vqr-social-link.vqr-instagram:hover {
    background: #d73052;
    border-color: #d73052;
}

.vqr-social-link.vqr-telegram {
    background: #0088cc;
    border-color: #0088cc;
    color: white;
}

.vqr-social-link.vqr-telegram:hover {
    background: #007bb5;
    border-color: #007bb5;
}

.vqr-social-link.vqr-facebook {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.vqr-social-link.vqr-facebook:hover {
    background: #166fe5;
    border-color: #166fe5;
}

.vqr-social-link.vqr-twitter {
    background: #1da1f2;
    border-color: #1da1f2;
    color: white;
}

.vqr-social-link.vqr-twitter:hover {
    background: #1a94da;
    border-color: #1a94da;
}

/* Footer */
.vqr-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
    margin-top: 20px;
}

.vqr-footer-text {
    color: #6c757d;
    font-size: 13px;
    margin: 0;
    font-weight: 500;
}

.vqr-footer-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.vqr-footer-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Section Title General */
.vqr-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 16px 0 8px 0;
    text-align: center;
}

/* Product Details Section */
.vqr-product-details-section {
    padding: 16px 0;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Product details uses standard section title styling */

/* Product Info List - Inline Layout */
.vqr-product-info-list {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
}

.vqr-info-line {
    margin-bottom: 0 !important;
    font-size: 18px;
    line-height: 1.3;
    text-align: center !important;
    width: 100% !important;
}

.vqr-inline-label {
    font-weight: 600;
    color: #1a1a1a;
}

.vqr-inline-value {
    font-weight: 400;
    color: #1a1a1a;
}

/* Remove all inline margins - handled by padding in sections */
section {
    margin-bottom: 0 !important;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .vqr-container {
        margin: 12px;
        padding: 20px;
        border-radius: 12px;
    }
    
    .vqr-info-line {
        font-size: 16px;
    }
    
    .vqr-product-details-title {
        font-size: 20px;
    }
    
    .vqr-strain-title {
        font-size: 26px;
    }
    
    .vqr-section-title {
        font-size: 14px;
    }
    
    .vqr-scan-stats {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .vqr-social-grid {
        gap: 6px;
    }
    
    .vqr-social-link {
        width: 36px;
        height: 36px;
    }
    
    .vqr-social-icon {
        width: 18px;
        height: 18px;
    }
    
    .vqr-info-item {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .vqr-cannabinoid-grid {
        gap: 6px;
    }
    
    .vqr-cannabinoid-item {
        padding: 10px;
    }
    
    .vqr-cannabinoid-value {
        font-size: 14px;
    }
}

/* Company Tags - Hidden for now as not in mockup */
.vqr-companies {
    display: none;
}

/* Preview Banner */
.vqr-preview-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.vqr-preview-content {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

/* Hide logo links hover effects for cleaner look */
.vqr-verify420-logo-link:hover {
    opacity: 1;
    transform: none;
}

.vqr-verify420-logo-link:hover .vqr-verify420-logo {
    filter: none;
}