/* Profile Section */
.about-profile-container {
    display: flex;
    gap: 20px;
    min-width: 0;
    align-items: center;
    margin-bottom: 18px;
    padding: 18px;
    background: var(--bg-dark);
    border: 1px solid var(--accent-bronze);
    box-shadow: var(--box-shadow-sm);
}

.about-profile-image {
    width: 180px;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid var(--accent-gold);
    border-radius: 50% 0 50% 0;
    margin: 0;
    box-shadow: 5px 5px 0 var(--border-dark);
}

.welcome-title {
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--accent-bronze);
    text-align: left;
}

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

.about-profile-center {
    margin: 12px 0 0;
}

.about-profile-center p {
    margin: 5px 0;
}

.about-profile-center p:nth-child(2) {
    font-style: italic;
}

.about-profile-center p:last-child {
    margin: 10px 0;
}

.about-profile-center span {
    font-style: italic;
}

.about-pride-badge {
    vertical-align: middle;
    margin-left: 0;
    max-height: 24px;
    width: auto;
}

/* Stamps Scroll */
.about-stamps-container {
    margin: 15px 0;
    overflow: hidden;
    max-width: 100%;
}

.about-stamps-scroll {
    display: flex;
    width: max-content;
    gap: 10px;
    animation: scroll-stamps 30s linear infinite;
}

.about-stamps-scroll img {
    height: 20px;
    flex-shrink: 0;
}

.about-stamps-container:hover .about-stamps-scroll {
    animation-play-state: paused;
}

.about-stamps-scroll img[src*="clumppenguin"] {
    width: 150px;
    height: 20px;
}

@keyframes scroll-stamps {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Bio Text */
.about-bio {
    max-width: 90ch;
    margin: 12px auto;
    padding-left: 14px;
    border-left: 2px solid var(--accent-bronze);
    line-height: 1.55;
}

/* Interests & Likes Grid */
.about-interests-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 15px auto;
    max-width: 700px;
}

.about-interests-panel {
    background: var(--bg-med);
    border: 1px solid var(--border-light);
    box-shadow: var(--box-shadow-sm);
    overflow: hidden;
}

.about-panel-header {
    background: linear-gradient(var(--bg-light), var(--bg-med));
    border-bottom: 1px solid var(--border-light);
    padding: 10px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.about-panel-header h3 {
    font-family: "Lobby16Filled", monospace;
    font-size: 1.3em;
    color: var(--accent-gold);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px var(--border-dark);
}

.about-panel-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(63%) sepia(72%) saturate(403%) hue-rotate(8deg) brightness(94%) contrast(87%);
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
    justify-content: center;
    background: var(--bg-med);
}

.about-tag {
    display: inline-block;
    padding: 5px 14px;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-dark));
    border: 1px solid var(--accent-gold);
    color: var(--accent-cream);
    font-size: 0.9em;
    letter-spacing: 0.5px;
    transition: all var(--transition-speed) ease;
}

.about-tag:hover {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-bronze));
    color: var(--bg-dark);
    border-color: var(--accent-cream);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* Contact & Tamagotchi Grid */
.about-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 15px 0;
}

.about-tamagotchi-section {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    box-shadow: var(--box-shadow-sm);
}

.about-tamagotchi-image {
    max-width: 115px;
    border: 2px solid var(--accent-gold);
    border-radius: 5px;
}

.about-tamagotchi-text p:first-child {
    margin: 0;
}

.about-tamagotchi-text p:last-child {
    font-style: italic;
    font-size: 0.85em;
    margin: 5px 0 0 0;
}

.about-email-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    box-shadow: var(--box-shadow-sm);
    text-align: center;
}

.about-email-text p:first-child {
    margin: 0;
}

.about-email-text p:nth-child(2) {
    color: var(--accent-gold);
    font-weight: bold;
    margin: 5px 0;
}

.about-email-text p:last-child {
    font-size: 0.9em;
    margin: 5px 0 0 0;
}

/* Friends Section */
.about-friends-title {
    position: relative;
    text-align: center;
    font-size: 1.5em;
    color: var(--accent-gold);
    margin: 18px 0 14px;
}

.about-friends-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.about-friend-card {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.38);
    text-align: center;
    transition: transform var(--transition-speed) ease, filter var(--transition-speed) ease;
}

.about-friend-card:hover {
    transform: translateY(-3px);
    filter: brightness(1.06);
}

.about-friend-card img {
    width: min(150px, 100%);
    height: 120px;
    object-fit: contain;
}

.about-friend-card img[src*="Swablu"] {
    max-width: 125px;
}

.about-friend-card img[src*="Timer"] {
    margin: 0;
}

.about-friend-card img[src*="Watersage"] {
    margin: 0;
}

.about-friend-card h3 {
    padding: 5px;
    font-size: 18px;
    margin: 0;
}

.about-friend-card h3 a {
    color: inherit;
    text-shadow: none;
}

.about-friend-card p {
    margin: 5px 0;
}

/* Individual Friend Card Colors */
.friend-timer {
    background-color: #a3eeb2;
    box-shadow: 7px 7px 0px 0px #18474f;
}

.friend-timer h3 {
    background-color: #1b4e5e;
    color: #fff;
}

.friend-timer p {
    color: #07220d;
}

.friend-watersage {
    background-color: #9873b7;
    box-shadow: 7px 7px 0px 0px #432557;
}

.friend-watersage h3 {
    background-color: #3c1551;
    color: #c8b0ec;
}

.friend-watersage p {
    color: #3b135c;
}

.friend-maci {
    background-color: #ffeaea;
    box-shadow: 7px 7px 0px 0px #bf4e63;
}

.friend-maci h3 {
    background-color: #f9d5a7;
    color: #a42525;
}

.friend-maci p {
    color: #a42525;
}

.friend-swablu {
    background-color: #eaffed;
    box-shadow: 7px 7px 0px 0px #2c7b6a;
}

.friend-swablu h3 {
    background-color: #bdebe1;
    color: #2a7153;
}

.friend-swablu p {
    color: #2a7153;
}

.friend-honeyfluff {
    background-color: #9cbeff;
    box-shadow: 7px 7px 0px 0px #8024a2;
}

.friend-honeyfluff h3 {
    background-color: #fff;
    color: #521782;
}

.friend-honeyfluff p {
    color: #511275;
}

.friend-smwhat {
    background-color: #ac3360;
    box-shadow: 7px 7px 0px 0px #20102d;
}

.friend-smwhat h3 {
    background-color: #ffbd67;
    color: #93123c;
}

.friend-smwhat p {
    color: #f7e8d4;
}

.friend-cyberbyte {
    background-color: #b271ff;
    box-shadow: 7px 7px 0px 0px #2f174b;
}

.friend-cyberbyte h3 {
    background-color: #ffafd4;
    color: #3b2479;
}

.friend-cyberbyte p {
    color: #fef8ff;
}

.friend-celly {
    background-color: #ffe03b;
    box-shadow: 7px 7px 0px 0px #b731a2;
}

.friend-celly h3 {
    background-color: #ac2f7b;
    color: #fff;
}

.friend-celly p {
    color: #6d2d8a;
}

.friend-pankekie {
    background-color: #fff9e6;
    box-shadow: 7px 7px 0px 0px #8b6bb7;
}

.friend-pankekie h3 {
    background-color: #ffe99d;
    color: #5a3d7a;
}

.friend-pankekie p {
    color: #6b4d8a;
}

/* Responsive About content */
.about-profile-container,
.about-profile-info,
.about-interests-grid,
.about-contact-grid,
.about-friends-row,
.about-friend-card {
    min-width: 0;
}

.about-profile-center,
.about-bio,
.about-tamagotchi-text,
.about-email-text,
.about-friend-card p {
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .about-profile-container {
        align-items: center;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
        text-align: center;
    }

    .about-profile-image {
        width: min(190px, 70vw);
        margin: 0;
    }

    .about-profile-center {
        margin: 10px 0;
    }

    .about-pride-badge {
        display: inline-block;
    }

    .about-interests-grid,
    .about-contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .about-tamagotchi-section {
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }

    .about-email-section {
        padding: 8px;
    }

    .about-friends-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin: 12px 0;
    }

    .about-friend-card {
        width: 100%;
        max-width: none;
        padding: 8px;
    }

    .about-friend-card img {
        max-width: min(150px, 100%);
    }
}

@media (max-width: 480px) {
    .about-profile-container {
        gap: 8px;
    }

    .about-profile-image {
        width: min(160px, 68vw);
        border-width: 10px;
    }

    .about-profile-center p:last-child {
        line-height: 1.45;
    }

    .about-friends-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .about-friend-card {
        display: grid;
        grid-template-columns: 90px minmax(0, 1fr);
        column-gap: 10px;
        align-items: center;
        text-align: left;
    }

    .about-friend-card img,
    .about-friend-card img[src*="Swablu"],
    .about-friend-card img[src*="Timer"],
    .about-friend-card img[src*="Watersage"] {
        grid-row: span 2;
        width: 80px;
        max-width: 80px;
        margin: 0;
    }

    .about-friend-card h3,
    .about-friend-card p {
        min-width: 0;
    }

    .about-friend-card h3 {
        padding: 4px;
        font-size: 16px;
    }

    .about-friend-card p {
        margin: 4px 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-stamps-scroll,
    .about-friend-card {
        animation: none;
        transition: none;
    }
}
