/* Index page specific styles */

/* Admin Panel */
.admin-only {
    background: transparent;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Events Header */
.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.events-controls {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .events-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

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

/* Promoter Name */
.promoter-name {
    color: #88c0d0;
    margin-bottom: 20px;
    font-size: 1.8em;
    text-align: center;
}

/* Events Grid */
.events-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Event Cards */
.event-card {
    background: #000000;
    border: 1px solid #4c566a;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4c566a;
}

.event-card-header h3 {
    margin: 0 0 5px 0;
    color: #4A9EFF;
}

.event-title-link {
    color: #4A9EFF;
    text-decoration: none;
}

.event-title-link:hover {
    text-decoration: underline;
}

.event-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: bold;
    white-space: nowrap;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.event-card-body {
    display: flex;
    gap: 15px;
}

.event-card-info {
    flex: 1;
}

.event-card-info p {
    margin: 5px 0;
    font-size: 0.95em;
}

.event-description {
    color: #d8dee9;
    margin-top: 10px !important;
    font-size: 0.9em !important;
    line-height: 1.4;
}

.event-card-poster {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    padding: 10px;
}

.event-card-poster a {
    display: block;
    width: 100%;
    height: 100%;
}

.event-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #4c566a;
    margin: 0;
}

.event-card-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 12px;
    border-top: 1px solid #4c566a;
}

.action-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-heading {
    margin: 0;
    font-size: 0.85em;
    color: #88c0d0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.action-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.action-link {
    padding: 6px 12px;
    background: #3b4252;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background 0.2s;
    color: #e5e9f0;
}

.action-link:hover {
    background: #434c5e;
    text-decoration: none;
}

.event-card-button {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.event-toggle-form {
    flex: 1;
}

.event-toggle-form .event-action-btn {
    width: 100%;
}

.event-action-btn {
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
    box-sizing: border-box;
    text-decoration: none;
    text-align: center;
    font-family: inherit;
}

.event-action-btn:hover {
    opacity: 0.9;
}

.disable-btn {
    background: #dc3545;
    color: white;
}

.enable-btn {
    background: #28a745;
    color: white;
}

.buy-btn {
    background: #007bff;
    color: white;
    flex: 3;
}

.share-btn {
    background: #3b4252;
    color: #e5e9f0;
    flex: 1;
}

/* Check-In Modal */
#checkin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#checkin-modal .modal-content {
    background-color: #2e3440;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#checkin-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #4c566a;
}

#checkin-modal .modal-header h3 {
    margin: 0;
    color: #88c0d0;
}

#checkin-modal .modal-close {
    background: none;
    border: none;
    color: #d8dee9;
    font-size: 2em;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
}

#checkin-modal .modal-body {
    padding: 20px;
    padding-top: 15px;
}

#checkin-modal .modal-body p {
    color: #d8dee9;
    margin-bottom: 15px;
    margin-top: 0;
}

#checkin-modal .modal-body strong {
    color: #88c0d0;
}

#checkin-modal .button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#checkin-modal .modal-btn {
    flex: 1;
    padding: 12px 20px;
    background-color: #5e81ac;
    color: #eceff4;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

#checkin-modal .modal-btn:hover {
    background-color: #81a1c1;
}

#checkin-modal .link-info {
    background-color: #3b4252;
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #88c0d0;
    margin-bottom: 20px;
}

#checkin-modal .link-note {
    color: #ebcb8b;
    font-size: 0.9em;
    margin: 10px 0 5px 0;
}

#checkin-modal .open-link {
    display: inline-block;
    padding: 12px 20px;
    background-color: #a3be8c;
    color: #2e3440;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

#checkin-modal .open-link:hover {
    background-color: #8fbf7f;
    text-decoration: none;
}
