/* CheckBullionPrices.com - Shared Styles */

body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #f5f5f5;
}

/* Menu Button (Hamburger) */
.menu-button {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: #4CAF50;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px;
}

.menu-button:hover {
    background-color: #45a049;
}

.menu-button span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    border-radius: 2px;
}

/* Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
}

.menu-overlay.active {
    display: block;
}

/* Side Menu */
.menu {
    display: none;
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    z-index: 1001;
    transition: left 0.3s ease;
    padding: 70px 0 20px 0;
}

.menu.active {
    display: block;
    left: 0;
}

.menu a {
    display: block;
    padding: 15px 25px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.menu a:hover {
    background-color: #f5f5f5;
    color: #4CAF50;
}

.menu a.active {
    background-color: #4CAF50;
    color: white;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

/* Headers */
h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    color: #4CAF50;
    margin-top: 30px;
    margin-bottom: 15px;
}

.updated {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

/* Table Wrapper */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    min-width: 600px;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
}

/*tr:nth-child(even) {
    background-color: #f2f2f2;
}*/

tr:hover {
    background-color: #e8f5e8;
}

/* Metal Type Colors */
.metal-gold {
    background-color: #fff3cd;
}

.metal-silver {
    background-color: #e2e3e5;
}

.metal-platinum {
    background-color: #d1ecf1;
}

.metal-palladium {
    background-color: #f8d7da;
}

/* Price Styling */
.price {
    font-weight: bold;
    color: #28a745;
}

/* Spot Prices Box */
.spot-prices {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f8f9fa;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;
}

.spot-prices h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    text-align: center;
}

.spot-price-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 14px;
}

.spot-metal {
    font-weight: bold;
    color: #555;
    margin-right: 10px;
}

.spot-value {
    color: #28a745;
    font-weight: bold;
}

/* Content (About/Contact pages) */
.content {
    line-height: 1.8;
    color: #333;
    font-size: 16px;
}

.content p {
    margin-bottom: 20px;
}

.content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.content li {
    margin-bottom: 10px;
}

/* Email Box (Contact page) */
.email-box {
    background-color: #f8f9fa;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 30px 0;
}

.email-box h3 {
    color: #4CAF50;
    margin-top: 0;
    margin-bottom: 15px;
}

.email-link {
    font-size: 18px;
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

.email-link:hover {
    text-decoration: underline;
}

/* Site Footer */
.site-footer {
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #666;
    font-size: 13px;
    line-height: 1.8;
}

.site-footer a {
    color: #4CAF50;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #222;
    color: #eee;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 9999;
    font-size: 14px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 200px;
}

.cookie-banner-text a {
    color: #81c784;
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.cookie-accept {
    background-color: #4CAF50;
    color: white;
}

.cookie-accept:hover {
    background-color: #45a049;
}

.cookie-decline {
    background-color: transparent;
    color: #eee;
    border: 1px solid #aaa;
}

.cookie-decline:hover {
    background-color: #444;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        margin: 10px 5px;
    }

    .container {
        padding: 15px 10px;
        margin: 20px -5px;
        padding: 0 5px;
    }

    .spot-prices {
        position: static;
        margin: 0 auto 20px auto;
        max-width: 300px;
    }

    table {
        font-size: 14px;
        margin: 0;
        min-width: 0;
    }

    th, td {
        padding: 6px 3px;
        min-width: 60px;
    }

    th:first-child, td:first-child {
        min-width: 50px;
        width: 15%;
    }

    th:nth-child(2), td:nth-child(2) {
        min-width: 120px;
        width: 50%;
        overflow: hidden;
        text-overflow: ellipsis;
        word-wrap: break-word;
    }

    th:nth-child(3), td:nth-child(3),
    th:nth-child(4), td:nth-child(4) {
        min-width: 60px;
        width: 17.5%;
        text-align: right;
    }

    .content {
        font-size: 14px;
    }

    .email-link {
        font-size: 16px;
        word-break: break-all;
    }
}
