/*
PRODUCT SHOWCASE WEBSITE - STYLE.CSS
Complete styling for the product showcase website
*/

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #F8FAFC;
    color: #0F172A;
    line-height: 1.6;
}

/* ===== DESIGN TOKENS ===== */
:root {
    --primary: #1E3A8A;
    --primary-dark: #172554;
    --accent: #3B82F6;
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --surface-alt: #F1F5F9;
    --text-main: #0F172A;
    --text-secondary: #64748B;
    --text-light: #94A3B8;
    --border: #E2E8F0;
    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --transition: 0.25s ease;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; color: var(--text-main); }
h1 { font-size: 2.8rem; letter-spacing: -0.03em; }
h2 { font-size: 2rem; letter-spacing: -0.02em; }
h3 { font-size: 1.4rem; }
p { color: var(--text-secondary); }

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
header {
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
}
.logo i { color: var(--accent); margin-right: 8px; }

nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

nav a {
    padding: 8px 16px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}
nav a:hover,
nav a.active {
    color: var(--primary);
    background: var(--surface-alt);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-main);
    cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-secondary { background: transparent; color: var(--primary); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: var(--surface-alt); border-color: var(--primary); }

.btn-danger { background: #DC2626; color: #fff; }
.btn-danger:hover { background: #B91C1C; }

.btn-upload { background: var(--accent); color: #fff; }
.btn-upload:hover { background: var(--primary); color: #fff; }

/* ===== SECTIONS ===== */
section { padding: 60px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}
.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 1.05rem;
}

/* ===== HERO ===== */
.hero { padding: 60px 0 40px; text-align: center; }
.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--primary);
    max-width: 800px;
    margin: 0 auto 12px;
}
.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 28px;
}
.hero .btn { margin: 0 8px; }

/* ===== PRODUCT CARDS ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    margin: 24px 0;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-card__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--surface-alt);
}

.product-card__content { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card__title { font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }
.product-card__description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 6px 0 10px;
    flex: 1;
}
.product-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.product-card__badge {
    background: var(--primary);
    color: #fff;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ===== PRODUCT DETAILS ===== */
.product-details-section { padding-top: 40px; }

.product-breadcrumb {
    display: block;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.product-breadcrumb__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}
.product-breadcrumb__link:hover {
    color: var(--primary);
    background: transparent;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.product-detail-image {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: contain;
    background: var(--surface-alt);
}

.product-detail-badge {
    display: inline-block;
    margin-bottom: 10px;
    background: var(--primary);
    color: #fff;
    padding: 5px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-detail-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-main);
    overflow-wrap: anywhere;
}

.product-detail-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 8px 0 12px;
}

.product-detail-category {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.product-detail-features { margin-top: 48px; }
.product-detail-features .section-title,
.product-detail-specs .section-title { font-size: 1.6rem; }
.product-detail-specs { margin-top: 40px; }

/* ===== SPEC TABLE ===== */
.spec-table {
    width: 100%;
    max-width: 600px;
    margin-top: 12px;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.spec-table th,
.spec-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.spec-table th {
    background: var(--surface-alt);
    font-weight: 600;
    width: 40%;
}
.spec-table td { color: var(--text-secondary); }
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: none; }

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 12px;
}
.feature-item {
    background: var(--surface);
    padding: 16px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.feature-item i { color: var(--primary); }

/* ===== MEDIA SECTIONS ===== */
.media-box {
    margin-top: 30px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px 30px;
}
.media-box--audio { margin-top: 48px; }

.media-title { font-size: 1.2rem; margin-bottom: 8px; }
.media-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.media-box audio { width: 100%; max-width: 500px; }
.media-box video {
    width: 100%;
    max-width: 700px;
    display: block;
    border-radius: 8px;
    background: #000;
}

.media-transcript {
    margin-top: 12px;
    padding: 16px 20px;
    background: var(--surface-alt);
    border-radius: var(--radius-sm);
}
.media-transcript p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.media-container {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: #0f172a05;
}
.media-container video,
.media-container audio { width: 100%; display: block; }
.media-container video {
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 20px;
}
.gallery-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}
.gallery-item:hover { box-shadow: var(--shadow-lg); }
.gallery-item .media-preview {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
}
.gallery-item audio,
.gallery-item video { width: 100%; margin: 6px 0; border-radius: var(--radius-sm); }
.gallery-item .file-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 8px 0 6px;
    word-break: break-all;
}
.gallery-item .file-type-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}
.gallery-filter .btn { padding: 8px 16px; font-size: 0.85rem; border-radius: 40px; }
.gallery-filter .count {
    background: var(--surface-alt);
    padding: 0 8px;
    border-radius: 12px;
    margin-left: 4px;
    font-size: 0.7rem;
}
.gallery-filter .btn-primary .count { background: rgba(255,255,255,0.2); }
.gallery-filter .btn-upload { margin-left: auto; background: var(--accent); color: #fff; }
.gallery-filter .btn-upload:hover { background: var(--primary); color: #fff; }

.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.gallery-empty i { font-size: 3rem; color: var(--text-light); }
.gallery-empty h3 { margin-top: 12px; }

.gallery-summary {
    margin-top: 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== UPLOAD ===== */
.upload-box {
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 48px 32px;
    text-align: center;
    transition: all var(--transition);
}
.upload-box:hover { border-color: var(--accent); background: var(--surface-alt); }
.upload-box label { font-weight: 600; display: block; font-size: 1.1rem; margin-bottom: 8px; }
.upload-box input[type="file"] {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 100%;
    max-width: 400px;
    cursor: pointer;
}
.upload-box .btn { width: 100%; max-width: 300px; }

.upload-status {
    margin-top: 16px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}
.upload-status.success { background: #DCFCE7; color: #166534; border: 1px solid #86EFAC; }
.upload-status.error { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 16px;
    align-items: stretch;
}
.contact-box {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 28px;
}
.contact-info-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item i { width: 24px; color: var(--primary); }

.media-table-wrap {
    margin-top: 24px;
    background: var(--surface-alt);
    border-radius: var(--radius-sm);
    padding: 16px;
}
.media-table-wrap table { width: 100%; font-size: 0.85rem; border-collapse: collapse; }
.media-table-wrap th { background: var(--primary); color: #fff; padding: 6px 10px; text-align: left; }
.media-table-wrap td { padding: 6px 10px; border-bottom: 1px solid var(--border); }
.media-table-wrap .note { font-size: 0.75rem; color: var(--text-light); margin-top: 8px; }

.credits-box {
    margin-top: 16px;
    background: var(--surface-alt);
    border-radius: var(--radius-sm);
    padding: 16px;
}
.credits-box ul { list-style: none; padding: 0; margin-top: 8px; font-size: 0.9rem; }
.credits-box ul li { padding: 4px 0; }

/* ===== FORM ===== */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 4px; font-size: 0.9rem; }
.form-group .required { color: #DC2626; }
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1); }
textarea.form-control { resize: vertical; min-height: 120px; }

.alert-success { background: #DCFCE7; color: #166534; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid #86EFAC; }
.alert-error { background: #FEE2E2; color: #991B1B; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid #FCA5A5; }

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 16px;
    align-items: start;
}
.about-list { list-style: none; padding: 0; }
.about-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.about-list li:last-child { border-bottom: none; }
.about-list li i { color: var(--accent); margin-right: 12px; }

.about-profile {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 28px;
    text-align: center;
}
.about-profile img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    margin-bottom: 16px;
}

/* ===== FOOTER ===== */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 32px 0;
    margin-top: 20px;
    color: var(--text-secondary);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); }

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 992px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.4rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .product-detail-grid { grid-template-columns: 1fr; gap: 32px; }
    .product-detail-image img { max-height: 460px; }
}

/* Mobile */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 16px 0;
        gap: 4px;
    }
    nav.open { display: flex; }
    nav a { width: 100%; padding: 10px 16px; }

    .product-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    section { padding: 40px 0; }
    .section-title { font-size: 1.6rem; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
    .gallery-filter .btn-upload { margin-left: 0; }

    .product-details-section { padding-top: 28px; }
    .product-detail-grid { gap: 28px; }
    .product-detail-image img { max-height: 360px; }
    .product-detail-title { font-size: 2rem; }
    .product-detail-desc { font-size: 1rem; }
    .media-box { padding: 20px; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 1.6rem; }
    .btn { padding: 8px 20px; font-size: 0.85rem; }
    .gallery-grid { grid-template-columns: 1fr; }

    .product-detail-image img { max-height: 280px; }
    .product-detail-title { font-size: 1.8rem; }
    .product-detail-features,
    .product-detail-specs { margin-top: 36px; }
    .media-box { padding: 18px; }
    .media-transcript { padding: 14px 16px; }
    .spec-table th,
    .spec-table td { padding: 9px 10px; font-size: 0.9rem; }
}