/**
 * GusLAN Frontend Styles
 */

/* Common */
.guslan-login-notice,
.guslan-no-event,
.guslan-no-events,
.guslan-no-schedule,
.guslan-no-images,
.guslan-error {
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: center;
    color: #666;
}

.guslan-error {
    background: #fef0f0;
    color: #c00;
}

.guslan-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.guslan-btn:hover {
    background: #2980b9;
}

/* Status badges */
.guslan-event-status,
.guslan-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.guslan-status-draft {
    background: #e9e9e9;
    color: #666;
}

.guslan-status-voting {
    background: #fff3cd;
    color: #856404;
}

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

.guslan-status-completed {
    background: #e2e3e5;
    color: #383d41;
}

/* Dashboard */
.guslan-dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

.guslan-dashboard-section {
    margin-top: 40px;
}

.guslan-dashboard-section h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* Upcoming Event */
.guslan-upcoming-event {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.guslan-event-title {
    margin: 0 0 15px 0;
    font-size: 28px;
}

.guslan-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.guslan-event-date,
.guslan-event-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

.guslan-event-description {
    margin: 20px 0;
    line-height: 1.6;
}

.guslan-event-poll,
.guslan-event-schedule {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* Past Events */
.guslan-past-events {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.guslan-event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.guslan-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.guslan-event-cover {
    height: 150px;
    background-size: cover;
    background-position: center;
    background-color: #e9e9e9;
}

.guslan-event-card-content {
    padding: 20px;
}

.guslan-event-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.guslan-event-card p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.guslan-event-images {
    color: #3498db !important;
}

/* Poll */
.guslan-poll {
    overflow-x: auto;
}

.guslan-poll-description {
    margin-bottom: 20px;
    color: #666;
}

.guslan-poll-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.guslan-poll-table th,
.guslan-poll-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #e9e9e9;
}

.guslan-poll-table thead th {
    background: #f8f9fa;
    font-weight: 600;
}

.guslan-poll-user-col {
    text-align: left !important;
    min-width: 150px;
}

.guslan-poll-option-col {
    min-width: 100px;
}

.guslan-current-user {
    background: #f0f7ff;
}

.guslan-vote-cell {
    font-size: 20px;
}

.guslan-vote-yes {
    color: #27ae60;
}

.guslan-vote-no {
    color: #e74c3c;
}

.guslan-vote-none {
    color: #ccc;
}

.guslan-vote-btn {
    width: 40px;
    height: 40px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
}

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

.guslan-vote-btn.guslan-vote-yes {
    background: #d4edda;
    border-color: #27ae60;
}

.guslan-vote-btn.guslan-vote-no {
    background: #f8d7da;
    border-color: #e74c3c;
}

.guslan-poll-totals th,
.guslan-poll-totals td {
    background: #f8f9fa;
    font-weight: 600;
}

.guslan-poll-closed {
    margin-top: 15px;
    padding: 10px;
    background: #e9e9e9;
    border-radius: 4px;
    text-align: center;
    color: #666;
}

/* Schedule */
.guslan-schedule {
    max-width: 800px;
}

.guslan-schedule-day {
    margin-bottom: 30px;
}

.guslan-schedule-date {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    font-size: 18px;
}

.guslan-schedule-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guslan-schedule-item {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: #fff;
    border-left: 4px solid #3498db;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.guslan-schedule-time {
    min-width: 100px;
    font-weight: 600;
    color: #666;
}

.guslan-schedule-content {
    flex: 1;
}

.guslan-schedule-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.guslan-schedule-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.guslan-schedule-signup {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.guslan-signup-count {
    display: inline-block;
    margin-right: 15px;
    font-size: 13px;
    color: #666;
}

.guslan-signup-btn,
.guslan-cancel-signup-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}

.guslan-signup-btn {
    background: #27ae60;
    color: #fff;
}

.guslan-signup-btn:hover {
    background: #219a52;
}

.guslan-cancel-signup-btn {
    background: #e74c3c;
    color: #fff;
}

.guslan-cancel-signup-btn:hover {
    background: #c0392b;
}

.guslan-full {
    display: inline-block;
    padding: 6px 12px;
    background: #e9e9e9;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
}

.guslan-signup-list {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.guslan-signup-name {
    display: inline-block;
    padding: 4px 10px;
    background: #e8f4fd;
    border-radius: 20px;
    font-size: 12px;
}

.guslan-signup-name.guslan-waitlist {
    background: #fff3cd;
}

/* Gallery */
.guslan-gallery {
    max-width: 1200px;
    margin: 0 auto;
}

.guslan-gallery-upload {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.guslan-gallery-upload h4 {
    margin: 0 0 15px 0;
}

#guslan-upload-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

#guslan-upload-form select,
#guslan-upload-form input[type="file"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.guslan-add-category-link {
    font-size: 14px;
}

.guslan-gallery-filters,
.guslan-gallery-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.guslan-filter-btn,
.guslan-tag-btn {
    padding: 8px 16px;
    background: #e9e9e9;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.guslan-filter-btn:hover,
.guslan-tag-btn:hover {
    background: #ddd;
}

.guslan-filter-btn.active,
.guslan-tag-btn.active {
    background: #3498db;
    color: #fff;
}

.guslan-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.guslan-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #e9e9e9;
}

.guslan-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.guslan-gallery-item:hover img {
    transform: scale(1.05);
}

.guslan-image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.guslan-gallery-item:hover .guslan-image-info {
    opacity: 1;
}

.guslan-image-event {
    display: block;
    font-weight: 600;
}

.guslan-image-uploader {
    display: block;
    opacity: 0.8;
}

/* Lightbox */
.guslan-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guslan-lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.guslan-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.guslan-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.guslan-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Archive */
.guslan-events-archive {
    max-width: 1000px;
    margin: 0 auto;
}

.guslan-archive-section {
    margin-bottom: 40px;
}

.guslan-archive-section h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.guslan-events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guslan-event-card-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.guslan-event-card-horizontal .guslan-event-card-content {
    padding: 0;
}

.guslan-event-card-horizontal h3 {
    margin: 0 0 10px 0;
}

.guslan-event-card-horizontal h3 a {
    color: inherit;
    text-decoration: none;
}

.guslan-event-card-horizontal h3 a:hover {
    color: #3498db;
}

.guslan-event-excerpt {
    margin: 10px 0 0 0;
    color: #666;
    font-size: 14px;
}

.guslan-event-card-action {
    flex-shrink: 0;
    margin-left: 20px;
}

/* Event card as link */
a.guslan-event-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.guslan-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.guslan-event-cover-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Single event sections */
.guslan-event-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.guslan-event-section h2 {
    margin-bottom: 20px;
}

/* Back link */
.guslan-back-link {
    margin-bottom: 20px;
}

.guslan-back-link a {
    color: #666;
    text-decoration: none;
}

.guslan-back-link a:hover {
    color: #3498db;
}

/* Responsive */
@media (max-width: 768px) {
    .guslan-upcoming-event {
        padding: 20px;
    }

    .guslan-event-title {
        font-size: 22px;
    }

    .guslan-event-meta {
        flex-direction: column;
        gap: 8px;
    }

    .guslan-schedule-item {
        flex-direction: column;
        gap: 10px;
    }

    .guslan-schedule-time {
        min-width: auto;
    }

    .guslan-poll-table {
        font-size: 14px;
    }

    .guslan-poll-table th,
    .guslan-poll-table td {
        padding: 8px;
    }

    .guslan-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .guslan-event-card-horizontal {
        flex-direction: column;
        align-items: flex-start;
    }

    .guslan-event-card-action {
        margin-left: 0;
        margin-top: 15px;
    }
}
