* {
    box-sizing: border-box;
}

/* Friends "View All" page */
.friends-page-header {
    margin-bottom: 12px;
}

.friends-page-header h2 {
    color: #003399;
    font-size: 18px;
    margin: 0 0 4px 0;
}

.friends-page-meta {
    font-size: 11px;
    color: #666;
}

/* Base Styles */
body {
    font-family: Verdana, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: white;
    color: #333;
    font-size: 12px;
}

/* Header and Navigation */
.top-header {
    background: #003399;
    color: white;
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-search {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.logo {
    height: 35px;
}

.search-bar {
    font-size: 12px;
    font-weight: normal;
}

.search-bar input {
    margin: 0 5px;
}

.top-links a {
    color: white;
    text-decoration: none;
    font-size: 12px;
}

.main-nav {
    background: #6699CC;
    padding: 4px 20px;
    border-top: 1px solid #003399;
    border-bottom: 1px solid #003399;
    white-space: nowrap;
    overflow: hidden;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 0 4px;
    font-size: 12px;
}

/* Main Layout */
.profile-container {
    max-width: 1000px;
    margin: 10px auto;
    padding: 0 10px;
}

.profile-content {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.profile-left {
    width: 310px;
    flex-shrink: 0;
}

.profile-right {
    flex: 1;
    min-width: 0;
}

/* Left Column Sections */
.profile-info {
    border: 1px solid #ccc;
    background: #fff;
    padding: 8px;
    margin-bottom: 5px;
}

.contact-box,
.url-box,
.interests-box {
    border: 1px solid #ccc;
    background: #fff;
    margin-bottom: 5px;
}

/* Profile Info Section */
.name-and-mood h1 {
    margin: 0 0 8px 0;
    color: #003399;
    font-size: 18px;
}

.profile-main {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.profile-pic {
    width: 155px;
    flex-shrink: 0;
    border: 1px solid #ccc;
    padding: 3px;
    display: block;
}

.profile-info-right {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.mood {
    color: #666;
    font-size: 12px;
}

.profile-details {
    font-size: 12px;
    line-height: 1.4;
}

.last-login {
    font-size: 11px;
    margin-top: auto;
}

.view-links {
    font-size: 11px;
    margin-top: 5px;
}

/* Contact Box */
.contact-box h3 {
    background: #6699CC;
    color: white;
    margin: 0;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: bold;
}

.contact-buttons {
    padding: 8px;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
}

.contact-row:last-child {
    margin-bottom: 0;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #003399;
    text-decoration: none;
    font-size: 11px;
}

.contact-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.contact-btn:hover svg {
    transform: scale(1.1);
}

/* URL Box */
.url-box h3 {
    background: #6699CC;
    color: white;
    margin: 0;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: bold;
}

.url-content {
    padding: 8px;
    font-size: 11px;
    word-break: break-all;
}

/* Interests Box */
.interests-box h3 {
    background: #6699CC;
    color: white;
    margin: 0;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: bold;
}

.interests-box table {
    width: 100%;
    border-collapse: collapse;
}

.interests-box td {
    padding: 5px;
    border: 1px solid #D4DEEF;
    vertical-align: top;
}

.interests-box td:first-child {
    background: #EFF3FF;
    width: 60px;
    font-weight: bold;
    color: #003399;
    white-space: nowrap;
}

.interests-box td:last-child {
    background: #F5F8FF;
}

/* Right Column Sections */
.music-section,
.blog-entries,
.blurbs,
.friend-space,
.comments-section {
    border: 1px solid #ccc;
    background: #fff;
    margin-bottom: 8px;
    padding: 10px;
    width: 100%;
}

.music-section {
    padding: 0;
}

/* Right column section headers (orange) */
.blurbs h3,
.friend-space h3,
.comments-section h3 {
    background: #FFB46B;
    color: #000;
    padding: 3px 8px;
    margin: -10px -10px 10px -10px;
    font-size: 12px;
    font-weight: normal;
    border-bottom: 1px solid #ccc;
}

/* Comments Section */
.comments-meta {
    font-size: 11px;
    color: #666;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.comment {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

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

.comment-pic {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    text-decoration: none;
}

.comment-pic img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #ccc;
    padding: 3px;
    display: block;
}

.comment-pic span {
    display: block;
    font-size: 11px;
    margin-top: 3px;
    color: #003399;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-date {
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
}

.comment-body p {
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.comment-links {
    font-size: 11px;
    color: #666;
}

/* Comment Form */
.comment-form {
    background: #EFF3FF;
    border: 1px solid #D4DEEF;
    padding: 8px;
    margin-bottom: 10px;
}

.comment-form label {
    display: block;
    font-weight: bold;
    color: #003399;
    font-size: 11px;
    margin-bottom: 3px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    padding: 3px;
    border: 1px solid #999;
    margin-bottom: 8px;
}

.comment-form textarea {
    resize: vertical;
}

.comment-form button {
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    padding: 2px 10px;
    background: #6699CC;
    color: white;
    border: 1px solid #003399;
    cursor: pointer;
}

.comment-form button:hover {
    background: #5588BB;
}

.no-comments {
    color: #666;
    font-style: italic;
    margin: 0;
}

h4 {
    color: #FF6600;
    font-size: 12px;
    margin: 12px 0 5px 0;
}

h4:first-child {
    margin-top: 0;
}

/* Spotify Player */
.player-container {
    display: block;
}

.player-footer {
    text-align: right;
    font-size: 11px;
    border-top: 1px solid #ccc;
    padding: 3px 6px;
}

.player-footer a {
    color: #666;
    text-decoration: none;
}

/* Friends Grid */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 5px;
}

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

.friend-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border: 1px solid #ccc;
    padding: 5px;
    display: block;
}

.friend-item span {
    display: block;
    font-size: 11px;
    margin-top: 4px;
    color: #003399;
}

.friend-item a {
    text-decoration: none;
}

.friend-item a:hover span {
    text-decoration: underline;
}

/* Global Links */
a {
    color: #003399;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-content {
        flex-direction: column;
    }

    .profile-left {
        width: 100%;
    }

    .friends-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-nav {
        overflow: visible;
        white-space: normal;
        line-height: 1.8;
    }
}
