/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PT Sans', 'Helvetica Neue', Arial, sans-serif;
    background-color: #707070;
    color: hsl(30, 67%, 93%);
    line-height: 1.6;
    min-height: 100vh;
}

h1 {
    line-height: 3rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles */
.main-header {
    padding: 5px 0;
    margin-bottom: 20px;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-link {
    flex-shrink: 0;
    display: block;
}

.site-logo {
    height: 160px;
    width: auto;
    max-width: 400px;
}

.title-link {
    display: block;
    text-decoration: none;
    margin: 0 0 10px 0;
}

.site-title-image {
    height: 100px;
    width: auto;
    max-width: 800px;
    display: block;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    padding-right: 40px;
    color: #F9EDE1;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #EFC08B;
}

/* Main comparison section */
.comparison-section {
    flex: 1;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Pickup Selection Controls */
.pickup-controls-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 20px;
}

.pickup-control-left {
    flex: 1;
    text-align: left;
}

.pickup-control-right {
    flex: 1;
    text-align: right;
}



.pickup-control-left h2,
.pickup-control-right h2 {
    font-size: 1.5em;
    margin-bottom: 8px;
    color: #F9EDE1;
    font-weight: 500;
}

.pickup-control-left h2 {
    text-align: left;
}

.pickup-control-right h2 {
    text-align: right;
}

/* Select dropdowns */
.pickup-select {
    width: 100%;
    max-width: 250px;
    padding: 12px 12px;
    padding-right: 35px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #F9EDE1;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23F9EDE1' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.762L10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.pickup-select:focus {
    outline: none;
    border-color: #EFC08B;
    box-shadow: 0 0 5px rgba(239, 192, 139, 0.3);
}

.pickup-select option {
    background: #707070;
    color: #F9EDE1;
}





/* Image Display Section */
.image-display-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 724px;
    margin: 0 auto;
}

/* Image containers */
.image-container {
    position: relative;
    min-height: 408px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.image-container.has-image {
    min-height: auto;
    height: auto;
    padding: 4px;
}

.pickup-a-image {
    order: 1;
}

.pickup-b-image {
    order: 2;
}

.pickup-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    border-radius: 4px;
}

.placeholder {
    color: #F9EDE1;
    opacity: 0.6;
    text-align: center;
    padding: 20px;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.placeholder p {
    margin: 0;
    font-size: 0.9rem;

}

/* Footer */
footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px 0;
    color: #F9EDE1;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .pickup-controls-section {
        flex-direction: row;
        gap: 15px;
        justify-content: space-between;
    }
    
    .pickup-control-left {
        text-align: left;
        flex: 1;
    }
    
    .pickup-control-right {
        text-align: right;
        flex: 1;
    }
    
    .pickup-control-left h2 {
        text-align: left;
    }
    
    .pickup-control-right h2 {
        text-align: right;
    }
    
    .pickup-select {
        max-width: 100%;
    }
    
    .image-container {
        min-height: 360px;
        height: auto;
        max-height: none;
    }
    
    .pickup-image {
        max-height: 350px;
    }
    
    .logo-section {
        flex-direction: row;
        align-items: center;
        gap: 20px;
        justify-content: center;
    }
    
    .site-logo {
        height: 88px;
        max-width: 165px;
    }
    
    .site-title-image {
        height: 60px;
        width: auto;
        max-width: none;
    }
    
    .main-nav {
        justify-content: flex-start;
        gap: 15px;
        margin-top: 2px;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding-right: 20px;
    }
    
    .container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .pickup-section h2 {
        font-size: 1.3rem;
    }
    
    .pickup-select {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
    
    .logo-section {
        gap: 18px;
        justify-content: center;
    }
    
    .site-logo {
        height: 88px;
        max-width: 132px;
    }
    
    .site-title-image {
        height: 50px;
        width: auto;
        max-width: none;
    }
}

/* Mobile portrait layout - stack logo above title and center navigation */
@media (max-width: 480px) and (orientation: portrait) {
    .logo-section {
        flex-direction: column;
        align-items: center;
        gap: 0px;
        justify-content: center;
        text-align: center;
    }
    
    .site-logo {
        height: 80px;
        max-width: 120px;
        margin: 0 auto;
    }
    
    .site-title-image {
        height: 45px;
        width: auto;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .main-nav {
        justify-content: center;
        gap: 15px;
        margin-top: -2px;
        flex-wrap: nowrap;
    }
    
    .nav-link {
        font-size: 1rem;
        padding-right: 0;
        text-align: center;
        white-space: nowrap;
    }
    
    .header-content {
        text-align: center;
    }
    
    .image-container {
        min-height: 175px;
        height: 175px;
        max-height: 175px;
    }
    
    .pickup-image {
        max-height: 170px;
    }
}

/* Image protection styles */
.pickup-image {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation for image appearance */
.pickup-image {
    animation: fadeIn 0.3s ease-in-out;
}

/* Terms of Use Page Styles */
.terms-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.terms-content {
    padding: 30px;
}

.terms-content h1 {
    color: #EFC08B;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.terms-content h2 {
    color: #EFC08B;
    font-size: 1.5rem;
    margin: 30px 0 15px 0;
    border-bottom: 2px solid rgba(239, 192, 139, 0.3);
    padding-bottom: 8px;
}

.terms-content p {
    color: #F9EDE1;
    line-height: 1.6;
    margin-bottom: 15px;
}

.terms-content ul {
    color: #F9EDE1;
    margin: 15px 0;
    padding-left: 20px;
}

.terms-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.back-link {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(239, 192, 139, 0.3);
}

.back-button {
    display: inline-block;
    background: #EFC08B;
    color: #707070;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #d4a97a;
    color: #707070;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Using This Site Page Styles */
.using-this-site-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.using-this-site-content {
    padding: 30px;
}

.using-this-site-content h1 {
    color: #EFC08B;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.using-this-site-content h2 {
    color: #EFC08B;
    font-size: 1.5rem;
    margin: 30px 0 15px 0;
    border-bottom: 2px solid rgba(239, 192, 139, 0.3);
    padding-bottom: 8px;
}

.using-this-site-content p {
    color: #F9EDE1;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

.using-this-site-content ul {
    color: #F9EDE1;
    margin: 20px 0;
    padding-left: 25px;
}

.using-this-site-content li {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 1rem;
}

.comparison-image {
    text-align: center;
    margin: 30px 0;
}

.comparison-image p {
    color: #EFC08B;
    font-style: italic;
    margin: 0;
    font-size: 1.1rem;
}

.comparison-img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.comparison-img.no-shadow {
    box-shadow: none;
}

/* Wiring Info Page Styles */
.wiring-info-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.wiring-info-content {
    padding: 30px;
}

.wiring-info-content h1 {
    color: #EFC08B;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.wiring-info-content h2 {
    color: #EFC08B;
    font-size: 1.5rem;
    margin: 30px 0 15px 0;
    border-bottom: 2px solid rgba(239, 192, 139, 0.3);
    padding-bottom: 8px;
}

.wiring-info-content p {
    color: #F9EDE1;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

.amazon-affiliate-note {
    display: inline-block;
    margin-top: 50px;
    opacity: 0.7;
}

.wiring-info-content strong {
    color: #F9EDE1;
    font-weight: 600;
}

.book-image {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: rgba(239, 192, 139, 0.05);
    border: 1px dashed rgba(239, 192, 139, 0.3);
    border-radius: 8px;
}

.book-image p {
    color: #EFC08B;
    font-style: italic;
    margin: 0;
    font-size: 1.1rem;
}

/* Important Notice Styling */
.important-notice {
    background: rgba(239, 192, 139, 0.15);
    border: 2px solid #EFC08B;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(239, 192, 139, 0.2);
}

.important-notice h2 {
    color: #EFC08B;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
}

.important-notice p {
    color: #F9EDE1;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 500;
}

.important-notice ul {
    color: #F9EDE1;
    margin: 20px 0;
    padding-left: 25px;
}

.important-notice li {
    margin-bottom: 12px;
    line-height: 1.6;
    font-weight: 500;
}

.important-notice b {
    color: #EFC08B;
}

/* Disclaimer Section */
.disclaimer-section {
    text-align: center;
    margin-top: 20px;
    padding: 20px 0;
    color: #F9EDE1;
    opacity: 0.8;
    font-size: 0.9rem;
}

.disclaimer-section a {
    color: #EFC08B;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.disclaimer-section a:hover {
    color: #d4a97a;
    text-decoration: underline;
}

/* Support (Buy Me A Coffee) */
.support-section {
    text-align: center;
    margin: 80px 0 24px 0;
}

/* Back to top link */
.back-to-top {
    text-align: center;
    margin: 50px 0 0 0;
}

.back-to-top a {
    color: #EFC08B;
    text-decoration: underline;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.back-to-top a:hover {
    color: #d4a97a;
    text-decoration: underline;
}

.support-image {
    width: 360px;
    max-width: 100%;
    height: auto;
}

.support-text {
    max-width: 420px;
    margin: 8px auto 0 auto;
    text-align: center;
    color: #F9EDE1;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Increase specificity so page-level p rules don't override */
.support-section .support-text {
    line-height: 1.3rem;
}

.support-home {
    margin-top: 60px;
}

/* Universal link styles for all text links */
a {
    color: #EFC08B;
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: #d4a97a;
    text-decoration: underline;
}

/* Header navigation links - no underline on hover */
.main-nav a {
    color: #F9EDE1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #d4a97a;
    text-decoration: none;
}

/* Footer link styles */
footer a {
    color: #EFC08B;
    text-decoration: underline;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #d4a97a;
    text-decoration: underline;
}

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

/* Focus styles for accessibility */
.pickup-select:focus {
    outline: 2px solid #EFC08B;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .pickup-section {
        border: 2px solid #F9EDE1;
    }
    
    .pickup-select {
        border: 2px solid #F9EDE1;
    }
}
