/*
 * Enclosure Pro Styles
 * Used by index.html and documentation.html
 * Color Scheme: Tan (#e8dcc8), Dark Orange (#cc5500), Black (#212121)
 */

:root {
    --primary-color: #cc5500; /* Dark Orange Accent */
    --secondary-color: #333333; /* Dark Grey/Black for main headers */
    --text-color: #212121; /* Near Black Text */
    --bg-color: #e8dcc8; /* Tan/Light Background */
    --box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1000px;
    padding: 40px 20px;
    background: white; /* White paper area to contrast tan background */
    box-shadow: var(--box-shadow);
    margin: 30px 0;
    border-radius: 12px;
}

/* --- Margin Fix for Small Screens --- */
/* On screens small enough for the box to fill width, add side margins and adjust width to prevent overflow. */
@media (max-width: 1040px) { 
    .container {
        margin: 30px 15px; /* Add a 15px margin to the sides */
        width: calc(100% - 30px); /* Ensure the box stays inside the margin (100% - 2*15px) */
    }
}
/* ------------------------------------- */


/* Typography and Links */
header {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 5px solid var(--primary-color); /* Orange Header Rule */
    margin-bottom: 30px;
}

header h1 {
    color: var(--secondary-color);
    font-size: 3em;
    margin-top: 10px;
}

a {
    color: var(--primary-color); /* Orange Links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

a:hover {
    color: #a34400; /* Darker Orange on hover */
    text-decoration: underline;
}

h2 {
    font-size: 2em;
    color: var(--secondary-color); /* Dark Grey Section Headers */
    border-bottom: 2px solid #b8a991; /* Subtle Dark Tan Border */
    padding-bottom: 10px;
    margin-top: 40px;
}

h3 {
    font-size: 1.6em;
    color: var(--primary-color); /* Orange Sub-headers */
    margin-top: 30px;
    border-left: 5px solid #ff9966; /* Light Orange accent bar */
    padding-left: 10px;
}

h4 {
    font-size: 1.2em;
    color: #616161;
    margin-top: 20px;
}

/* Shared Components */
.icon-text {
    margin-right: 8px;
    color: var(--secondary-color);
}

.asterisk {
    color: orange;
    font-weight: bold;
    font-size: 1.2em;
}

/* FIGURE AND CAPTION STYLES */
figure {
    margin: 30px 0; /* Add margin around the figure */
    padding: 0;
    text-align: center; /* Centers the image and caption */
}

figcaption {
    margin-top: 10px;
    font-style: italic;
    color: #555; /* Medium gray for captions */
    font-size: 0.85em; /* Updated for smaller size */
}
/* END FIGURE AND CAPTION STYLES */

/* Images inside figures */
figure img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
}


/* Index.html Specific Styles */
/* NEW: Container for Header Buttons */
.header-buttons {
    display: flex; 
    justify-content: center;
    gap: 15px; 
    margin-top: 15px;
    flex-wrap: wrap; 
}
.coffee-link {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Centered content */
    width: 250px; /* Fixed width for consistency */
    box-sizing: border-box; /* Includes padding/border in width */
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    background-color: #fff; /* White to pop against Tan body background */
    transition: all 0.3s;
}
.coffee-link:hover {
    background-color: var(--primary-color);
    color: #fff; /* White text on orange hover */
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.coffee-link i {
    color: var(--primary-color);
    margin-right: 8px;
}
.coffee-link:hover i {
    color: #fff; /* White icon on orange hover */
}


.features-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.features-list li {
    background: #f0f0f0; /* Light Grey to distinguish from tan background */
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.2s, background-color 0.3s;
}
.features-list li:hover {
    transform: translateY(-5px);
    background: #d4d4d4; /* Slightly darker grey on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.features-list i {
    margin-right: 10px;
    color: var(--primary-color); /* Orange icons */
}

.downloads-note {
    background-color: #f7e9d7; /* Lighter tan for note box */
    color: #7b4400; /* Dark brown/orange text for contrast */
    padding: 15px;
    border: 1px solid #e0d3b6;
    border-radius: 5px;
    margin-bottom: 20px;
    font-style: italic;
}
.downloads-list {
    list-style: none;
    padding-left: 0;
}
.downloads-list li {
    margin-bottom: 15px;
}
.downloads-list a {
    /* Set dimensions and alignment for the overall button */
    display: inline-flex; 
    width: 220px; 
    flex-direction: column; /* Stacks the primary text and the small text */
    align-items: flex-start; /* Left-aligns content inside the button */
    padding: 8px 25px; 
    background-color: var(--secondary-color); 
    color: white;
    border-radius: 8px;
    transition: background-color 0.3s;
}
.downloads-list a:hover {
    background-color: #000; 
    text-decoration: none;
}
/* Container for icon and OS name (horizontal) */
.downloads-list a .download-primary {
    display: flex;
    align-items: center; /* Vertically centers the icon and text */
    margin-bottom: 3px; /* Space between the primary label and file size */
}
/* Icon styles, now horizontally aligned with span */
.downloads-list a .download-primary i {
    margin-right: 8px; /* Space to the right of the icon */
    margin-bottom: 0; 
    font-size: 1.5em; 
}
/* Existing span styles (OS Name) - ensures content is visible */
.downloads-list a span {
    font-weight: bold;
    margin-bottom: 0; 
}
/* File size (small) styles - NOT BOLD as requested */
.downloads-list a small {
    font-size: 0.75em; 
    opacity: 0.8; 
    font-weight: normal; 
    margin-top: 0; 
}


/* Documentation.html Specific Styles */

.video-overview {
    text-align: center;
    margin-bottom: 30px;
}
.video-overview iframe { /* Added styles for embedded video */
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 4px solid var(--secondary-color);
    border-radius: 5px;
}

.ui-image-list {
    list-style-type: decimal; /* Enable 1, 2, 3 numbering */
    padding-left: 20px;
    margin-top: 20px;
}

.printing-steps i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* --- Documentation and History Link Styles --- */

.docs-list {
    list-style: none;
    padding-left: 0;
}
.docs-list li {
    margin-bottom: 15px;
}

.doc-link {
    /* Set dimensions and alignment for the overall button, mirroring downloads */
    display: inline-flex; 
    width: 220px; 
    flex-direction: column; /* Stacks the primary text and the small text */
    align-items: flex-start; /* Left-aligns content inside the button */
    padding: 8px 25px; 
    
    /* Use Primary Color (Feedback/Accent Color) */
    background-color: var(--primary-color); 
    color: white; 
    border-radius: 8px; /* Sharp corners like downloads */
    transition: background-color 0.3s;
}

.doc-link:hover {
    background-color: #a34400; /* Darker orange on hover */
    text-decoration: none;
    color: white; /* Keep text white on hover */
}

/* Container for icon and primary label (horizontal) */
.doc-link .doc-primary {
    display: flex;
    align-items: center; /* Vertically centers the icon and text */
    margin-bottom: 3px; /* Space between the primary label and descriptive text */
}

/* Icon styles */
.doc-link .doc-primary i {
    color: white;
    margin-right: 8px; /* Space to the right of the icon */
    font-size: 1.5em; 
}

/* Primary text (label) */
.doc-link .doc-primary span {
    font-weight: bold;
    margin-bottom: 0; 
}

/* Descriptive text (small) */
.docs-list small {
    font-size: 0.75em; 
    opacity: 0.8; 
    font-weight: normal; 
    margin-top: 0; 
}

/* --- Media Queries (Responsiveness) --- */

@media (max-width: 550px) {
    /* Header Buttons Stack and Go Full Width */
    .header-buttons {
        flex-direction: column;
        align-items: center;
    }
    .coffee-link {
        width: 100%; /* Full width on small screens */
        margin-bottom: 10px; /* Add spacing between stacked buttons */
    }
    /* Downloads and Documentation Links Go Full Width */
    .downloads-list a, .doc-link { 
        width: 100%;
        box-sizing: border-box; 
    }
}