/* WCAG-compliant styles for Dr. Nothing Productions Archive */
body {
    background-color: #000000; /* Black background */
    color: #FFA500; /* Orange text */
    font-family: monospace, 'Courier New', Courier;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* Header styles */
header {
    background-color: #4B5320; /* Army green */
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #8B4513; /* Brown border */
}

header h1 {
    font-size: 2rem;
    margin: 0 0 15px 0; /* Space below title for logo */
    color: #FFA500; /* Orange text */
}

header img {
    display: block;
    max-width: 600px; /* Max width for banner logo */
    width: 100%; /* Span screen width up to max */
    height: auto;
    margin: 0 auto; /* Center the logo */
}

/* Container for posts */
.container {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    padding: 20px;
}

/* Post card styles */
.post {
    background-color: #000000;
    border: 2px solid #FFA500; /* Orange border */
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.post:hover {
    background-color: #FFA500; /* Orange background on hover */
    color: #000000; /* Black text on hover */
}

/* Video container */
.video-container {
    width: 100%; /* Full width of parent */
    max-width: 100%; /* Full device width */
    margin: 0 auto 10px; /* Center with bottom margin */
}

/* Responsive iframe wrapper for embedded videos (e.g., YouTube, Vimeo) */
.video-container iframe {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* Maintain common video aspect ratio */
    max-width: 100%;
    object-fit: contain; /* Ensure no cropping, preserve aspect ratio */
}

/* Video and iframe styles */
video, iframe {
    width: 100%; /* Full width of container */
    max-width: 100%; /* Prevent overflow */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensure no cropping, preserve aspect ratio */
}

/* Links and buttons styled as boxes */
a.box-link, .copy-btn, .back-link, button, input[type="submit"], .edit-btn, .delete-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFA500; /* Orange background */
    color: #000000; /* Black text */
    text-decoration: none;
    border: 2px solid #8B4513; /* Brown border */
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: monospace, 'Courier New', Courier;
    font-size: 1rem;
    margin: 5px;
}

a.box-link:hover, .copy-btn:hover, .back-link:hover, button:hover, input[type="submit"]:hover, .edit-btn:hover, .delete-btn:hover {
    background-color: #000000; /* Black background on hover */
    color: #FFA500; /* Orange text on hover */
    border-color: #FFA500; /* Orange border on hover */
}

/* Form elements */
form {
    margin: 20px;
    text-align: center;
}

input[type="text"], input[type="password"], select, input[type="file"] {
    background-color: #000000;
    color: #FFA500;
    border: 2px solid #8B4513; /* Brown border */
    padding: 8px;
    font-family: monospace, 'Courier New', Courier;
    font-size: 1rem;
}

input[type="text"]:focus, input[type="password"]:focus, select:focus {
    outline: 2px solid #FFA500;
}

/* Search bar */
.search-bar {
    text-align: center;
    margin: 20px;
}

/* Channel header and list */
.channel-header, .channel-list {
    text-align: center;
    margin: 20px;
}

.channel-item {
    margin: 10px 0;
}

.channel-link {
    color: #FFA500;
    text-decoration: none;
    border-bottom: 1px solid #8B4513; /* Brown underline */
}

.channel-link:hover {
    background-color: #FFA500;
    color: #000000;
    padding: 2px 5px;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 30px;
    color: #FFA500;
    padding: 20px;
    background-color: #4B5320; /* Army green */
}

/* Form sections */
.post-form, .channel-form, .auth-form {
    text-align: center;
    margin: 30px auto;
    max-width: 600px;
}

.post-form label, .channel-form label, .auth-form label {
    display: block;
    margin: 10px 0;
}

/* Ensure WCAG compliance with focus states */
a:focus, button:focus, input:focus, select:focus, .edit-btn:focus, .delete-btn:focus {
    outline: 2px solid #FFA500;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.5rem;
    }

    header img {
        max-width: 100%; /* Ensure logo fits smaller screens */
    }

    .container {
        grid-template-columns: 1fr;
    }
}
