/* Main stylesheet for QR4U2 public site */

body {
    font-family: 'OpenSans', sans-serif; /* Assuming OpenSans is available or will be added */
    line-height: 1.55; /* Slightly reduced line height */
    margin: 0;
    padding: 15px 10px; /* Reduced body padding */
    background-color: #f4f4f4;
    color: #333;
    font-size: 0.975rem; /* Slightly reduce base font size for a more compact feel */
}

body > h1 { /* Style for the main page title generated by render_header */
    text-align: center;
    color: #0056b3; /* Primary theme color */
    margin-top: 15px; /* Reduced margin */
    margin-bottom: 25px; /* Reduced margin */
    font-size: 2.2em; /* Reduced font size */
}

.container { /* A general container for page content */
    max-width: 1080px; /* Slightly reduced max-width */
    margin: 0 auto 30px auto; /* Reduced bottom margin */
    overflow: auto;
    padding: 0 15px; /* Reduced padding */
}

/* Navigation Styles */
.main-navigation {
    background-color: #333; /* Dark background for nav */
    padding: 8px 0; /* Reduced padding */
    margin-bottom: 20px; /* Reduced space below nav */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center; /* Center navigation items */
}

.main-navigation ul li {
    display: inline-block; /* Horizontal menu */
    margin: 0 15px; /* Spacing between items */
}

.main-navigation ul li a {
    color: #fff; /* White text for links */
    text-decoration: none;
    font-size: 1.1em;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-navigation ul li a:hover,
.main-navigation ul li a.active { /* Style for hover and active link */
    background-color: #007bff; /* Primary color for active/hover */
    color: #fff;
}


/* General Content Styles */
h1, h2, h3, h4 { /* Already have h1 in body > h1, this is for other headings */
    color: #333;
}

h2 { /* General h2 styling, can be overridden */
    color: #0056b3; /* Theme color for section titles */
    margin-top: 25px; /* Reduced margin */
    margin-bottom: 10px; /* Reduced margin */
    border-bottom: 1px solid #eee;
    padding-bottom: 8px; /* Reduced padding */
    font-size: 1.75em; /* Slightly reduce H2 size */
}

h3 { /* General H3 styling */
    font-size: 1.4em; /* Define general H3 size */
    margin-bottom: 8px;
}


hr {
    margin: 25px 0; /* Reduced margin */
    border: 0;
    border-top: 1px solid #ccc;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Tier display styles */
.tiers-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.tier-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px; /* Reduced padding */
    width: 310px; /* Slightly narrower */
    box-shadow: 0 3px 6px rgba(0,0,0,0.08); /* Adjusted shadow */
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out;
}

.tier-card:hover {
    transform: translateY(-5px); /* Add a subtle hover effect */
}

.tier-card h3 { /* This will now inherit general H3 font-size if not overridden, or we can specify */
    margin-top: 0;
    color: #0056b3; /* Theme color for tier name */
    font-size: 1.3em; /* Reduced font size */
    margin-bottom: 8px; /* Reduced margin */
}

.tier-card .tier-description {
    font-size: 0.875em; /* Slightly smaller */
    color: #555;
    margin-bottom: 10px; /* Reduced margin */
    flex-grow: 1; /* Allow description to take available space */
}

.tier-card h4 {
    font-size: 1.0em; /* Reduced font size */
    color: #333;
    margin-top: 10px; /* Reduced margin */
    margin-bottom: 5px; /* Reduced margin */
    border-bottom: 1px solid #eee; /* Separator for features heading */
    padding-bottom: 3px; /* Reduced padding */
}

.tier-card ul {
    font-size: 0.875em; /* Slightly smaller */
    color: #555;
    padding-left: 18px; /* Reduced padding */
    margin-top: 0;
    list-style: none; /* Remove default bullets */
}

.tier-card ul li {
    margin-bottom: 6px; /* Reduced spacing between features */
    position: relative;
    padding-left: 18px; /* Reduced space for custom bullet */
}

.tier-card ul li::before { /* Custom bullet */
    content: '✔';
    color: #28a745; /* Green checkmark */
    position: absolute;
    left: 0;
    font-weight: bold;
}

.tier-card .tier-price {
    font-size: 1.2em; /* Reduced price font size */
    font-weight: bold;
    color: #007bff;
    margin-top: 15px; /* Reduced margin */
    margin-bottom: 10px; /* Reduced margin */
    text-align: center;
}

.tier-card .tier-etsy-link-container,
.tier-card .tier-subscribe-button-placeholder { /* Apply to placeholder too */
    margin-top: auto; /* Push button to the bottom */
    text-align: center;
    padding-top: 10px; /* Reduced space above the button */
}

.tier-card .tier-etsy-link,
.tier-card .tier-subscribe-button-placeholder button { /* Apply to placeholder button too */
    background-color: #ff7f00; /* Etsy-like orange */
    color: white;
    padding: 10px 18px; /* Reduced padding */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block; /* Ensure proper padding and centering */
    transition: background-color 0.2s ease;
    border: none; /* Ensure buttons don't have default borders */
}

.tier-card .tier-subscribe-button-placeholder button[disabled] {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

.tier-card .tier-etsy-link:hover {
    background-color: #e67300; /* Darker orange on hover */
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tier-card {
        width: calc(50% - 20px); /* Two cards per row */
    }
}

@media (max-width: 480px) {
    .tier-card {
        width: 100%; /* One card per row */
    }
}

/* Footer Styles */
.site-footer {
    text-align: center;
    padding: 25px 20px; /* Slightly more padding */
    margin-top: 50px; /* Increased top margin for more space */
    background-color: #333; /* Dark background */
    color: #f8f9fa; /* Lighter text color for contrast */
    border-top: 3px solid #007bff; /* Accent border top */
}

.site-footer .footer-links {
    margin-bottom: 15px; /* More space below links */
}

.site-footer .footer-links a {
    color: #f8f9fa; /* Lighter link color */
    margin: 0 12px; /* Slightly more margin between links */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.site-footer .footer-links a:hover {
    color: #007bff; /* Theme color on hover */
    text-decoration: underline;
}

.site-footer p.copyright-text { /* Targeting the paragraph with class */
    margin: 10px 0 0 0; /* Adjusted margin */
    font-size: 0.9em;
    color: #adb5bd; /* Softer color for copyright text */
}

.site-footer p.admin-copyright { /* Specific styling for admin footer if needed */
    color: #6c757d; /* Even softer for admin, if desired */
}
