/* ===== JAVASCRIPT.CSS - Custom CSS Classes for Dynamic Content ===== */

/* ===== POST CARD STYLES ===== */
.post-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .post-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.post-labels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.post-label-type {
    font-size: 0.75rem;
    font-weight: bold;
    color: #06b6d4;
    letter-spacing: 0.05em;
}

.post-label-category {
    font-size: 0.75rem;
    color: #4ade80;
}

.post-label-featured {
    font-size: 0.75rem;
    color: #facc15;
}

.post-date {
    font-size: 0.75rem;
    color: #9ca3af;
}

@media (min-width: 640px) {
    .post-date {
        text-align: right;
    }
}

.post-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.post-content {
    color: #d1d5db;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.post-tag {
    padding: 0.25rem 0.5rem;
    background-color: #1f2937;
    color: #06b6d4;
    font-size: 0.75rem;
    border-radius: 9999px;
}

.post-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .post-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.post-author {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* ===== GALLERY ITEM STYLES ===== */
.gallery-item-container {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(0.5rem);
    border-radius: 0.5rem;
    border: 1px solid rgba(6, 182, 212, 0.3);
    transition: all 0.3s ease;
}

.gallery-item-container:hover {
    border-color: rgba(6, 182, 212, 0.6);
    transform: translateY(-4px);
}

.gallery-item-image {
    aspect-ratio: 16 / 9;
    background-color: #1f2937;
    border-radius: 0.5rem 0.5rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item-content {
    padding: 1rem;
}

.gallery-item-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.gallery-item-description {
    color: #d1d5db;
    font-size: 0.875rem;
}

.gallery-item-category {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background-color: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    font-size: 0.75rem;
    border-radius: 9999px;
}

/* ===== TEAM MEMBER STYLES ===== */
.team-member-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .team-member-container {
        flex-direction: row;
        gap: 1.5rem;
        align-items: flex-start;
    }
}

.team-member-avatar {
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .team-member-avatar {
        min-width: 100px;
    }
}

.team-member-info {
    flex: 1;
    text-align: center;
    width: 100%;
}

@media (min-width: 768px) {
    .team-member-info {
        text-align: left;
    }
}

.team-member-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .team-member-header {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
}

.team-member-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: #ffffff;
}

@media (min-width: 768px) {
    .team-member-name {
        font-size: 1.5rem;
    }
}

.team-member-badge {
    padding: 0.25rem 0.75rem;
    background-color: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    font-size: 0.75rem;
    border-radius: 9999px;
}

@media (min-width: 768px) {
    .team-member-badge {
        font-size: 0.875rem;
    }
}

.team-member-role {
    color: #06b6d4;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .team-member-role {
        font-size: 1rem;
    }
}

.team-member-specialization {
    color: #4ade80;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .team-member-specialization {
        font-size: 0.875rem;
    }
}

.team-member-bio {
    color: #d1d5db;
    line-height: 1.5;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .team-member-bio {
        font-size: 1rem;
    }
}

/* ===== EMOJI IMAGE STYLES ===== */
.emoji-img-small {
    width: 1.25rem;
    height: 1.25rem;
    display: inline;
}

.emoji-img-large {
    width: 4rem;
    height: 4rem;
}

/* ===== INTERACTION BUTTONS ===== */
.interaction-buttons-container {
    display: flex;
    gap: 0.5rem;
}

.interaction-btn {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.interaction-btn.like span {
    display: flex;
}

.interaction-btn.heart span {
    display: flex;
}

.interaction-btn.share span {
    display: flex;
}

/* ===== AUTHENTICATION STYLES ===== */

/* Auth Button (Sign In / Authenticated State) */
.auth-button-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-avatar {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.auth-avatar-sm {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    object-fit: cover;
}

.auth-avatar-placeholder {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: #06b6d4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    color: #ffffff;
}

.auth-avatar-placeholder-sm {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: #06b6d4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    color: #ffffff;
}

.auth-username {
    display: none;
}

@media (min-width: 640px) {
    .auth-username {
        display: inline;
    }
}

.auth-arrow {
    transition: transform 0.2s ease;
    width: 1rem;
    height: 1rem;
}

.auth-arrow-mobile {
    transition: transform 0.2s ease;
}

.auth-button-default {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.auth-button-default-mobile {
    display: flex;
    align-items: center;
}

.auth-arrow-spacer {
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
}

.auth-avatar-container-mobile {
    margin-right: 0.75rem;
    display: inline-flex;
    align-items: center;
}

/* Auth Dropdown Menu */
.auth-dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid #374151;
}

.auth-dropdown-user-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-dropdown-user-details {
    flex: 1;
}

.auth-dropdown-user-name {
    font-weight: 600;
    color: #ffffff;
}

.auth-dropdown-user-email {
    font-size: 0.875rem;
    color: #9ca3af;
}

.auth-dropdown-user-spec {
    font-size: 0.75rem;
    color: #06b6d4;
}

.auth-dropdown-actions {
    padding: 0.5rem;
}

.auth-dropdown-button {
    width: 100%;
    text-align: left;
    padding: 0.75rem;
    font-size: 0.875rem;
    color: #d1d5db;
    background: none;
    border: none;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-dropdown-button:hover {
    background-color: #374151;
}

.auth-dropdown-button-logout {
    width: 100%;
    text-align: left;
    padding: 0.75rem;
    font-size: 0.875rem;
    color: #f87171;
    background: none;
    border: none;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-dropdown-button-logout:hover {
    background-color: #374151;
}

/* Loading States */
.loading-spinner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.loading-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-right-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #ffffff;
}

.sign-in-button-default {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== RESPONSIVE UTILITY CLASSES ===== */
@media (max-width: 640px) {
    .hide-on-mobile {
        display: none;
    }
}

@media (min-width: 640px) {
    .hide-on-desktop {
        display: none;
    }
}
