/* Modern Product Template Styles */
.modern-breadcrumb {
    background: transparent;
    border-radius: 12px;
    padding: 2px 20px;
    margin-bottom: 6px;
    box-shadow: none;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.breadcrumb-link:hover,
.breadcrumb-link:visited,
.breadcrumb-link:active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.breadcrumb-icon {
    color: #ffffff;
}

.breadcrumb-separator {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 300;
    margin: 0 4px;
}

/* SEO Intro Section */
.seo-intro {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.seo-intro h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.seo-intro p {
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.seo-intro ul {
    color: #e2e8f0;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.seo-intro li {
    margin-bottom: 0.5rem;
}

.seo-intro strong {
    color: #ffffff;
    font-weight: 600;
}

/* FAQ Section */
.faq-section {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-section h2 {
    color: #ffffff;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.faq-item h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.faq-item p {
    color: #e2e8f0;
    line-height: 1.6;
    margin: 0;
}

/* Related Categories */
.related-categories {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.related-categories h2 {
    color: #ffffff;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.category-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.category-link {
    display: block;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.category-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    color: white;
    text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .seo-intro,
    .faq-section,
    .related-categories {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .seo-intro h2,
    .faq-section h2,
    .related-categories h2 {
        font-size: 1.5rem;
    }
    
    .faq-item {
        padding: 1rem;
    }
    
    .category-links {
        grid-template-columns: 1fr;
    }
}

.page-header {
    text-align: center;
    margin: 0;
    background: transparent;
    padding: 16px;
    border-radius: 0;
    border: none;
    margin-top: -1px;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.page-description {
    font-size: 0.9rem;
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.4;
}

.modern-product-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-card {
    background: white;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #e2e8f0;
    border-top: none;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    min-height: 80px;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.product-rank {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    font-size: 0.9rem;
    font-weight: 800;
    position: relative;
}

.rank-number {
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.product-content {
    flex: 1;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
    align-items: flex-start;
}

.product-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-header {
    border-bottom: none;
    padding-bottom: 0;
}

.product-title-link {
    color: #1e293b;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.product-title-link:hover {
    color: #3b82f6;
}

.product-short-desc {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 6px 0 0 0;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.product-pros-cons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-why-we-love-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-pros-cons-stacked {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-pros-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-cons-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-description-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-purchase-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    display: inline-block;
    width: fit-content;
    margin-top: 8px;
}

.product-purchase-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    text-decoration: none;
    color: white;
}


.product-short-desc-large {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin: 0 0 8px 0;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.product-long-desc {
    font-size: 1rem;
    line-height: 1.5;
    color: #64748b;
    margin: 0 0 12px 0;
}

.why-we-love-section {
    margin-top: 12px;
    padding: 12px;
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    border-radius: 0 6px 6px 0;
}


.why-we-love-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e40af;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.why-we-love-title::before {
    content: "❤️";
    font-size: 1.1rem;
}

.why-we-love-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #1e293b;
    margin: 0;
    font-style: italic;
}

.pros-section, .cons-section {
    background: #f8fafc;
    border-radius: 4px;
    padding: 6px 8px;
}

.pros-title, .cons-title {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 6px 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.pros-title {
    color: #059669;
}

.cons-title {
    color: #dc2626;
}

.pros-icon {
    color: #059669;
}

.cons-icon {
    color: #dc2626;
}

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

.pro-item, .con-item {
    padding: 3px 0;
    font-size: 0.85rem;
    line-height: 1.3;
    position: relative;
    padding-left: 16px;
}

.pro-item::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: bold;
}

.con-item::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #dc2626;
    font-weight: bold;
}

.pro-item {
    color: #047857;
}

.con-item {
    color: #b91c1c;
}

.product-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.btn-amazon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-amazon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    color: white;
}

.btn-details {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-details.expanded {
    background: linear-gradient(135deg, #10b981, #059669);
}

.btn-icon {
    transition: transform 0.2s ease;
}

.product-details-expanded {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
    border: 1px solid #e2e8f0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.details-content h4 {
    color: #1e293b;
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.details-text {
    color: #475569;
    line-height: 1.6;
    font-size: 0.95rem;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
}

.no-products h3 {
    color: #64748b;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.no-products p {
    color: #94a3b8;
    font-size: 1rem;
}

/* Responsive Design for Product Template */
@media (max-width: 768px) {
    .product-card {
        flex-direction: row;
        min-height: auto;
        align-items: flex-start;
    }
    
    .product-rank {
        min-width: 60px;
        min-height: auto;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .rank-number {
        font-size: 1.2rem;
    }
    
    .product-content {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0;
        flex: 1;
    }
    
    .product-main {
        order: 1;
        grid-column: 1 / -1;
    }
    
    .product-why-we-love-section {
        order: 2;
        grid-column: 1 / -1;
        margin-left: -60px;
        margin-right: 0;
        width: calc(100% + 60px);
    }
    
    .product-pros-cons-stacked {
        order: 3;
        grid-column: 1 / -1;
        display: flex;
        gap: 16px;
        margin-left: -60px;
        margin-right: 0;
        width: calc(100% + 60px);
    }
    
    .product-pros-section {
        flex: 1;
    }
    
    .product-cons-section {
        flex: 1;
    }
    
    .product-description-section {
        order: 4;
        grid-column: 1 / -1;
        margin-left: -60px;
        margin-right: 0;
        width: calc(100% + 60px);
    }
    
    .product-title-link {
        font-size: 1.1rem;
    }
    
    .product-header {
        padding-left: 12px;
    }
    
    
    .product-short-desc-large {
        font-size: 1rem;
    }
    
    .product-long-desc {
        font-size: 0.9rem;
    }
    
    .why-we-love-section {
        margin-top: 8px;
        padding: 12px;
    }
    
    .pros-section, .cons-section {
        margin-bottom: 8px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-description {
        font-size: 0.9rem;
    }
    
    .breadcrumb-list {
        flex-direction: row;
        align-items: center;
        gap: 4px;
        flex-wrap: nowrap;
        overflow: hidden;
    }
    
    .breadcrumb-item {
        flex-shrink: 1;
        min-width: 0;
    }
    
    .breadcrumb-item:first-child {
        flex-shrink: 0;
    }
    
    .breadcrumb-item:last-child {
        flex-shrink: 0;
    }
    
    .breadcrumb-link {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
        padding: 4px 8px;
        font-size: 0.9rem;
    }
    
    .breadcrumb-ellipsis {
        color: #94a3b8;
        font-size: 0.9rem;
        padding: 4px 8px;
    }
    
    .modern-breadcrumb {
        padding: 8px 16px;
        margin-bottom: 4px;
    }
    
    .page-header {
        padding: 12px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .product-card {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .product-rank {
        min-width: 60px;
        margin-bottom: 0;
    }
    
    .product-content {
        padding: 0px;
        gap: 12px;
        flex: 1;
    }
    
    .product-main {
        grid-column: 1 / -1;
    }
    
    .product-why-we-love-section {
        grid-column: 1 / -1;
        margin-left: -60px;
        margin-right: 0;
        width: calc(100% + 60px);
    }
    
    .product-pros-cons-stacked {
        grid-column: 1 / -1;
        display: flex;
        gap: 12px;
        margin-left: -60px;
        margin-right: 0;
        width: calc(100% + 60px);
    }
    
    .product-description-section {
        grid-column: 1 / -1;
        margin-left: -60px;
        margin-right: 0;
        width: calc(100% + 60px);
    }
    
    .product-title-link {
        font-size: 1rem;
    }
    
    .product-header {
        padding-left: 12px;
    }
    
    
    .product-short-desc-large {
        font-size: 0.9rem;
    }
    
    .product-long-desc {
        font-size: 0.85rem;
    }
    
    .why-we-love-text {
        font-size: 0.85rem;
    }
    
    .pros-title, .cons-title {
        font-size: 0.85rem;
    }
    
    .pro-item, .con-item {
        font-size: 0.8rem;
    }
    
    .product-purchase-btn {
        font-size: 0.9rem;
        padding: 8px 14px;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-description {
        font-size: 0.85rem;
    }
    
    .modern-breadcrumb {
        padding: 6px 12px;
    }
    
    .breadcrumb-link {
        padding: 3px 6px;
        font-size: 0.85rem;
    }
    
    .page-header {
        padding: 10px;
    }
}

/* OpenAI Logs Admin Styles */
.filters-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.filter-form {
    width: 100%;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr auto;
    gap: 16px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.results-section {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.results-header {
    background: #f8fafc;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.1rem;
}

.results-info {
    color: #6b7280;
    font-size: 0.9rem;
}

.logs-list {
    display: flex;
    flex-direction: column;
}

.log-item {
    border-bottom: 1px solid #f3f4f6;
    padding: 20px;
    transition: background-color 0.2s ease;
}

.log-item:hover {
    background: #f9fafb;
}

.log-item:last-child {
    border-bottom: none;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.log-info h4 {
    margin: 0 0 6px 0;
    color: #1f2937;
    font-size: 1.1rem;
}

.log-meta {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: #6b7280;
}

.log-date {
    font-weight: 500;
}

.log-type {
    background: #e5e7eb;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
}

.log-time {
    color: #059669;
    font-weight: 500;
}

.log-status {
    display: flex;
    align-items: center;
}

.status-success {
    background: #d1fae5;
    color: #065f46;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.log-content {
    margin-top: 12px;
}

.log-message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.log-message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.log-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.log-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.json-display {
    background: #1f2937;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}

.json-display h5 {
    color: #f9fafb;
    margin: 0 0 12px 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.json-code {
    background: transparent;
    color: #f9fafb;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
    overflow-x: auto;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.pagination-info {
    color: #6b7280;
    font-size: 0.9rem;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-results h3 {
    color: #374151;
    margin-bottom: 8px;
}

/* Responsive Design for Logs */
@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .log-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .log-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .log-actions {
        flex-direction: column;
    }
    
    .json-code {
        font-size: 0.7rem;
    }
}

/* Sub-category Suggestions */
.sub-category-suggestions {
    margin-top: 32px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.suggestions-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.suggestions-description {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 20px 0;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.suggestion-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: 1px solid #1d4ed8;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    color: #ffffff !important;
}

.suggestion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
    text-decoration: none;
}

.suggestion-content {
    flex: 1;
    color: #ffffff !important;
}

.suggestion-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff !important;
    margin: 0 0 4px 0;
}

.suggestion-count {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9) !important;
    margin: 0;
}

.suggestion-arrow {
    font-size: 1.2rem;
    color: #ffffff !important;
    margin-left: 12px;
    transition: transform 0.2s ease;
}

.suggestion-card:hover .suggestion-arrow {
    transform: translateX(4px);
}
