/* ==========================================================================
   MySpace Profile - Modern CSS
   A clean, semantic remake of the classic 2006 MySpace aesthetic
   ========================================================================== */

/* CSS Custom Properties (Variables) */
:root {
    /* MySpace Colors */
    --myspace-blue: #003399;
    --myspace-blue-light: #6699cc;
    --myspace-blue-lighter: #b1d0f0;
    --myspace-blue-lightest: #d5e8fb;
    --myspace-orange: #ffcc99;
    --myspace-orange-dark: #ff9933;
    --myspace-red: #cc0000;
    --myspace-link: #4e607b;
    
    /* Neutral Colors */
    --white: #ffffff;
    --black: #000000;
    --gray-light: #e5e5e5;
    --gray: #666666;
    
    /* Layout */
    --container-width: 800px;
    --sidebar-width: 300px;
    --main-width: 435px;
    --gutter: 20px;
    
    /* Typography */
    --font-primary: Verdana, Arial, sans-serif, Helvetica;
    --font-size-base: 11px;
    --font-size-small: 10px;
    --font-size-large: 12px;
    --font-size-heading: 15px;
    --line-height: 1.5;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--black);
    background-color: var(--gray-light);
}

img {
    max-width: 100%;
    height: auto;
    border: none;
}

a {
    color: var(--myspace-link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: var(--myspace-red);
}

ul {
    list-style-type: square;
    margin: 0;
    padding-left: 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: normal;
}

p {
    margin: 0 0 1em 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.main-header {
    background-color: var(--myspace-blue);
    padding: 0;
}

.navbar {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.navbar .brand {
    color: var(--white);
    font-weight: bold;
    font-size: var(--font-size-large);
}

.navbar .brand:hover {
    color: var(--white);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--white);
    font-size: var(--font-size-base);
}

.nav-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Secondary Navigation Bar */
.secondary-nav {
    background-color: var(--myspace-blue-light);
    text-align: center;
    padding: 8px 0;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.profile-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--gutter);
    background-color: var(--white);
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: var(--gutter);
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ==========================================================================
   Profile Header
   ========================================================================== */

.profile-header {
    text-align: left;
}

.profile-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--myspace-blue);
    margin-bottom: 10px;
}

.profile-photo {
    margin-bottom: 10px;
}

.avatar {
    max-width: 150px;
    border: 1px solid var(--myspace-blue-light);
}

.tagline {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 10px;
}

.profile-basics {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    font-size: var(--font-size-base);
}

.profile-basics li {
    margin-bottom: 2px;
}

.last-login {
    font-size: var(--font-size-small);
    color: var(--gray);
}

/* ==========================================================================
   Panels (Reusable Component)
   ========================================================================== */

.panel {
    border: 1px solid var(--myspace-blue-light);
    background-color: var(--white);
}

.panel-header {
    background-color: var(--myspace-blue-light);
    color: var(--white);
    font-size: var(--font-size-large);
    font-weight: bold;
    padding: 5px 10px;
}

.panel-header.orange {
    background-color: var(--myspace-orange);
    color: var(--black);
}

.panel-content {
    padding: 10px;
}

/* ==========================================================================
   Contact Box
   ========================================================================== */

.contact-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.contact-link {
    display: block;
    font-size: var(--font-size-small);
    padding: 3px 0;
}

/* ==========================================================================
   Interests & Details
   ========================================================================== */

.interests-list,
.details-list {
    margin: 0;
}

.interests-list dt,
.details-list dt {
    background-color: var(--myspace-blue-lighter);
    padding: 5px 8px;
    font-size: var(--font-size-small);
    color: var(--myspace-blue);
    font-weight: bold;
    margin-top: 5px;
}

.interests-list dt:first-child,
.details-list dt:first-child {
    margin-top: 0;
}

.interests-list dd,
.details-list dd {
    background-color: var(--myspace-blue-lightest);
    padding: 8px;
    margin: 0;
    font-size: var(--font-size-base);
    word-wrap: break-word;
}

.interests-list dd ul {
    margin: 0;
    padding-left: 20px;
}

.interests-list dd li {
    margin-bottom: 2px;
}

/* ==========================================================================
   Network Status
   ========================================================================== */

/**
.network-status {
    border: 1px solid var(--black);
    padding: 20px;
    text-align: center;
    font-size: var(--font-size-large);
    font-weight: bold;
    background-color: var(--white);
}
**/

.network-status {
    text-align: center;
    background-color: var(--white);
}

.network-status img {
    display: block;
    margin: 0 auto;
}



/* ==========================================================================
   Blog Section
   ========================================================================== */

.blog-entries {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.blog-entry {
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 10px;
}

.blog-entry:last-child {
    border-bottom: none;
}

.blog-entry h3 {
    font-size: var(--font-size-large);
    font-weight: bold;
    margin-bottom: 5px;
}

.blog-entry h3 a {
    color: var(--myspace-blue);
}

.blog-entry .blog-date {
    font-size: var(--font-size-small);
    color: var(--gray);
    margin-bottom: 8px;
}

.blog-entry .blog-excerpt {
    font-size: var(--font-size-base);
}

.view-all {
    margin-top: 10px;
    text-align: right;
}

.view-all a {
    color: var(--myspace-red);
}

/* ==========================================================================
   Blurbs
   ========================================================================== */

.blurb {
    margin-bottom: 15px;
}

.blurb:last-child {
    margin-bottom: 0;
}

.blurb h3 {
    color: var(--myspace-orange-dark);
    font-size: var(--font-size-heading);
    font-weight: bold;
    margin-bottom: 8px;
}

.blurb p {
    margin-bottom: 8px;
}

/* ==========================================================================
   Calendar
   ========================================================================== */

.events-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-light);
    align-items: center;
}

.event:last-child {
    border-bottom: none;
}

.event time {
    background-color: var(--myspace-blue-lighter);
    padding: 5px;
    font-size: var(--font-size-small);
}

.event-name {
    font-weight: bold;
}

.event-name a {
    color: var(--myspace-blue);
}

.event-venue {
    font-size: var(--font-size-small);
    color: var(--gray);
}

/* ==========================================================================
   Friends
   ========================================================================== */

.friend-count {
    margin-bottom: 15px;
}

.friend-count strong {
    color: var(--myspace-red);
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.friend {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.friend img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border: 1px solid var(--gray-light);
    margin-bottom: 5px;
}

.friend-name {
    font-size: var(--font-size-small);
    word-wrap: break-word;
    max-width: 100%;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comment-info {
    font-size: var(--font-size-small);
    color: var(--gray);
    margin-bottom: 15px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment {
    display: grid;
    grid-template-columns: 75px 1fr;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-light);
}

.comment:last-child {
    border-bottom: none;
}

.comment-author img {
    width: 75px;
    height: 75px;
    object-fit: cover;
}

.comment-content {
    word-wrap: break-word;
}

.comment-meta {
    font-size: var(--font-size-small);
    color: var(--gray);
    margin-bottom: 5px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.main-footer {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    font-size: var(--font-size-small);
    color: var(--gray);
    background-color: var(--white);
}

/* ==========================================================================
   Blog Post Page Styles
   ========================================================================== */

.blog-post-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--gutter);
    background-color: var(--white);
}

.blog-post {
    line-height: 1.8;
}

.blog-post h1 {
    font-size: 24px;
    color: var(--myspace-blue);
    margin-bottom: 10px;
    font-weight: bold;
}

.blog-post .meta {
    color: var(--gray);
    font-size: var(--font-size-small);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-light);
}

.blog-post h2 {
    font-size: 18px;
    font-weight: bold;
    color: var(--myspace-blue);
    margin: 25px 0 10px 0;
}

.blog-post h3 {
    font-size: 15px;
    font-weight: bold;
    margin: 20px 0 8px 0;
}

.blog-post p {
    margin-bottom: 15px;
}

.blog-post blockquote {
    border-left: 3px solid var(--myspace-blue-light);
    margin: 15px 0;
    padding: 10px 20px;
    background-color: var(--myspace-blue-lightest);
    font-style: italic;
}

.blog-post code {
    background-color: var(--gray-light);
    padding: 2px 5px;
    font-family: monospace;
    font-size: 90%;
}

.blog-post pre {
    background-color: var(--gray-light);
    padding: 15px;
    overflow-x: auto;
    margin: 15px 0;
}

.blog-post pre code {
    padding: 0;
    background: none;
}

.blog-post img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
}

.blog-post ul,
.blog-post ol {
    margin: 15px 0;
    padding-left: 30px;
}

.blog-post li {
    margin-bottom: 5px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media screen and (max-width: 850px) {
    .profile-container {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    
    .profile-sidebar {
        order: 2;
    }
    
    .profile-main {
        order: 1;
    }
    
    .friends-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .event {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .navbar {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .friends-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-links {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none;
}

.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;
}
