/* ========================================
   WIREFRAME.CSS - Design for the Web 1
   ======================================== 
   A CSS library to style HTML elements as wireframes
   for connecting content strategy to visual design
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    padding: 20px;
    max-width: 100%;
    overflow-x: hidden;
}

/* Container for main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border: 2px solid #666;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Header Styling */
header {
    border: 2px dashed #999;
    background: linear-gradient(45deg, #f8f8f8 25%, transparent 25%),
        linear-gradient(-45deg, #f8f8f8 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f8f8f8 75%),
        linear-gradient(-45deg, transparent 75%, #f8f8f8 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
    position: relative;
}



header::before {
    content: "HEADER";
    position: absolute;
    top: -12px;
    left: 10px;
    background: white;
    padding: 0 8px;
    font-size: 10px;
    font-weight: bold;
    color: #666;
    letter-spacing: 1px;
}

/* Navigation Styling - Logo Left, Links Right */
nav {
    border: 2px solid #666;
    background: #f5f5f5;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

nav::before {
    content: "NAVIGATION";
    position: absolute;
    top: -12px;
    left: 10px;
    background: white;
    padding: 0 8px;
    font-size: 10px;
    font-weight: bold;
    color: #666;
    letter-spacing: 1px;
}

/* Logo Styling */
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: bold;

}

.nav-logo:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.3);
    border-radius: 50%;
}

.nav-logo-circle {
    width: 50px;
    height: 50px;
    border: 2px solid #666;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: #666;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.nav-logo:hover .nav-logo-circle {
    background: #e8e8e8;
    border-color: #333;
}

/* Navigation Right Container */
.nav-right {
    display: flex;
    align-items: center;
    order: 3;
}

/* Hamburger Menu Button - Hidden by default */
.nav-toggle {
    display: none;
    background: white;
    border: 2px solid #666;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #333;
    position: relative;
    transition: all 0.3s ease;

}

.nav-toggle:hover,
.nav-toggle:focus {
    background: #e8e8e8;
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}

.nav-toggle:focus {
    box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.3);
}

/* Hamburger Icon */
.nav-toggle::before {
    content: "☰";
    font-size: 18px;
    line-height: 1;
}

.flex-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.nav-toggle[aria-expanded="true"]::before {
    content: "✕";
}

/* Navigation List */
nav ul {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;

}

nav li {
    font-size: 14px;
    transition: all 0.2s ease;
}

nav li:hover {
    background: #f0f0f0;
    border-color: #999;
}

nav a:not(.nav-logo) {
    display: block;
    color: #333;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

nav a:not(.nav-logo):hover {
    color: #005fcc;
}

nav a:not(.nav-logo):focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.3);
}

/* Heading Styles - Wireframe boxes with decreasing sizes */
h1,
h2,
h3,
h4,
h5,
h6 {
    background: #e8e8e8;
    border: 1px solid #999;
    border-radius: 3px;
    padding: 15px 20px;
    margin: 20px 0 15px 0;
    font-weight: normal;
    position: relative;
    background-image: repeating-linear-gradient(90deg,
            #ddd,
            #ddd 1px,
            transparent 1px,
            transparent 8px);
}

h1 {
    font-size: 32px;
    height: 80px;
    display: flex;
    align-items: center;
    border: 2px solid #666;
    background: #d4d4d4;
}

h2 {
    font-size: 26px;
    height: 65px;
    display: flex;
    align-items: center;
    border-width: 2px;
}

h3 {
    font-size: 22px;
    height: 55px;
    display: flex;
    align-items: center;
}

h4 {
    font-size: 18px;
    height: 45px;
    display: flex;
    align-items: center;
}

h5 {
    font-size: 16px;
    height: 40px;
    display: flex;
    align-items: center;
}

h6 {
    font-size: 14px;
    height: 35px;
    display: flex;
    align-items: center;
}

/* Paragraph Styling */
p {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 15px;
    margin: 15px 0;
    line-height: 1.8;
    position: relative;
    background-image: repeating-linear-gradient(transparent,
            transparent 20px,
            #f0f0f0 20px,
            #f0f0f0 21px);
}

/* Details/Summary Styling */
details {
    border: 2px solid #666;
    border-radius: 4px;
    margin: 15px 0;
    background: white;
}

summary {
    background: #e8e8e8;
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    position: relative;
}

summary::before {
    content: "▶";
    margin-right: 10px;
    transition: transform 0.2s;
}

details[open] summary::before {
    transform: rotate(90deg);
}

details[open] summary {
    border-bottom: 2px solid #666;
}

details>*:not(summary) {
    padding: 20px;
}

/* Image Styling */
img {
    border: 2px dashed #999;
    background: #f0f0f0;
    padding: 20px;
    display: block;
    margin: 20px 0;
    max-width: 100%;
    height: auto;
    position: relative;
    background-image: repeating-linear-gradient(45deg,
            #e8e8e8,
            #e8e8e8 10px,
            transparent 10px,
            transparent 20px);
}

.home-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    display: inline-block;
    margin-right: 10px;
}

img::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 5px 10px;
    border: 1px solid #999;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    color: #666;
}

/* Iframe Styling */
iframe {
    border: 2px solid #666;
    background: #f5f5f5;
    margin: 20px 0;
    width: 100%;
    height: 300px;
    border-radius: 4px;
    position: relative;
}

iframe::before {
    content: "EMBEDDED CONTENT";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 10px 15px;
    border: 1px solid #999;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    color: #666;
    z-index: 1;
}

/* Footer Styling */
footer {
    border: 2px dashed #999;
    background: #f8f8f8;
    padding: 20px;
    margin-top: 30px;
    border-radius: 4px;
    position: relative;
    background-image: repeating-linear-gradient(0deg,
            #f0f0f0,
            #f0f0f0 1px,
            transparent 1px,
            transparent 15px);
}

footer::before {
    content: "FOOTER";
    position: absolute;
    top: -12px;
    left: 10px;
    background: white;
    padding: 0 8px;
    font-size: 10px;
    font-weight: bold;
    color: #666;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    main {
        padding: 20px;
    }

    /* Show hamburger menu button on small screens */
    .nav-toggle {
        display: block;
        width: 45px;
    }

    /* Hide navigation by default on mobile */
    nav ul {
        display: none;
        flex-direction: column;
        gap: 0;
        text-align: right;
        padding-top: 15px;
    }

    /* Show navigation when expanded */
    nav ul[aria-expanded="true"] {
        display: flex !important;
    }

    nav li {
        border-radius: 4px;
        margin-bottom: 8px;
        width: 100%;
    }

    h1 {
        font-size: 24px;
        height: 60px;
    }

    h2 {
        font-size: 20px;
        height: 50px;
    }

    h3 {
        font-size: 18px;
        height: 45px;
    }

    h4 {
        font-size: 16px;
        height: 40px;
    }

    h5 {
        font-size: 14px;
        height: 35px;
    }

    h6 {
        font-size: 13px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    main {
        padding: 15px;
        border-width: 1px;
    }

    header,
    footer {
        padding: 15px;
    }

    h1 {
        font-size: 20px;
        height: 50px;
    }

    h2 {
        font-size: 18px;
        height: 45px;
    }

    h3 {
        font-size: 16px;
        height: 40px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    main {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* Utility Classes for Students */
.wireframe-note {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    font-size: 14px;
    color: #856404;
}

.wireframe-placeholder {
    background: #e9ecef;
    border: 2px dashed #6c757d;
    padding: 40px;
    text-align: center;
    margin: 20px 0;
    border-radius: 4px;
    color: #6c757d;
    font-style: italic;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #005fcc;
    color: white;
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    z-index: 1000;
    font-weight: bold;
}

.skip-link:focus {
    top: 6px;
    outline: 2px solid #fff;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}