/**
 * Custom Styles for Parket Semantic Theme
 * 
 * @package Parket_Semantic
 */

/* ==========================================================================
   Gradients
   ========================================================================== */
.gradient-dark {
    background: linear-gradient(135deg, #353e48 0%, #2c3540 100%);
}

.gradient-green {
    background: linear-gradient(135deg, #71BE00 0%, #5fa000 100%);
}

/* ==========================================================================
   Glassmorphism Effects
   ========================================================================== */
.glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Hero Blobs
   ========================================================================== */
.hero-blob-1 {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: rgba(113, 190, 0, 0.1);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero-blob-2 {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: rgba(113, 190, 0, 0.08);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
}

.pulse-dot {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* ==========================================================================
   Hub Cards
   ========================================================================== */
.hub-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    border: 2px solid #f3f4f6;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #71BE00, #5fa000);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.hub-card:hover::before {
    transform: scaleX(1);
}

.hub-card:hover {
    border-color: #71BE00;
    box-shadow: 0 20px 40px rgba(113, 190, 0, 0.1);
    transform: translateY(-4px);
}

/* ==========================================================================
   Coverage Badges
   ========================================================================== */
.coverage-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(113, 190, 0, 0.1);
    color: #71BE00;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.coverage-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0;
}

.coverage-fill {
    height: 100%;
    background: linear-gradient(90deg, #71BE00, #5fa000);
    transition: width 0.5s ease;
}

/* ==========================================================================
   Use Cases
   ========================================================================== */
.use-case-item {
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4b5563;
    transition: all 0.2s ease;
}

.use-case-item:hover {
    background: #f3f4f6;
    padding-left: 16px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    padding: 16px;
    margin-top: 8px;
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.2s;
    text-decoration: none;
}

.nav-dropdown-item:hover {
    background: #f0fdf4;
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */
.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: block;
}

@media (max-width: 768px) {
    .hero-blob-1,
    .hero-blob-2 {
        width: 300px;
        height: 300px;
    }
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar {
    position: sticky;
    top: 100px;
}

@media (max-width: 1024px) {
    .sidebar {
        position: static;
    }
}

/* ==========================================================================
   TOC (Table of Contents)
   ========================================================================== */
.toc-link {
    display: block;
    padding: 8px 16px;
    color: #6b7280;
    border-left: 2px solid #e5e7eb;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 14px;
}

.toc-link:hover {
    color: #71BE00;
    border-left-color: #71BE00;
    padding-left: 20px;
}

.toc-link.active {
    color: #71BE00;
    border-left-color: #71BE00;
    font-weight: 600;
}

/* ==========================================================================
   Comparison Table
   ========================================================================== */
.comparison-table {
    width: 100%;
    overflow-x: auto;
    margin: 24px 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table th,
.comparison-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #353e48;
}

.comparison-table tr:hover {
    background: #f9fafb;
}

/* ==========================================================================
   Product Cards
   ========================================================================== */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #f3f4f6;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: #71BE00;
    box-shadow: 0 10px 30px rgba(113, 190, 0, 0.1);
    transform: translateY(-4px);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    background: #71BE00;
    color: white;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination a {
    background: white;
    border: 2px solid #e5e7eb;
    color: #353e48;
}

.pagination a:hover {
    border-color: #71BE00;
    color: #71BE00;
}

.pagination .current {
    background: #71BE00;
    color: white;
    border: 2px solid #71BE00;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs {
    background: white;
    border-bottom: 1px solid #f3f4f6;
    padding: 12px 0;
}

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

.breadcrumbs a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #353e48;
}

.breadcrumbs .current {
    color: #71BE00;
    font-weight: 600;
}

/* ==========================================================================
   Prose (Article Content)
   ========================================================================== */
.prose h2 {
    font-size: 1.875rem;
    font-weight: 800;
    color: #353e48;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #353e48;
    margin-top: 1.75rem;
    margin-bottom: 0.875rem;
    line-height: 1.3;
}

.prose h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #353e48;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    color: #4b5563;
}

.prose ul,
.prose ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: #4b5563;
}

.prose a {
    color: #71BE00;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.prose a:hover {
    color: #5fa000;
    text-decoration: underline;
}

.prose img {
    border-radius: 12px;
    margin: 2rem 0;
}

.prose blockquote {
    border-left: 4px solid #71BE00;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6b7280;
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
@media (max-width: 640px) {
    .hub-card {
        padding: 24px;
    }

    .prose h2 {
        font-size: 1.5rem;
    }

    .prose h3 {
        font-size: 1.25rem;
    }
}
