/* Events Section Styles - Dark Theme */

/* ===== Tab Navigation ===== */
.events-tabs {
    display: flex;
    border-bottom: 1px solid #dddddd;
    margin-bottom: 20px;
    position: relative;
}

.events-tab {
    padding: 12px 24px;
    color: #555;
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease;
}

.events-tab:hover {
    color: #333;
}

.events-tab.active {
    color: #333;
}

.events-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #4CAF50;
}

.events-view-options {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.events-view-btn {
    background: transparent;
    border: none;
    color: #555;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.events-view-btn:hover {
    color: #333;
}

/* ===== Filters and Search ===== */
.events-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.events-filter {
    flex: 1;
    min-width: 150px;
}

.events-select {
    width: 100%;
    background: transparent;
    border: 1px solid #dddddd;
    color: #333;
    padding: 10px 12px;
    border-radius: 4px;
    height: 42px;
    box-sizing: border-box;
    line-height: 20px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    padding-right: 28px;
}

/* Date input styling */
.events-date {
    width: 100%;
    background-color: transparent;
    border: 1px solid #dddddd;
    color: #333;
    padding: 10px 12px;
    border-radius: 4px;
    height: 42px;
    box-sizing: border-box;
    line-height: 20px;
}

/* Firefox-specific styles */
@-moz-document url-prefix() {
    .events-date {
        background-image: none !important;
    }
}

/* Chrome-specific styles */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .events-date {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: calc(100% - 10px) center;
    }

    input[type="date"]::-webkit-calendar-picker-indicator {
        opacity: 0;
        width: 30px;
        height: 30px;
        cursor: pointer;
    }
}

.events-search {
    flex: 2;
    min-width: 200px;
    position: relative;
}

.events-search-input {
    width: 100%;
    background: transparent;
    border: 1px solid #dddddd;
    color: #333;
    padding: 10px 12px;
    border-radius: 4px;
    padding-right: 40px;
    height: 42px;
    box-sizing: border-box;
}

.events-search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    background: #4CAF50;
    border: none;
    border-radius: 0 4px 4px 0;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.events-search-btn:hover {
    background: #3d8b40;
}

/* ===== Featured Event ===== */
.featured-event {
    background: #f9f9f9;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
}

.featured-event-tag {
    display: inline-block;
    background: #4CAF50;
    color: #333;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 12px;
}

.featured-event-title {
    font-size: 28px;
    margin-bottom: 8px;
    color: #333;
}

.featured-event-date {
    color: #555;
    margin-bottom: 24px;
}

.featured-event-countdown {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.countdown-item {
    background: #f0f0f0;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 16px 24px;
    text-align: center;
    min-width: 80px;
}

.countdown-number {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.countdown-label {
    color: #555;
    font-size: 14px;
}

/* ===== Events Grid ===== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ===== Event Card ===== */
.event-card {
    background: transparent;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
    position: relative;
}

.event-card:hover {
    background: #dddddd;
}

/* Event Header */
.event-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

/* Event Tags */
.event-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.event-tag.nft-sale {
    background: #00ced1;
    color: #333;
}

.event-tag.token-sale {
    background: #4CAF50;
    color: #333;
}

.event-tag.land-sale {
    background: #9C27B0;
    color: #333;
}

.event-tag.mystery-box-sale {
    background: #FF9800;
    color: #333;
}

/* Event Status */
.event-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: auto;
    width: auto;
}

.passed {
    background-color: transparent;
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
    text-transform: uppercase;
}

.upcoming {
    background-color: transparent;
    color: #4CAF50;
    border: 1px solid #4CAF50;
    text-transform: uppercase;
}

.tba {
    background-color: transparent;
    color: #9C27B0;
    border: 1px solid #9C27B0;
    text-transform: uppercase;
}

/* Event Date and Time */
.event-date-time {
    display: flex;
    justify-content: space-between;
    color: #555;
    font-size: 14px;
    margin-bottom: 12px;
}

.event-date,
.event-time {
    color: #555;
    font-size: 14px;
    display: inline-block;
}

.event-time {
    float: right;
}

/* Event Content */
.event-title {
    font-size: 22px;
    margin: 16px 0 8px 0;
    color: #333;
    font-weight: 700;
}

.event-description {
    color: #555;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.event-location {
    color: #555;
    font-size: 14px;
    margin-bottom: 16px;
}

/* Fundraising Information */
.fundraising-info {
    border-top: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
    padding: 14px 0;
    margin: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fundraising-label {
    font-size: 15px;
    color: #555;
    font-weight: 500;
}

.fundraising-amount {
    font-size: 22px;
    font-weight: 700;
    color: #4CAF50;
}

/* Progress Bar (if needed) */
.fundraising-progress {
    height: 6px;
    background-color: #dddddd;
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 4px;
    width: 75%;
    /* Set this dynamically based on progress */
}

.fundraising-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #555;
}

/* Event Footer */
.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #dddddd;
}

.event-attendees {
    color: #555;
    font-size: 14px;
}

.event-bookmark {
    background: transparent;
    border: none;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-bookmark:hover {
    color: #333;
}

/* ===== Pills and Badges ===== */



.pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    margin: 2px;
}

/* Specific Raising Type Colors */
.pill-ido {
    background-color: #1e90ff;
    /* Dodger Blue */
}

.pill-ino {
    background-color: #ff8c00;
    /* Dark Orange */
}

.pill-private {
    background-color: #8a2be2;
    /* Blue Violet */
}

.pill-private-2 {
    background-color: #20b2aa;
    /* Light Sea Green */
}

.pill-strategic {
    background-color: #1b4dc2;
    /* Crimson */
}

.pill-past {
    background-color: #dc143c;
    /* Blue Violet */
}

.pill-upcoming {
    background-color: #45ed91;
    /* Light Sea Green */
}

.pill-tba {
    background-color: #9d07ab;
    /* Crimson */
}

/* ===== Buttons ===== */
.action-button {
    background: #4CAF50;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.action-button:hover {
    background: #3d8b40;
}

.event-link-btn {
    background-color: #4CAF50;
    color: #333;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s ease;
    width: 100%;
    text-align: center;
    display: block;
    box-sizing: border-box;
}

.event-link-btn:hover {
    background-color: #3d8b40;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .events-filters {
        flex-direction: column;
    }

    .events-filter,
    .events-search {
        width: 100%;
    }

    .featured-event-countdown {
        flex-wrap: wrap;
    }

    .countdown-item {
        flex: 1;
        min-width: 70px;
    }

    .event-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-status {
        margin-left: 0;
        margin-top: 8px;
    }

    .fundraising-stats {
        flex-direction: column;
        gap: 4px;
    }

    .event-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}


/* ===== Pagination Controls - Light Theme ===== */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    width: 100%;
    gap: 8px;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    color: #333333;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pagination-btn:hover:not([disabled]) {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.pagination-btn.active {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.pagination-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9f9f9;
}

.prev-btn,
.next-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    font-weight: 500;
}

.pagination-ellipsis {
    color: #666666;
    margin: 0 4px;
}

/* Make events grid take full width */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

/* Events found counter with pagination info */
.events-found {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    color: #333333;
}

.events-found-text {
    color: #333333;
    font-size: 16px;
    font-weight: 500;
}

.page-info {
    color: #666666;
    font-size: 14px;
}

/* Responsive adjustments for pagination */
@media (max-width: 768px) {
    .pagination-controls {
        flex-direction: column;
        gap: 15px;
    }

    .pagination-pages {
        order: 1;
        flex-wrap: wrap;
        justify-content: center;
    }

    .prev-btn {
        order: 2;
        width: 100%;
    }

    .next-btn {
        order: 3;
        width: 100%;
    }

    .events-found {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}