/**
 * Hero Section, Breadcrumbs, Meta, and CTA
 */

/* 1️⃣ BREADCRUMBS */
.single-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-6) 0 var(--space-4);
    font-size: 13px;
    flex-wrap: wrap;
    color: var(--text-muted);
}

.breadcrumb-link {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.breadcrumb-sep {
    color: var(--text-dim);
    opacity: 0.8;
    font-weight: 300;
    margin: 0 4px;
    font-size: 14px;
}

.breadcrumb-current {
    color: var(--brand-primary);
    font-weight: 700;
}

/* 2️⃣ HERO SECTION - DESKTOP */
.single-hero {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-10);
    padding: var(--space-6) 0 var(--space-10);
    max-width: 100%;
    overflow: hidden;
}

/* Left Column - Main Info */
.single-hero-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    min-width: 0;
    overflow: hidden;
}

.single-hero-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-5);
    overflow: hidden;
}

.single-tool-logo {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: var(--radius-xl);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: var(--space-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.single-tool-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.single-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-gradient);
    color: white;
    font-size: var(--text-h2);
    font-weight: var(--weight-bold);
    border-radius: var(--radius-lg);
}

.single-tool-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* Tool Name */
.tool-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.single-tool-name {
    font-size: var(--text-h1);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin: 0 0 var(--space-3);
    line-height: var(--leading-tight);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    color: #3b82f6;
}

.card-verified-badge svg {
    display: block;
}

/* Meta row - contains rating + badges */
.single-tool-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    overflow: hidden;
}

/* Rating Display */
.single-rating {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

.rating-stars-display {
    display: inline-flex;
    gap: 1px;
    flex-shrink: 0;
}

.star-icon {
    color: var(--text-dim);
    transition: color var(--transition-fast);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.star-icon.filled {
    color: var(--accent-warning);
}

.rating-number {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    white-space: nowrap;
}

.rating-reviews {
    font-size: var(--text-xs);
    color: var(--text-dim);
    white-space: nowrap;
}

/* Badges */
.single-badges {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    overflow: hidden;
}

.single-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: var(--weight-semibold);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.single-badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.single-badge.badge-verified {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.single-badge.badge-featured {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Save Button */
.single-save-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 12px;
    background: var(--glass-bg);
    color: var(--text-muted);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    white-space: nowrap;
}

.single-save-btn svg {
    width: 14px;
    height: 14px;
}

.single-save-btn:hover {
    background: var(--glass-bg-hover);
    border-color: var(--border-default);
    color: var(--text-primary);
}

.single-save-btn.saved {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* Description */
.single-tool-description {
    font-size: var(--text-body);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0;
    max-width: 600px;
}

/* Pricing Badges */
.single-pricing-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    overflow: hidden;
}

.pricing-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    border-radius: var(--radius-md);
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-success);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.pricing-pill svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Category Tags */
.single-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    overflow: hidden;
}

.category-tag {
    color: var(--brand-primary);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.category-tag:hover {
    color: var(--brand-primary-light);
    text-decoration: underline;
}

/* Updated Date Indicator */
.single-updated-date {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    font-size: var(--text-xs);
    color: var(--text-dim);
    margin-top: var(--space-3);
}

.single-updated-date svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Right Column - Sidebar */
.single-hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    min-width: 0;
    overflow: hidden;
}

/* Clickable Premium Feature Image */
.single-feature-image-link {
    display: block;
    width: 100%;
    text-decoration: none !important;
    transition: all var(--transition-base);
}

.single-feature-image-link:hover .single-feature-image {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg), var(--glow-purple);
    border-color: rgba(168, 85, 247, 0.3);
}

.single-feature-image.premium-container {
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

/* Feature Image - No Cropping */
.single-feature-image {
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    padding: var(--space-3);
}

.single-feature-image img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    display: block;
}

.single-hero-stats {
    display: flex;
    justify-content: center;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.stat-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.stat-item .stat-value {
    font-weight: var(--weight-bold);
    color: var(--text-primary);
}

.stat-item .stat-label {
    color: var(--text-dim);
}

/* Primary CTA */
.single-cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    background: var(--brand-gradient);
    color: #ffffff !important;
    font-size: var(--text-body);
    font-weight: var(--weight-semibold);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md), 0 0 20px rgba(168, 85, 247, 0.2);
}

.single-cta-primary svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.single-cta-primary:hover {
    background: var(--brand-gradient-hover);
    box-shadow: var(--shadow-lg), var(--glow-purple-intense);
    transform: translateY(-2px);
    color: #ffffff !important;
}