/* Authors Page Styles */
.authors-page-container {
    padding: 106px 24px 24px 408px;
}

@media (max-width: 1023px) {
    .authors-page-container {
        padding: 0 16px 24px 16px;
    }
}

.authors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
    padding-top: 75px;
}

.author-card {
    background: white;
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 0 0 calc(25% - 18px);
    max-width: calc(25% - 18px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.author-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #643BD5;
}

.author-avatar {
    background: linear-gradient(135deg, #643BD5 0%, #9D4EDD 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 80px;
    position: relative;
    margin: 0 auto 0px;
}

.avatar-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    position: absolute;
    bottom: -40px;
    z-index: 1;
}

.author-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 40px 20px 20px 20px;
}

.author-name {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.author-username {
    font-size: 18px;
    color: #643BD5;
    margin: 0;
}

.author-events {
    font-size: 18px;
    color: #666666;
    font-weight: 400;
    margin: 0;
}

.author-info-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.author-badge {
    background: rgba(100, 59, 213, 0.1);
    color: #643BD5;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #643BD5;
}

/* Authors Skeleton Styles */
.authors-grid-skeleton {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
}

.author-card-skeleton {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.avatar-skeleton {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    margin: 0 auto 16px;
}

.name-skeleton {
    width: 80%;
    height: 18px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin: 0 auto 8px;
}

.username-skeleton {
    width: 60%;
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin: 0 auto 8px;
}

.events-skeleton {
    width: 70%;
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin: 0 auto;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Mobile responsive styles */
@media (max-width: 640px) {
    .authors-page-container {
        padding: 106px 24px 24px 24px;
    }
    
    .authors-grid {
        grid-template-columns: repeat(1, 355px);
        display: grid;
        justify-content: center;
        padding-top: 68px;
    }
    
    .author-card {
        display: block;
        flex: none;
        width: 355px;
        max-width: 100%;
    }
    
    .author-avatar {
        height: 180px;
        background-color: #643BD5;
    }
    
    .author-avatar img,
    .avatar-image {
        width: 180px;
        height: 180px;
    }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 1023px) {
    .authors-page-container {
        padding: 106px 24px 24px 24px;
    }
    
    .authors-grid {
        display: flex;
        flex-wrap: wrap;
    }
    
    .author-card {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
}

/* Medium screens */
@media (min-width: 1024px) and (max-width: 1279px) {
    .authors-page-container {
        padding: 106px 24px 24px 304px;
    }
    
    .authors-grid {
        display: flex;
        flex-wrap: wrap;
    }
    
    .author-card {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
}

/* Large screens */
@media (min-width: 1280px) and (max-width: 1535px) {
    .authors-page-container {
        padding: 106px 24px 24px 304px;
    }
}

/* Very large screens */
@media (min-width: 1536px) {
    .authors-page-container {
        padding: 106px 24px 24px 408px;
    }
}

