/* Products Page Styles */

:root {
    /* Products Page Controls */
    --products-style-wrapper-min-height: 100vh;
    --products-style-wrapper-background: #f8fafc;
    --products-style-wrapper-padding-top: 80px;
    
    /* Products Container Controls */
    --products-style-container-max-width: 1200px;
    --products-style-container-margin: 0 auto;
    --products-style-container-padding: 40px 24px;
    
    /* Products Grid Controls */
    --products-style-grid-display: grid;
    --products-style-grid-columns: repeat(auto-fit, minmax(320px, 1fr));
    --products-style-grid-gap: 32px;
    --products-style-grid-margin-top: 40px;
    
    /* Products Card Controls */
    --products-style-card-background: #ffffff;
    --products-style-card-border: 1px solid #e5e7eb;
    --products-style-card-border-radius: 16px;
    --products-style-card-padding: 32px;
    --products-style-card-transition: all 0.3s ease;
    --products-style-card-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --products-style-card-transform-hover: translateY(-8px);
    --products-style-card-box-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* Products Animation Controls */
    --products-style-animation-duration: 600ms;
    --products-style-stagger-delay: 120ms;
    --products-style-entrance-delay: 200ms;
}

/* Products Hero Section Top Margin - Standardized to match home page exactly */
#products-layout-main .hero {
    margin-top: 128px !important;
}

/* Remove content-area top padding for products page */
#products-layout-main {
    padding-top: 0 !important;
}

/* Products Hero Grid Background Pattern - Force Override */
#products-layout-main .hero::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') !important;
    opacity: 0.3 !important;
    z-index: 0 !important;
}

/* Page Identity Icon - Top Right Corner */
.hero-page-identity {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 5;
    animation: fadeInScale 1s ease-out 0.5s both;
}

.page-identity-icon {
    width: 61px;
    height: 61px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.9) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    border: 3px solid rgba(16, 185, 129, 0.4);
    box-shadow: 
        0 8px 25px rgba(16, 185, 129, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.page-identity-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 35px rgba(16, 185, 129, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-45deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Page Wrapper */
.page-wrapper {
    min-height: 100vh;
    background: var(--color-background);
    padding-top: var(--header-height, 80px);
    overflow-x: hidden;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: var(--space-12) 0 var(--space-8) 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.page-header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
    position: relative;
    z-index: 2;
}

.page-hero-content {
    text-align: center;
    color: var(--color-text-inverse);
}

.page-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.page-description {
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

/* Page Content */
.page-content {
    padding: var(--space-12) 0;
}

.products-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Products Sections */
.products-section {
    margin-bottom: var(--space-16);
}

.products-section:last-child {
    margin-bottom: 0;
}

.products-section-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.section-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.section-icon {
    color: var(--color-primary);
    font-size: var(--text-xl);
}

.section-description {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-8);
}

/* Product Cards */
.product-card {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-card:hover::before {
    opacity: 0.05;
}

.product-card > * {
    position: relative;
    z-index: 2;
}

.product-icon {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
    display: block;
}

.product-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
}

.product-description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* New Products Core Section */
.products-core-section {
    background: var(--color-background, #f8fafc);
    min-height: 80vh;
    padding: 40px 0;
}

.products-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 96px 24px 0 24px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    min-height: 600px;
}

.products-sidebar {
    position: sticky;
    top: 40px;
    height: fit-content;
}

/* Products dashboard styling moved to products-dashboard.css to prevent conflicts */

/* Loading Placeholder */
.loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 500px;
}

.loading-placeholder .dashboard-header {
    text-align: center;
}

.loading-placeholder .dashboard-header h2 {
    color: var(--color-text-primary, #1f2937);
    margin-bottom: 12px;
}

.loading-placeholder .dashboard-header p {
    color: var(--color-text-secondary, #6b7280);
    font-style: italic;
}

/* Mobile Layout */
@media (max-width: 768px) {
    .products-main-container {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 16px;
    }

    .products-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }

    /* Products dashboard mobile styling moved to products-dashboard.css */

    .products-core-section {
        padding: 20px 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: var(--text-2xl);
    }
    
    .page-description {
        font-size: var(--text-base);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .section-title {
        font-size: var(--text-xl);
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .page-footer-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .page-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Responsive Page Identity Icon */
    .hero-page-identity {
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .page-identity-icon {
        width: 46px;
        height: 46px;
        font-size: 19px;
        border-width: 2px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: var(--space-8) 0 var(--space-6) 0;
    }
    
    .page-content {
        padding: var(--space-8) 0;
    }
    
    .products-section {
        margin-bottom: var(--space-12);
    }
    
    .product-card {
        padding: var(--space-4);
    }
    
    .product-icon {
        font-size: var(--text-3xl);
    }
    
    /* Extra Small Screen Page Identity Icon */
    .hero-page-identity {
        top: 1rem;
        right: 1rem;
    }
    
    .page-identity-icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
} 