:root {
    --primary-color: #FFD700; /* Gold yellow */
    --secondary-color: #FF6347; /* Tomato red/orange */
    --accent-color: #FFA500; /* Orange */
    --text-color: #333;
    --bg-color: #FFF8DC; /* Cornsilk - Page Background */
    --content-bg-color: #fffaf0; /* FloralWhite - For text content sections */
    --pixel-border: 3px solid #000;
    --pixel-box-bg: #f0f0f0;
    --font-pixel: 'Press Start 2P', cursive;
}

/* --- CUSTOM CURSOR --- */
html, body, a, button, input, textarea, select, label,
[role="button"], [contenteditable="true"], .btn, #copyButton,
.pixel-box, #contractAddress
{
    cursor: url('../images/cluckcoin/cursor.png') 15 15, auto !important;
}

body {
    font-family: var(--font-pixel); /* Default to pixel font */
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8; /* Pixel fonts often need more line height */
    font-size: 10px; /* Base pixel font size - adjust as needed for readability */
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.pixel-box,
input,
textarea,
[contenteditable="true"] {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    font-family: var(--font-pixel); /* Ensure input fields also use pixel font if desired */
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
}

.container {
    width: 90%;
    max-width: 800px; /* Slightly narrower for better text readability */
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Header */
header {
    background-color: var(--secondary-color);
    padding: 10px 0;
    border-bottom: var(--pixel-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px; /* Header can be wider */
}

#header-logo {
    height: 40px;
    image-rendering: pixelated;
}

header nav a {
    font-family: var(--font-pixel);
    font-size: 0.8em; /* Adjusted for pixel font in header */
    color: white;
    text-decoration: none;
    margin: 0 8px;
    padding: 5px 8px;
    border: 2px solid transparent;
    transition: background-color 0.2s, border-color 0.2s;
}

header nav a:hover {
    background-color: var(--accent-color);
    border: 2px solid #000;
    color: #000;
}

/* Whitepaper Hero Section */
#hero-whitepaper {
    background:
        linear-gradient(to bottom, rgba(255, 215, 0, 0.55), rgba(255, 165, 0, 0.65)),
        url('../images/cluckcoin/barnbackground.jpg'); /* Consider a different BG for whitepaper */
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 30px 0;
    text-align: center;
    border-bottom: var(--pixel-border); /* This is for the section, not the image */
}

#hero-whitepaper h1 {
    font-family: var(--font-pixel);
    font-size: 1.8em; /* Adjusted for pixel font */
    color: #fff;
    text-shadow: 2px 2px #000, 0 0 10px rgba(0,0,0,0.5);
    margin-bottom: 10px;
    margin-top: 15px;
}

#hero-whitepaper .subtitle {
    font-family: var(--font-pixel);
    font-size: 0.9em; /* Adjusted for pixel font */
    color: #ffffff;
    text-shadow: 1px 1px #000, 0 0 5px rgba(0,0,0,0.7);
    margin-bottom: 20px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.whitepaper-title-img {
    max-width: 50%;
    min-width: 250px;
    margin-bottom: 10px;
}
.whitepaper-hero-img {
    max-width: 250px;
    margin-top: 20px;
    /* border: var(--pixel-border); */ /* Border removed */
    /* background-color: rgba(255,255,255,0.2); */ /* Background removed */
    /* padding: 5px; */ /* Optional: Remove padding if it was for the border */
}


/* Content Section Styling */
.content-section {
    padding: 30px 0; /* Reduced padding for whitepaper sections */
    border-bottom: var(--pixel-border); /* This is for the section, not images within */
    text-align: left; /* Default to left align for readability */
}
.content-section:last-of-type { border-bottom: none; }

.text-content-section {
    background-color: var(--content-bg-color); /* Light bg for text areas */
}

.content-section h2 {
    font-family: var(--font-pixel);
    font-size: 1.5em; /* Adjusted for pixel font */
    margin-bottom: 25px;
    margin-top: 0;
    color: var(--secondary-color);
    text-shadow: 1px 1px #555;
    text-align: center; /* Center section titles */
}
.pixel-icon {
    margin-right: 8px;
    font-size: 0.8em; /* Adjust if pixel icons are too large */
}

.content-section p {
    margin-bottom: 1.5em; /* Increased spacing for pixel font */
    font-size: 1em; /* Relative to body's 10px - this will make it quite small */
    color: #333; /* Ensure good contrast for pixel font */
}
.content-section strong {
    /* Pixel fonts often don't have a separate bold weight. */
    color: var(--secondary-color); /* Example: make "bold" text a different color */
}

.content-section .sub-heading {
    font-family: var(--font-pixel);
    font-size: 1.1em; /* Adjusted for pixel font */
    color: var(--accent-color);
    margin-top: 25px;
    margin-bottom: 15px;
    text-align: left;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 5px;
}

.content-section ul {
    list-style: none; /* Using custom bullet */
    padding-left: 0;
    margin-bottom: 1.5em;
}

.content-section ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 1em; /* Increased spacing */
    font-size: 1em; /* Relative to body's font-size */
    color: #333;
}

.content-section ul li::before {
    content: "🐔"; /* Chicken bullet! */
    position: absolute;
    left: 0;
    top: -2px; /* Adjust vertical alignment for pixel font */
    font-size: 1em;
    color: var(--secondary-color);
}

/* Images within content */
.content-img-medium {
    display: block;
    max-width: 300px;
    margin: 10px auto 25px auto;
    /* border: var(--pixel-border); */ /* Border removed */
    /* padding: 5px; */ /* Optional: Remove padding */
    /* background-color: var(--bg-color); */ /* Background removed */
}
.content-img-small {
    display: block;
    max-width: 150px;
    margin: 0px auto 20px auto;
    /* border: var(--pixel-border); */ /* Border removed */
    /* padding: 3px; */ /* Optional: Remove padding */
    /* background-color: var(--bg-color); */ /* Background removed */
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em; 
    font-family: var(--font-pixel); 
}
#footer-logo {
    height: 40px;
    margin-bottom: 10px; /* Space below logo */
    image-rendering: pixelated;
}

/* Styles for Footer Social Icons in <footer> */
footer .social-icons-footer {
    margin-top: 15px;    /* Space above the icons */
    margin-bottom: 15px; /* Space below the icons */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px; /* Space between icons */
    flex-wrap: wrap; 
}

footer .social-icons-footer a {
    display: inline-block; 
    transition: transform 0.2s ease-out;
}

footer .social-icons-footer a:hover {
    transform: scale(1.15); 
}

footer .social-icons-footer .social-icon-img {
    width: 32px;  /* Adjust size as needed for footer */
    height: 32px; /* Adjust size as needed for footer */
    image-rendering: pixelated; 
    /* border: 2px solid var(--bg-color); */ /* Border removed */
    /* border-radius: 4px; */ /* Optional: keep for shape if icon is square */
    /* background-color: var(--secondary-color); */ /* Background removed */
    /* padding: 3px; */ /* Padding removed */
    /* box-shadow: 1px 1px 0px var(--accent-color); */ /* Shadow removed */
    display: block; 
}

footer .copyright-text { /* Added class for copyright for specific styling */
    margin-top: 10px; /* Space above copyright if icons are present */
    margin-bottom: 5px;
    font-size: 1em; /* Relative to footer's font-size */
}

footer .disclaimer {
    font-size: 0.9em; /* Relative to footer font size */
    margin-top: 5px;
    opacity: 0.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7; /* Ensure good line height for disclaimer */
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
    body { font-size: 9px; } /* Adjust base pixel font size for mobile */
    
    #header-logo { height: 35px; }
    header nav a { font-size: 0.7em; margin: 0 5px; } /* Slightly smaller nav links for pixel font */

    #hero-whitepaper h1 { font-size: 1.6em; }
    #hero-whitepaper .subtitle { font-size: 0.8em; }
    .whitepaper-title-img { max-width: 60%; }

    .content-section h2 { font-size: 1.3em; }
    .content-section p { font-size: 1em; } /* Still relative to body (9px) */
    .content-section .sub-heading { font-size: 1em; }
    .content-section ul li { font-size: 1em; }
}

@media (max-width: 480px) {
    body { font-size: 8px; } /* Further adjust base pixel font size */
    
    .header-container { flex-direction: column; gap: 10px; }
    #header-logo { margin-bottom: 5px;}
    header nav { display: flex; flex-wrap: wrap; justify-content: center; }
    header nav a { font-size: 0.7em; margin: 3px; padding: 4px 6px;} /* Keep nav links a bit larger relative to body */

    #hero-whitepaper { padding: 20px 0; }
    #hero-whitepaper h1 { font-size: 1.3em; }
    #hero-whitepaper .subtitle { font-size: 0.7em; }
    .whitepaper-title-img { max-width: 70%; }
    .whitepaper-hero-img { max-width: 180px; }


    .content-section h2 { font-size: 1.2em; }
    .content-section .sub-heading { font-size: 0.9em; }
    /* p and li font sizes are relative to body, so they scale down */

    /* Responsive adjustments for footer social icons */
    footer .social-icons-footer {
        gap: 10px; 
    }
    footer .social-icons-footer .social-icon-img {
        width: 28px; 
        height: 28px;
        /* padding: 2px; */ /* Padding removed */
    }
}