/* ============================================
   Libertarian Press Stylesheet
   Expanded: 2025-10-13
   Modern CSS with backward compatibility
   ============================================ */

/* BASE STYLES */
body {
    color: #000000;
    background-color: #EDE5D8;
    font-family: Georgia, serif;
    background-position: center;
    background-image: url(../images/bg.jpg);
    background-repeat: repeat-y;
    margin: 0;
    padding: 0;
}

/* TYPOGRAPHY */
h1 {
    color: #782257;
    font-size: 180%;
    font-family: Georgia, serif;
}

h2 {
    color: #782257;
    font-size: 140%;
    font-family: Georgia, serif;
}

h3 {
    color: #782257;
    font-size: 110%;
    font-family: Georgia, serif;
}

h4 {
    color: #B86D9D;
    font-size: 210%;
    font-family: Georgia, serif;
}

p {
    color: #000000;
    font-size: 90%;
    font-family: Trebuchet, Arial, sans-serif;
}

li {
    color: #000000;
    font-family: Georgia, serif;
}

/* LINKS */
a:link {
    color: #782257;
}

a:visited {
    color: #782257;
}

a:hover {
    color: #B86D9D;
    text-decoration: underline;
}

a:active {
    color: #782257;
}

/* BUSINESS INFO STYLES */
.BusName {
    color: #782257;
    font-size: 130%;
    font-family: Georgia, serif;
}

.BusData {
    color: #000000;
    font-size: 65%;
    font-family: Trebuchet, Arial, sans-serif;
}

/* LAYOUT */
#menu {
    margin-top: 0px;
}

/* Page wrapper - centers content */
.page-wrapper {
    text-align: center;
}

/* Header image area - tan background to match content */
.page-wrapper img[alt="Libertarian Press"] {
    display: block;
    margin: 0 auto;
    background-color: #F5EDE0;
    padding: 0 20px;
    box-sizing: content-box;
}

/* Footer wrapper */
.footer-wrapper {
    text-align: center;
    max-width: 775px;
    margin: 0 auto;
}

/* Footer blockquote - tan background, constrained width */
blockquote {
    background-color: #F5EDE0;
    margin: 0 auto;
    padding: 10px 0;
    text-align: center;
}

/* Author byline smaller text */
.author-byline {
    font-size: 90%;
}

/* Center main content table */
#content {
    margin: 0 auto;
    background-color: #F5EDE0;
}

/* Left column padding */
#content td:first-child {
    padding-left: 0.25in;
}

/* Author and Title browse columns - left align */
#content td p {
    text-align: left;
}

/* BROWSE BUTTONS (Added 2025-10-13) */
.browse-buttons {
    text-align: center;
    margin-top: 10px;
}

.browse-buttons p {
    margin: 5px 0;
    font-weight: bold;
}

.browse-btn,
a.browse-btn:link,
a.browse-btn:visited {
    display: block;
    background: #782257;
    color: #F4E8D0;
    padding: 10px;
    margin: 3px 0;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.3s ease;
    font-family: "Clarendon", "Century Schoolbook", Georgia, serif;
    font-size: 22px;
    font-weight: bold;
    font-style: normal;
}

.browse-btn:hover,
a.browse-btn:hover {
    background: #5a1a40;
    color: #F4E8D0;
}

/* CONTACT MODAL (Added 2025-10-13) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #F5EDE0;
    padding: 30px;
    border: 2px solid #782257;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

.modal-header {
    color: #782257;
    font-size: 24px;
    font-family: Georgia, serif;
    margin-bottom: 20px;
    border-bottom: 2px solid #782257;
    padding-bottom: 10px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #782257;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

.modal-close:hover {
    color: #B86D9D;
}

.modal-form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-family: Georgia, serif;
    color: #782257;
    font-weight: bold;
}

.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #782257;
    border-radius: 4px;
    font-family: Trebuchet, Arial, sans-serif;
    font-size: 14px;
    box-sizing: border-box;
}

.modal-form textarea {
    min-height: 120px;
    resize: vertical;
}

.modal-form button[type="submit"] {
    background: #782257;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-family: Georgia, serif;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.modal-form button[type="submit"]:hover {
    background: #B86D9D;
}

.modal-form button[type="submit"]:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* HONEYPOT (Anti-spam hidden field) */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* RESPONSIVE (Basic) */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .modal-content {
        padding: 20px;
        width: 95%;
    }

    h1 {
        font-size: 150%;
    }

    h2 {
        font-size: 120%;
    }
}

/* CONTACT US BUTTON (Footer) - Added 2025-10-14 */
.contact-us-btn {
    background-color: #782257;
    color: #F4E8D0;
    border: none;
    padding: 12px 30px;
    font-size: 22px;
    font-weight: bold;
    font-family: "Clarendon", "Century Schoolbook", Georgia, serif;
    font-style: normal;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    margin-top: 10px;
}

.contact-us-btn:hover {
    background-color: #5a1a40;
    transform: translateY(-2px);
}

.contact-us-btn:active {
    transform: translateY(0);
}
