/*--------------------------------------------------------------
#                         STATUS-STYLES.CSS
#---------------------------------------------------------------
#               Handles the styling for status.html
--------------------------------------------------------------*/

@import url('/src/css/components/base.css');

/*--------------------------------------------------------------
# STATUS PAGE
--------------------------------------------------------------*/
#profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
    text-align: center;
}

.time-ago {
    font-size: 1.2rem;
    color: #888;
    display: block;
    margin-top: 15px;
}

#profile img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    /* keep it to 50% */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#profile h2 {
    margin: 10px 0;
    font-size: 24px;
    color: #fff;
}

/* STATUS CONTAINER */
#status_container {
    margin: 10px auto 0 auto;
    padding: 20px;
    max-width: 600px;
}

.status {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0px;
    /* was 8px */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    /* Prevent overflow */
    max-width: 100%;
    /* Ensure the container doesn't exceed the parent width */
}

/* Profile picture styling */
.status .pfp {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* keep it to 50% */
    margin-right: 15px;
    flex-shrink: 0;
}

/* Status image styling */
.status .status-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 0;
    /* was always 0px */
    margin-top: 15px;
    margin-bottom: 10px;
}

.status .status-video {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    margin-top: 15px;
    margin-bottom: 10px;
    display: block;
    background: #000;
    outline: none;
}

/* Emoji container styling */
.emoji-container {
    margin-bottom: 20px;
    padding: 5px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0px;
    /* was 10px */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    text-shadow: none;
}

.status .content {
    flex-grow: 1;
    /* Allow the content to take up remaining space */
    max-width: calc(100% - 65px);
    /* Ensure content stays within the container */
}

.status .status-emoji {
    text-shadow: none;
}

.status h3 {
    margin: 0;
    font-size: 18px;
    color: var(--main-color);
}

.status p {
    margin: 10px 0 5px;
    font-size: 16px;
    color: #fff;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.status small {
    font-size: 12px;
    color: #aaa;
}

/* RESPONSIVENESS */
@media (max-width: 1300px) {
    #status_container {
        margin-top: 10px;
        padding: 15px;
        width: 90%;
    }

    /* Status image styling */
    .status .status-image {
        width: 95%;
        height: auto;
        border-radius: 0px;
        /* was always 0px */
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .status .status-video {
        width: 95%;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .status {
        padding: 10px;
    }

    .status h3 {
        font-size: 16px;
    }

    .status p {
        font-size: 14px;
    }

    .status small {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .status img {
        width: 40px;
        height: 40px;
    }

    .status h3 {
        font-size: 16px;
    }

    .status p {
        font-size: 14px;
    }

    .status small {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .status img {
        width: 35px;
        height: 35px;
    }

    .status h3 {
        font-size: 14px;
    }

    .status p {
        font-size: 12px;
    }

    .status small {
        font-size: 9px;
    }
}

/*--------------------------------------------------------------
# HOMEPAGE STATUS SECTION
--------------------------------------------------------------*/
#status-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.status-item {
    padding: 1.5rem;
    background: rgba(var(--bg-secondary-rgb), 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.status-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--main-color-rgb), 0.2);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.status-emoji {
    font-size: 2.5rem;
    line-height: 1;
}

.status-title {
    color: var(--main-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.status-message {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
}

.status-media {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}

.status-embed {
    margin: 1rem 0;
    width: 100%;
}

.status-embed iframe,
.status-embed embed,
.status-embed object {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 6px;
}

.status-datetime {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
    text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
    .status-item {
        padding: 1rem;
    }

    .status-emoji {
        font-size: 2rem;
    }

    .status-title {
        font-size: 1rem;
    }
}