/* LeMiglioriDi - Frontend Ranking Styles */

/* Intro */
.lmda-intro {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #333;
}

/* Comparison Table */
.lmda-table-wrap {
    margin: 2rem 0;
    overflow-x: auto;
}

.lmda-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.lmda-comparison-table thead {
    background: #1a1a2e;
    color: #fff;
}

.lmda-comparison-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lmda-comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.lmda-comparison-table tbody tr:hover {
    background: #f8f9fa;
}

.lmda-comparison-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.lmda-pos {
    font-weight: 700;
    font-size: 1.2em;
    color: #1a1a2e;
    text-align: center;
}

.lmda-badge {
    display: inline-block;
    background: #ff6b35;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    margin-top: 4px;
}

.lmda-stars {
    color: #f5a623;
    font-size: 1.1em;
    letter-spacing: 1px;
}

.lmda-cta-btn {
    display: inline-block;
    background: #ff9900;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.85em;
    white-space: nowrap;
    transition: background 0.2s;
}

.lmda-cta-btn:hover {
    background: #e68a00;
}

/* Product Cards */
.lmda-products {
    margin: 2rem 0;
}

.lmda-product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}

.lmda-product-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.lmda-product-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.lmda-position {
    background: #1a1a2e;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1em;
    flex-shrink: 0;
}

.lmda-product-header h2 {
    margin: 0;
    font-size: 1.4em;
    color: #1a1a2e;
    flex: 1;
}

.lmda-product-meta {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
}

.lmda-rating-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lmda-price-box {
    font-size: 1.1em;
}

.lmda-price-label {
    color: #666;
}

/* Specs */
.lmda-specs {
    margin: 1.5rem 0;
}

.lmda-specs h3 {
    font-size: 1.1em;
    margin-bottom: 0.75rem;
    color: #1a1a2e;
}

.lmda-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.lmda-specs-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.lmda-specs-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Review */
.lmda-review {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f0f7ff;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.lmda-review h3 {
    margin-top: 0;
    color: #1565c0;
}

/* Pros/Cons */
.lmda-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.lmda-pros h4 { color: #2e7d32; }
.lmda-cons h4 { color: #c62828; }

.lmda-pros ul, .lmda-cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lmda-pros li::before {
    content: "✓ ";
    color: #2e7d32;
    font-weight: 700;
}

.lmda-cons li::before {
    content: "✗ ";
    color: #c62828;
    font-weight: 700;
}

.lmda-pros li, .lmda-cons li {
    padding: 4px 0;
}

/* CTA Button */
.lmda-cta {
    text-align: center;
    margin-top: 1.5rem;
}

.lmda-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff9900, #ff6b00);
    color: #fff !important;
    padding: 14px 36px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255,153,0,0.3);
}

.lmda-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,153,0,0.4);
}

/* Buying Guide */
.lmda-buying-guide {
    margin: 2rem 0;
    padding: 2rem;
    background: #fff8e1;
    border-radius: 12px;
    border: 1px solid #ffe082;
}

.lmda-buying-guide h2 {
    color: #f57f17;
    margin-top: 0;
}

/* FAQ */
.lmda-faq {
    margin: 2rem 0;
}

.lmda-faq h2 {
    color: #1a1a2e;
}

.lmda-faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.lmda-faq-item h3 {
    margin: 0 0 0.5rem;
    color: #1a1a2e;
    font-size: 1.05em;
}

.lmda-faq-item p {
    margin: 0;
    color: #555;
}

/* Inline CTA for blog posts */
.lmda-inline-cta {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #1976d2;
}

.lmda-inline-cta a {
    color: #1565c0;
    font-weight: 600;
}

/* Category Grid */
.lmda-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.lmda-category-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none !important;
    color: #333 !important;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.lmda-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: #ff9900;
}

.lmda-cat-icon {
    font-size: 2.5em;
    display: block;
    margin-bottom: 0.75rem;
}

.lmda-category-card h3 {
    margin: 0 0 0.5rem;
    color: #1a1a2e;
    font-size: 1.1em;
}

.lmda-cat-count {
    color: #999;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    .lmda-pros-cons {
        grid-template-columns: 1fr;
    }

    .lmda-product-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .lmda-product-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .lmda-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lmda-comparison-table {
        font-size: 0.85em;
    }
}
