/* Low Carbon Solutions Portfolio Styles - Enhanced Version */

:root {
    --lcs-green: #228B22;
    --lcs-green-dark: #1a6b1a;
    --lcs-green-light: #e8f5e9;
    --lcs-green-gradient: linear-gradient(135deg, #228B22 0%, #2ecc71 100%);
    --hydrogen-color: #3b82f6;
    --ccus-color: #8b5cf6;
    --electrification-color: #f59e0b;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Page Layout */
.lcs-page {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Banner */
.lcs-hero {
    position: relative;
    min-height: 420px;
    background: url('/static/images/low-carbon.png') center/cover no-repeat;
    display: flex;
    flex-direction: column;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 107, 26, 0.92) 0%, rgba(34, 139, 34, 0.85) 50%, rgba(46, 204, 113, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin: 0 0 0.75rem 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 2rem 0;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 1.5rem 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.hero-stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.25);
}

.hero-nav {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s;
}

.breadcrumb-link:hover {
    opacity: 0.8;
}

.breadcrumb-nav i.fa-chevron-right {
    font-size: 0.7rem;
    opacity: 0.5;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-btn.primary {
    background: white;
    color: var(--lcs-green);
}

.nav-btn.primary:hover {
    background: #f0fdf4;
    transform: translateY(-1px);
}

.nav-btn.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.nav-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

.exxon-logo {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Portfolio Health Dashboard */
.health-dashboard {
    background: white;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    margin-top: -1px;
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.health-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 12px;
    transition: all 0.2s;
}

.health-card:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.health-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.health-icon.schedule {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: white;
}

.health-icon.cost {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
}

.health-icon.safety {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
}

.health-icon.quality {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    color: white;
}

.health-info {
    flex: 1;
}

.health-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 500;
}

.health-value-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin: 0.25rem 0 0.5rem;
}

.health-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.health-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
}

.health-trend.positive {
    background: #dcfce7;
    color: #15803d;
}

.health-trend.negative {
    background: #fee2e2;
    color: #dc2626;
}

.health-trend.neutral {
    background: #f3f4f6;
    color: #6b7280;
}

.health-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.health-fill {
    height: 100%;
    background: var(--lcs-green-gradient);
    border-radius: 3px;
    transition: width 1s ease-out;
}

.health-fill.good {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.health-fill.excellent {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}

/* Featured Section */
.featured-section {
    padding: 3rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, white 100%);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.section-title i {
    color: var(--lcs-green);
}

.project-count {
    font-size: 0.9rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.35rem 1rem;
    border-radius: 20px;
}

.featured-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid #e5e7eb;
}

.featured-image {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34, 139, 34, 0.3) 0%, transparent 60%);
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--lcs-green);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.featured-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

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

.featured-status {
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.featured-phase {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

.featured-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
}

.featured-location {
    font-size: 1rem;
    color: #6b7280;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-location i {
    color: var(--lcs-green);
}

.featured-description {
    font-size: 1rem;
    color: #4b5563;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.featured-progress {
    margin-bottom: 1.5rem;
}

.featured-progress .progress-bar.enhanced {
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    position: relative;
    overflow: visible;
}

.featured-progress .progress-fill.animated {
    height: 100%;
    width: 0;
    background: var(--lcs-green-gradient);
    border-radius: 6px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-milestones {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.milestone {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border: 2px solid #9ca3af;
    border-radius: 50%;
}

.featured-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 12px;
}

.metric-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lcs-green);
    font-size: 0.9rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.metric-card .metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
}

.metric-card .metric-value.positive {
    color: #059669;
}

.metric-card .metric-value.warning {
    color: #d97706;
}

.metric-card .metric-label {
    font-size: 0.7rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.featured-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    flex: 1;
}

.action-btn.primary {
    background: var(--lcs-green);
    color: white;
}

.action-btn.primary:hover {
    background: var(--lcs-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 139, 34, 0.3);
}

.action-btn.secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.action-btn.secondary:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

/* Main Content */
.lcs-main {
    padding: 3rem 0;
    flex: 1;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
}

.projects-grid.list-view {
    grid-template-columns: 1fr;
}

.projects-grid.list-view .project-card {
    flex-direction: row;
}

.projects-grid.list-view .card-thumbnail {
    width: 200px;
    flex-shrink: 0;
}

.projects-grid.list-view .project-body {
    flex: 1;
}

/* Project Card */
.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--lcs-green-light);
}

.card-thumbnail {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    backdrop-filter: blur(10px);
}

.tech-badge.hydrogen {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

.tech-badge.ccus {
    background: rgba(139, 92, 246, 0.9);
    color: white;
}

.tech-badge.electrification {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-execute {
    background: var(--lcs-green-light);
    color: var(--lcs-green);
}

.status-define {
    background: #fef3c7;
    color: #d97706;
}

.project-phase {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.project-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.project-location {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.project-location i {
    color: var(--lcs-green);
    font-size: 0.75rem;
}

.project-description {
    font-size: 0.875rem;
    color: #4b5563;
    margin: 0 0 1rem 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Enhanced Progress Section */
.progress-section {
    margin-bottom: 1rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.progress-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.progress-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1a1a1a;
}

.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar.enhanced {
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--lcs-green-gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-fill.animated {
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sparkline Trend */
.trend-section {
    margin-bottom: 1rem;
}

.sparkline {
    position: relative;
    height: 35px;
    background: #f9fafb;
    border-radius: 6px;
    padding: 0.5rem;
}

.sparkline svg {
    width: 100%;
    height: 100%;
}

.trend-label {
    position: absolute;
    right: 0.5rem;
    bottom: 0.25rem;
    font-size: 0.65rem;
    color: #9ca3af;
}

/* Project Metrics */
.project-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.metric-value.positive {
    color: #059669;
}

.metric-value.warning {
    color: #d97706;
}

.metric-label {
    font-size: 0.65rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Project Footer */
.project-footer {
    padding: 0.75rem 1.25rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.hub-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: var(--lcs-green);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.hub-link:hover {
    background: var(--lcs-green-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 139, 34, 0.25);
}

/* Footer */
.lcs-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 1.5rem 0;
    margin-top: auto;
}

.lcs-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.footer-date {
    color: #9ca3af;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.35rem 1rem;
    border-radius: 20px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: #e5e7eb;
    color: #1a1a1a;
}

.modal-body {
    padding: 2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .featured-card {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        min-height: 250px;
    }
    
    .health-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .hero-stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .breadcrumb-nav {
        order: 2;
    }
    
    .nav-actions {
        order: 1;
        width: 100%;
        justify-content: space-between;
    }
    
    .health-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-wrap: wrap;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-actions {
        flex-direction: column;
    }
    
    .lcs-footer .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
    }
    
    .project-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .lcs-hero {
        min-height: auto;
        padding: 2rem;
        background: var(--lcs-green) !important;
    }
    
    .hero-overlay {
        display: none;
    }
    
    .filter-section,
    .modal-overlay {
        display: none;
    }
    
    .project-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
