/**
 * Plankton & Zoom - Shared Styles
 * Common CSS for all pages: navigation, buttons, tables, mobile responsive
 * Updated: 2026-06-10
 */

/* ===== Base Styles ===== */
body {
    font-family: Arial, sans-serif;
    background: #0a1628;
    color: #e8f4f8;
    line-height: 1.6;
    margin: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: rgba(13, 33, 55, 0.7);
    padding: 40px 20px;
    text-align: center;
}

.header h1 {
    color: #00f5d4;
    margin: 0;
    font-size: 2em;
}

/* ===== Navigation ===== */
.navbar {
    background: rgba(13, 33, 55, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 245, 212, 0.2);
}

.navbar-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.navbar-logo {
    color: #00f5d4;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
}

.navbar-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.navbar-links a {
    color: #e8f4f8;
    text-decoration: none;
    transition: color 0.2s;
}

.navbar-links a:hover {
    color: #00f5d4;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #00f5d4;
    font-size: 1.5em;
    cursor: pointer;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #00f5d4;
    color: #0a1628;
    text-decoration: none;
    border-radius: 50px;
    margin: 10px 5px;
    font-weight: bold;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #00d4b4;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    padding: 10px 22px;
    background: transparent;
    color: #00f5d4;
    text-decoration: none;
    border-radius: 50px;
    margin: 10px 5px;
    font-weight: bold;
    border: 2px solid #00f5d4;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: rgba(0, 245, 212, 0.1);
}

/* ===== Tables ===== */
.specs-table,
.comparison-table {
    width: 100% !important;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95em;
}

.specs-table th,
.comparison-table th {
    background: rgba(0, 245, 212, 0.1);
    color: #00f5d4;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid rgba(0, 245, 212, 0.3);
    font-weight: 600;
}

.specs-table td,
.comparison-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(0, 245, 212, 0.15);
    color: #c8e0e8;
}

.specs-table tr:hover td,
.comparison-table tr:hover td {
    background: rgba(0, 245, 212, 0.05);
}

/* ===== Cards ===== */
.review-section {
    background: rgba(13, 33, 55, 0.7);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
}

.review-section h2 {
    color: #00f5d4;
    border-bottom: 2px solid rgba(0, 245, 212, 0.2);
    padding-bottom: 10px;
}

.review-section h3 {
    color: #ffd93d;
    margin-top: 20px;
}

.product-card {
    background: rgba(0, 245, 212, 0.05);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
}

.product-card h3 {
    margin-top: 0;
    color: #ffd93d;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 40px;
    color: #6b9aaa;
    border-top: 2px solid rgba(0, 245, 212, 0.2);
    margin-top: 40px;
}

.footer a {
    color: #00f5d4;
    text-decoration: none;
}

.footer a:hover {
    color: #ffd93d;
}

/* ===== Product Images ===== */
.product-image {
    max-width: 100% !important;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.product-image-small {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin: 15px auto;
    display: block;
}

/* ===== Comparison Section ===== */
.comparison-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
    align-items: center;
}

.comparison-images img {
    max-width: 100% !important;
    height: auto;
    border-radius: 8px;
}

.comparison-label {
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
    color: #00f5d4;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .comparison-images {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 15px;
        max-width: 100% !important;
    }
    
    .header h1 {
        font-size: 1.4em;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    h3 {
        font-size: 1.1em;
    }
    
    p {
        font-size: 0.95em;
    }
    
    .navbar-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(13, 33, 55, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 2px solid rgba(0, 245, 212, 0.3);
    }
    
    .navbar-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .btn,
    .btn-outline {
        display: block;
        width: 100% !important;
        margin: 8px 0;
        text-align: center;
        box-sizing: border-box;
    }
    
    .specs-table,
    .comparison-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 0.85em;
    }
    
    .specs-table th,
    .specs-table td,
    .comparison-table th,
    .comparison-table td {
        padding: 8px;
        min-width: 120px;
    }
    
    img {
        max-width: 100% !important;
        height: auto;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Utilities ===== */
.price {
    color: #ffd93d;
    font-size: 1.3em;
    font-weight: bold;
    margin: 8px 0;
}

.stars {
    color: #ffd93d;
}

.specs {
    color: #a0c4d4;
    font-size: 0.9em;
    margin: 10px 0;
}

/* ===== Steps / How-To Section ===== */
.steps {
    margin: 30px 0;
}

.step {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    padding: 20px;
    background: rgba(13, 33, 55, 0.5);
    border-radius: 8px;
    border-left: 4px solid #00f5d4;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #00f5d4;
    color: #0a1628;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    flex-shrink: 0;
}

.step h3 {
    margin-top: 0;
    color: #00f5d4;
}

/* ===== FAQ Section ===== */
.faq-item {
    margin: 25px 0;
    padding: 20px;
    background: rgba(13, 33, 55, 0.5);
    border-radius: 8px;
}

.faq-item h3 {
    color: #00f5d4;
    margin-top: 0;
}

/* ===== Specs Grid ===== */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.spec-card {
    text-align: center;
    padding: 25px;
    background: rgba(13, 33, 55, 0.5);
    border-radius: 8px;
}

.spec-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #00f5d4;
    margin-bottom: 10px;
}

/* ===== Feature Box ===== */
.feature-box {
    padding: 20px;
    background: rgba(13, 33, 55, 0.5);
    border-radius: 8px;
    margin: 15px 0;
}

.feature-box h3 {
    color: #00f5d4;
    margin-top: 0;
}

/* ===== Highlight Box ===== */
.highlight-box {
    background: rgba(255, 217, 61, 0.1);
    border: 1px solid rgba(255, 217, 61, 0.3);
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
}

.highlight-box h3 {
    color: #ffd93d;
    margin-top: 0;
}

.subtitle {
    color: #a0c4d4;
    margin-top: 10px;
}

/* ===== CTA Box ===== */
.cta-box {
    background: rgba(0, 245, 212, 0.1);
    border: 2px solid #00f5d4;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.cta-box h3 {
    color: #00f5d4;
    margin-top: 0;
}

.cta-box p {
    margin-bottom: 20px;
}

.cta-box .btn {
    margin: 10px;
}

/* ===== Lead Paragraph ===== */
.lead {
    font-size: 1.2em;
    color: #a0c4d4;
    margin: 20px 0;
    line-height: 1.6;
}

/* Search box responsive styles */
.search-container {
    text-align: center;
    margin: 20px auto;
    padding: 0 20px;
}
.search-form {
    display: flex;
    max-width: 100% !important;
    width: 100% !important;
    gap: 15px;
    align-items: stretch;
    background: rgba(13, 33, 55, 0.5);
    padding: 15px;
    border-radius: 35px;
    border: 1px solid rgba(0, 245, 212, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.search-input {
    padding: 18px 30px;
    border-radius: 35px;
    border: 2px solid rgba(0, 245, 212, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #e8f4f8;
    flex: 1;
    font-size: 1.2em;
    min-width: 0;
    outline: none;
    transition: all 0.3s ease;
    height: 60px;
}
.search-input:focus {
    border-color: #00f5d4;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.3);
}
.search-input::placeholder {
    color: #6b9aaa;
    font-size: 1.1em;
}
.search-button {
    padding: 18px 36px;
    border-radius: 35px;
    border: none;
    background: linear-gradient(135deg, #00f5d4 0%, #00c9a7 100%);
    color: #0a1628;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    font-size: 1.2em;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 245, 212, 0.3);
    height: 60px;
    min-width: 140px;
}
.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 245, 212, 0.4);
}

@media (max-width: 600px) {
    .search-form {
        flex-direction: column;
        padding: 0 15px;
    }
    .search-input {
        width: 100% !important;
        margin-bottom: 10px;
    }
    .search-button {
        width: 100% !important;
    }
}

/* ===== SEARCH BOX - Fully Responsive ===== */
.search-wrapper {
    background: linear-gradient(135deg, rgba(13,33,55,0.9) 0%, rgba(10,22,40,0.95) 100%);
    padding: 20px;
    margin: 0;
    border-bottom: 1px solid rgba(0,245,212,0.15);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.search-wrapper .search-form {
    display: flex;
    flex-direction: row;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    padding: 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 30px;
    border: 1px solid rgba(0,245,212,0.2);
    gap: 0;
    box-sizing: border-box;
}

.search-wrapper .search-input {
    flex: 1;
    min-width: 0;
    padding: 12px 20px;
    font-size: 1em;
    border-radius: 30px 0 0 30px;
    border: 1px solid rgba(0,245,212,0.3);
    border-right: none;
    background: rgba(255,255,255,0.08);
    color: #e8f4f8;
    outline: none;
    box-sizing: border-box;
}

.search-wrapper .search-input::placeholder {
    color: #6b9aaa;
}

.search-wrapper .search-button {
    padding: 12px 24px;
    font-size: 1em;
    border-radius: 0 30px 30px 0;
    border: none;
    background: linear-gradient(135deg, #00f5d4 0%, #00c9a7 100%);
    color: #0a1628;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
}

/* Tablet */
@media (max-width: 768px) {
    .search-wrapper {
        padding: 15px;
    }
    .search-wrapper .search-form {
        max-width: 100%;
        border-radius: 20px;
    }
    .search-wrapper .search-input {
        border-radius: 20px 0 0 20px;
        padding: 10px 15px;
        font-size: 0.95em;
    }
    .search-wrapper .search-button {
        border-radius: 0 20px 20px 0;
        padding: 10px 18px;
        font-size: 0.95em;
    }
}

/* Mobile phone */
@media (max-width: 600px) {
    .search-wrapper {
        padding: 12px 10px;
    }
    .search-wrapper .search-form {
        flex-direction: column;
        border-radius: 15px;
        gap: 8px;
        padding: 10px;
    }
    .search-wrapper .search-input {
        border-radius: 25px;
        border-right: 1px solid rgba(0,245,212,0.3);
        width: 100%;
        text-align: center;
        font-size: 16px; /* Prevents iOS zoom */
    }
    .search-wrapper .search-button {
        border-radius: 25px;
        width: 100%;
        padding: 12px;
    }
}

/* Small iPhone */
@media (max-width: 375px) {
    .search-wrapper {
        padding: 10px 8px;
    }
    .search-wrapper .search-input {
        padding: 10px 12px;
        font-size: 15px;
    }
}

.search-input {
    width: 100% !important; min-width: 400px;
}

/* Force full width search */
.search-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    display: block !important;
}
.search-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}
.search-form {
    width: 100% !important;
    max-width: 100% !important;
}
.search-input {
    width: 100% !important;
    flex: 1 1 auto !important;
}

/* Mobile iPhone fixes */
@media (max-width: 768px) {
    .search-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        transform: none !important;
        margin: 0 auto !important;
        padding: 20px 15px !important;
        box-sizing: border-box !important;
    }
    .search-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    .search-form {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
    }
    .search-input {
        width: 100% !important;
        min-width: unset !important;
        font-size: 16px !important; /* Prevents iOS zoom on focus */
    }
    .search-button {
        width: 100% !important;
        margin-top: 10px !important;
    }
}

/* iPhone SE / small screens */
@media (max-width: 375px) {
    .search-wrapper {
        padding: 15px 5px !important;
    }
    .search-form {
        padding: 10px !important;
        border-radius: 20px !important;
    }
    .search-input {
        padding: 12px 15px !important;
        font-size: 15px !important;
    }
}

/* ===== SITE LOGO ===== */
.site-logo {
    max-width: 80px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,245,212,0.3);
    display: block;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .site-logo {
        max-width: 60px;
        width: 60px;
        height: 60px;
    }
}

/* ===== COMPACT HOMEPAGE HEADER ===== */
.header-compact {
    padding: 20px 15px 15px;
    text-align: center;
}
.header-compact h1 {
    font-size: 1.8em;
    margin: 10px 0 5px;
}
.header-compact p {
    font-size: 1em;
    margin: 0;
    color: #a0c4d4;
}

@media (max-width: 600px) {
    .header-compact {
        padding: 15px 10px 10px;
    }
    .header-compact h1 {
        font-size: 1.5em;
    }
}
