/**
 * Product Detail Page Styles
 * PI Style Design System
 * For: resources/views/public/produk.blade.php
 */

:root {
    --primary-color: #005596;
    --secondary-color: #F47920;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ========================================
   Header
======================================== */
.site-header {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-logos img {
    height: 40px;
    margin-right: 20px;
}

.back-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    color: var(--secondary-color);
}

/* ========================================
   Hero Section
======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #043e6b 100%);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.producer-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.producer-badge img {
    height: 30px;
    margin-right: 10px;
}

.producer-badge span {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.hero-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-image {
    border-radius: 20px;
    padding: 30px;
    text-align: center;
}

.hero-image img {
    max-height: 300px;
    object-fit: contain;
}

.btn-download {
    background: var(--secondary-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-download:hover {
    background: #e06610;
    color: #fff;
    transform: translateY(-2px);
}

/* ========================================
   Content Sections
======================================== */
.content-section {
    padding: 60px 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

/* ========================================
   Document Cards
======================================== */
.document-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.document-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.document-card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.document-number {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.document-expiry {
    color: #22c55e;
    font-size: 0.85rem;
}

.btn-view-doc {
    background: var(--primary-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
}

.btn-view-doc:hover {
    background: #004477;
    color: #fff;
}

/* ========================================
   Benefits List
======================================== */
.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.benefit-number {
    background: var(--secondary-color);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.benefit-text {
    font-size: 1rem;
    color: var(--text-dark);
}

/* ========================================
   Specification Table
======================================== */
.spec-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.spec-card .table {
    margin-bottom: 0;
}

.spec-card .table thead th {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0085d2 100%);
    color: #fff;
    font-weight: 600;
    padding: 15px;
    border: none;
}

.spec-card .table tbody td {
    padding: 12px 15px;
    border-color: #e2e8f0;
}

.spec-card .table tbody tr:hover {
    background: var(--bg-light);
}

/* ========================================
   Accordion for Usage
======================================== */
.usage-accordion .card {
    border: 1px solid #e2e8f0;
    border-radius: 10px !important;
    margin-bottom: 10px;
    overflow: hidden;
}

.usage-accordion .card-header {
    background: var(--bg-white);
    border-bottom: none;
    padding: 0;
}

.usage-accordion .card-header button {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.usage-accordion .card-header button:not(.collapsed) {
    background: var(--bg-light);
    color: var(--primary-color);
}

.usage-accordion .card-body {
    padding: 20px;
    background: var(--bg-light);
}

/* ========================================
   Related Products
======================================== */
.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.product-card img {
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

.product-card h6 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.product-card .btn-detail {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
}

.product-card .btn-detail:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ========================================
   Footer
======================================== */
.site-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #043e6b 100%);
    color: #fff;
    padding: 50px 0 30px;
}

.footer-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
}

.footer-title {
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-image {
        margin-top: 30px;
    }

    .content-section {
        padding: 40px 0;
    }
}

/* ========================================
   Tailwind Utility Classes for Footer
   (Required for shared footer component)
======================================== */
.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.block {
    display: block;
}

/* Width utilities */
.w-full {
    width: 100%;
}

/* Padding utilities */
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.pt-5 {
    padding-top: 1.25rem;
}

/* Margin utilities */
.-mx-4 {
    margin-left: -1rem;
    margin-right: -1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-5 {
    margin-bottom: 1.25rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-8 {
    margin-top: 2rem;
}

/* Text utilities */
.text-white {
    color: #fff;
}

.text-white\/70 {
    color: rgba(255, 255, 255, 0.7);
}

.text-white\/80 {
    color: rgba(255, 255, 255, 0.8);
}

.text-sm {
    font-size: 0.875rem;
}

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

.font-semibold {
    font-weight: 600;
}

.leading-relaxed {
    line-height: 1.625;
}

/* Border utilities */
.border-t {
    border-top-width: 1px;
    border-top-style: solid;
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Hover utilities */
.hover\:text-white:hover {
    color: #fff;
}

.hover\:text-white\/80:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Large screen responsive */
@media (min-width: 1024px) {
    .lg\:w-1\/3 {
        width: 33.333333%;
    }

    .lg\:w-1\/4 {
        width: 25%;
    }
}

/* Padding utilities */
.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.-mx-3 {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}