.events-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    flex-wrap: wrap;
    overflow-y: scroll;
    scrollbar-width: none;
    padding: 106px 24px 24px 408px;

    gap: 24px;
    row-gap: 48px;
}

@media (max-width: 800px) {
    .events-container {
        grid-template-columns: 1fr;
        top: 96px;
        left: 0;
        right: 0;
        bottom: 24px;

        padding: 0 24px;
    }
}

@media (min-width: 801px) and (max-width: 1000px) {
    .events-container {
        grid-template-columns: 1fr;
        left: 288px;
    }
}

@media (min-width: 1001px) and (max-width: 1300px) {
    .events-container {
        grid-template-columns: 1fr 1fr;
        left: 338px;
    }
}

@media (min-width: 1301px) and (max-width: 1800px) {
    .events-container {
        grid-template-columns: 1fr 1fr 1fr;
        left: 388px;
    }
}

@media (min-width: 1801px) {
    .events-container {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

/* Mobile responsive styles for authors page */
@media (max-width: 1023px) {
    .events-container {
        padding: 106px 16px 100px 16px;
        grid-template-columns: 1fr;
        gap: 16px;
        row-gap: 32px;
    }
    
    .event-card-info-top-main-left {
        width: 100%;
        white-space: normal;
        word-break: break-word;
    }
    
    .event-card-info-top-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

.event-card {
    width: 100%;
    transition: 0.15s;
    transition: opacity 0.3s ease;
}

.event-card:hover {
    cursor: pointer;

    .event-card-image {
        box-shadow: 0 0 10px #643BD5;
        transform: scale(1.05);
    }
}

.event-card p {
    margin: 0;
    display: inline-block;
    transition: 0.15s;
}

.event-card-image {
    width: 100%;
    height: auto;
    border-radius: 25px;
    object-fit: cover;
    transition: 0.15s;
}

.event-card-info-top {
    margin: 16px 0 0 0;
}

.event-card-info-top-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-card-info-top-main-left, .event-card-info-top-main-right {
    font-size: 1.5rem;
}

.event-card-info-top-main-left {
    width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-card-info-top-main-right {
    color: #643BD5;
    white-space: nowrap;
}

.event-card-info-account {
    display: flex;
    margin-top: 16px;
    height: fit-content;
    align-items: center;
    gap: 8px;
}

.event-card-info-account-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.event-card-info-account-nickname {
    font-size: 1rem;
    margin-left: 8px;
}

.event-card-info-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;

    margin: 16px 0 0 0;
}

.no-results-message {
    text-align: center;
    font-size: 1.5rem;
    color: #666;
    margin-top: 2rem;
    width: 100%;
}

/* Author Card Styles */
.author-card {
    background: white;
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1 1 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 Grid Responsive */
@media (max-width: 640px) {
    .author-card {
        flex: 1 1 100%;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .author-card {
        flex: 1 1 calc(50% - 12px);
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .author-card {
        flex: 1 1 calc(33.333% - 16px);
    }
}

@media (min-width: 1281px) {
    .author-card {
        flex: 1 1 calc(25% - 18px);
    }
}

/* Author Page Styles */
.account-cover-wrap {
    max-width: 1056px;
    width: 100%;
    margin: 0 auto;
}

.account-cover-img {
    height: 256px;
}

/* Desktop Author Section - Adaptive styles */
@media (max-width: 1600px) {
    .desktop-author-section {
        grid-template-columns: 45% 55% !important;
    }
    
    .account-cover-img {
        height: 220px !important;
    }
    
    .desktop-author-avatar {
        width: 140px !important;
        height: 140px !important;
    }
    
    .desktop-author-name {
        font-size: 28px !important;
    }
}

@media (max-width: 1400px) {
    .desktop-author-section {
        grid-template-columns: 50% 50% !important;
    }
    
    .account-cover-img {
        height: 200px !important;
    }
    
    .account-cover-wrap {
        max-width: 820px;
    }
    
    .desktop-author-info {
        padding-left: 1rem !important;
        gap: 1rem !important;
    }
    
    .desktop-author-avatar {
        width: 120px !important;
        height: 120px !important;
    }
    
    .desktop-author-name {
        font-size: 24px !important;
    }
}

@media (max-width: 1280px) {
    .desktop-author-section {
        grid-template-columns: 55% 45% !important;
    }
    
    .account-cover-img {
        height: 180px !important;
    }
    
    .desktop-author-avatar {
        width: 110px !important;
        height: 110px !important;
    }
    
    .desktop-author-name {
        font-size: 22px !important;
    }
}

@media (max-width: 1200px) {
    .desktop-author-section {
        grid-template-columns: 60% 40% !important;
    }
    
    .account-cover-img {
        height: 160px !important;
    }
    
    .desktop-author-info {
        padding-left: 0.5rem !important;
        gap: 0.75rem !important;
    }
    
    .desktop-author-avatar {
        width: 100px !important;
        height: 100px !important;
    }
    
    .desktop-author-name {
        font-size: 20px !important;
    }
}

.tab-container {
    min-height: 400px;
}

.tab-content {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile Author Page Styles */
#author-content {
    padding-top: 68px;
}

@media (min-width: 1024px) {
    #author-content {
        padding-top: 88px;
    }
}

.mobile-cover-container {
    width: 100%;
    margin-top: 20px;
    padding: 0 16px;
}

.mobile-cover-image {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
}

.mobile-profile-section {
    padding: 20px 16px;
    margin-top: 16px;
}

.mobile-profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 16px;
    padding: 16px;
}

.mobile-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.mobile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-user-info {
    flex: 1;
    min-width: 0;
}

.mobile-user-name {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 4px 0;
    word-wrap: break-word;
}

.mobile-user-details {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

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

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

.mobile-motto-section {
    margin-top: 12px;
    padding: 0 16px;
}

.mobile-motto-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

.mobile-action-buttons {
    padding: 0 16px;
}

.tab-container-mobile {
    min-height: 300px;
}

.mobile-tab-content {
    animation: fadeIn 0.3s ease-in;
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .mobile-cover-container {
        padding: 0 12px;
    }
    
    .mobile-cover-image {
        height: 180px;
    }
    
    .mobile-profile-section {
        padding: 16px 12px;
        margin-top: 12px;
    }
    
    .mobile-profile-card {
        gap: 10px;
        padding: 12px;
    }
    
    .mobile-avatar {
        width: 70px;
        height: 70px;
    }
    
    .mobile-user-name {
        font-size: 18px;
    }
    
    .mobile-username {
        font-size: 14px;
    }
}

/* Tablet Styles */
@media (min-width: 481px) and (max-width: 768px) {
    .mobile-cover-container {
        padding: 0 24px;
    }
    
    .mobile-cover-image {
        height: 240px;
    }
    
    .mobile-profile-section {
        padding: 24px;
        margin-top: 20px;
    }
    
    .mobile-profile-card {
        padding: 20px;
        gap: 16px;
    }
    
    .mobile-avatar {
        width: 90px;
        height: 90px;
    }
    
    .mobile-user-name {
        font-size: 22px;
    }
}

/* Event Page Top Fixed Styles (from globals.css) */
.event-page-top-fixed {
    position: fixed;
    z-index: 25;
    top: 68px;
    left: 310px;
    right: 0;
    background-color: #ffffff;
}

.event-title {
    font-size: 1.5rem;
    margin: 0;
    margin-top: 5px;
}

.event-date-container {
    padding-top: 4px;
    display: flex;
    gap: 32px;
}

.event-date {
    font-size: 1rem;
    margin: 0;
}

.event-date:hover {
    color: #643BD5;
    cursor: pointer;
}

.event-date.active {
    color: #643BD5;
}

.active-date-container {
    position: relative;
    display: flex;
    align-items: center;
}

.date-dropdown {
    position: relative;
}

.date-dropdown-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    font-size: 0.9rem;
    color: black;
    transition: all 0.2s ease;
}

.date-dropdown-button:hover {
    background: transparent !important;
    border: none !important;
}

.dropdown-icon {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.date-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 4px;
}

.month-group {
    border-bottom: 1px solid #f1f3f4;
    padding: 8px 0;
}

.month-group:last-child {
    border-bottom: none;
}

.month-header {
    padding: 8px 16px 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.dates-row {
    display: flex;
    gap: 8px;
    padding: 0 16px 12px;
    flex-wrap: wrap;
}

.date-dropdown-content .event-date {
    padding: 8px 12px;
    font-size: 0.875rem;
    min-width: 36px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.date-dropdown-content .event-date:hover {
    background-color: #f8f9fa;
}

.date-dropdown-content .event-date.active {
    background-color: #643BD5;
    color: white;
}

/* Mobile Event Page Top Fixed Styles */
@media (max-width: 1023px) {
    .event-page-top-fixed {
        left: 16px;
        right: 16px;
        position: relative;
        top: 0;
        z-index: 10;
        background-color: transparent;
        padding: 0;
        margin-bottom: 0;
        box-shadow: none;
    }
    
    .event-title {
        font-size: 1.25rem;
        text-align: left;
        margin-bottom: 0;
        line-height: 1.3;
        word-wrap: break-word;
    }
    
    .event-date-container {
        flex-direction: row;
        gap: 32px;
        align-items: center;
        padding-top: 4px;
    }
    
    .active-date-container {
        flex-direction: row;
        gap: 16px;
        align-items: center;
    }
    
    .event-date.active {
        font-size: 1rem;
    }
    
    .date-dropdown-content {
        position: absolute;
        top: 100%;
        left: 0;
        width: 90%;
        max-width: 320px;
        max-height: 80vh;
        z-index: 1001;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        margin-top: 4px;
    }
    
    .month-group {
        padding: 8px 0;
    }
    
    .month-header {
        padding: 12px 16px 8px;
        font-size: 0.9rem;
    }
    
    .dates-row {
        padding: 0 16px 12px;
        gap: 8px;
    }
    
    .date-dropdown-content .event-date {
        padding: 8px 12px;
        font-size: 0.875rem;
        min-width: 36px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .event-page-top-fixed {
        padding: 0;
        margin-bottom: 0;
        background-color: transparent;
        box-shadow: none;
    }
    
    .event-title {
        font-size: 1.125rem;
        margin-bottom: 0;
        text-align: left;
    }
    
    .event-date-container {
        flex-direction: row;
        gap: 24px;
        align-items: center;
        padding-top: 4px;
    }
    
    .active-date-container {
        flex-direction: row;
        gap: 12px;
        align-items: center;
    }
    
    .event-date.active {
        font-size: 0.9rem;
    }
}