/* Night Shift Robots - Main Stylesheet */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy-bg: #1f2937;
    --darker-navy: #111827;
    --light-blue: #93c5fd;
    --white: #ffffff;
    --light-gray: #e5e7eb;
    --text-gray: #d1d5db;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--navy-bg);
    color: var(--white);
    line-height: 1.6;
}

/* Header */
header {
    background-color: var(--darker-navy);
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--white);
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-section {
    text-align: left;
    margin-bottom: 3rem;
}

.tagline {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Products Section */
.products-section {
    margin-bottom: 4rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background-color: var(--darker-navy);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background-color: #000;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-price {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Blog Section */
.blog-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.blog-card {
    background-color: var(--darker-navy);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s;
}

.blog-grid a:hover .blog-card {
    transform: translateY(-5px);
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.blog-date {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: var(--text-gray);
    line-height: 1.6;
}

.view-all-btn {
    display: inline-block;
    background-color: var(--light-blue);
    color: var(--darker-navy);
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.view-all-btn:hover {
    opacity: 0.9;
}

/* Newsletter Section */
.newsletter-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
}

.newsletter-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    background-color: var(--darker-navy);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--white);
    font-size: 0.95rem;
}

.newsletter-form input::placeholder {
    color: var(--text-gray);
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background-color: var(--light-blue);
    color: var(--darker-navy);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.newsletter-form button:hover {
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: var(--darker-navy);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Product Detail Page */
.product-detail {
    margin-bottom: 4rem;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.product-gallery a {
    display: block;
    cursor: pointer;
    transition: opacity 0.3s;
}

.product-gallery a:hover {
    opacity: 0.8;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: #000;
    border-radius: 8px;
    display: block;
}

.product-detail-info {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.product-detail-info .product-price {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 2rem;
}

.product-description {
    margin-bottom: 2rem;
}

.product-description h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.product-description h4 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem 0;
}

.product-description p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-description ul,
.product-description ol {
    color: var(--text-gray);
    margin-left: 1.5rem;
    line-height: 1.8;
}

.buy-btn {
    display: inline-block;
    background-color: var(--light-blue);
    color: var(--darker-navy);
    padding: 1rem 2.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: opacity 0.3s;
}

.buy-btn:hover {
    opacity: 0.9;
}

/* Blog Article Styling */
.blog-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.blog-article h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-article .blog-date {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    display: block;
}

.blog-article h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.blog-article h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-article h4 {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-article p {
    color: var(--text-gray);
    margin-bottom: 1.25rem;
}

.blog-article ul,
.blog-article ol {
    color: var(--text-gray);
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.blog-article li {
    margin-bottom: 0.5rem;
}

.blog-article ul ul,
.blog-article ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.blog-article hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 3rem 0;
}

.table-of-contents {
    background-color: var(--darker-navy);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.table-of-contents ol {
    margin-left: 1.5rem;
    margin-bottom: 0;
}

.table-of-contents a {
    color: var(--light-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.table-of-contents a:hover {
    color: var(--white);
}

/* Contact Page */
.contact-section {
    max-width: 800px;
    margin: 0 auto;
}

.contact-intro {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    text-align: center;
}

.contact-form-container {
    background-color: var(--darker-navy);
    border-radius: 12px;
    padding: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 0.875rem 1rem;
    background-color: var(--navy-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--light-blue);
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.h-captcha {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
}

.submit-btn {
    padding: 1rem 2.5rem;
    background-color: var(--light-blue);
    color: var(--darker-navy);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Thank You Page */
.thanks-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thanks-container {
    max-width: 600px;
    text-align: center;
    background-color: var(--darker-navy);
    border-radius: 12px;
    padding: 3rem 2.5rem;
}

.thanks-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.thanks-message {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.thanks-submessage {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

.thanks-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--light-blue);
    color: var(--darker-navy);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: opacity 0.3s, transform 0.2s;
}

.thanks-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.thanks-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .products-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    main {
        padding: 1rem;
    }

    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-detail-info {
        position: static;
    }

    .gallery-image {
        height: 200px;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .thanks-container {
        padding: 2rem 1.5rem;
    }

    .thanks-title {
        font-size: 2rem;
    }

    .thanks-message {
        font-size: 1.1rem;
    }
}
