/**
 * WP Event Notifier - Frontend Styles
 */

/* Event Calendar */
.wpen-event-calendar {
    margin: 20px 0;
}

.wpen-calendar-header {
    margin-bottom: 30px;
}

.wpen-calendar-header h2 {
    margin-bottom: 20px;
}

/* CTA Boxes */
.wpen-cta-box {
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.wpen-cta-register,
.wpen-cta-enable {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.wpen-cta-active {
    background: #d4edda;
    border: 2px solid #28a745;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.wpen-cta-description {
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.wpen-cta-register .wpen-cta-description,
.wpen-cta-enable .wpen-cta-description {
    color: rgba(255, 255, 255, 0.95);
}

.wpen-cta-login {
    margin-top: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.wpen-cta-login a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.wpen-cta-login a:hover {
    text-decoration: none;
}

.wpen-notifications-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wpen-status-icon {
    font-size: 32px;
    color: #28a745;
}

.wpen-status-text strong {
    display: block;
    font-size: 16px;
    color: #155724;
    margin-bottom: 5px;
}

.wpen-status-text p {
    margin: 0;
    color: #155724;
    font-size: 14px;
}

.wpen-button-large {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
}

.wpen-events-list {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.wpen-event-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.wpen-event-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.wpen-event-date {
    flex-shrink: 0;
    width: 70px;
    text-align: center;
    padding: 10px;
    background: #4CAF50;
    color: white;
    border-radius: 5px;
}

.wpen-event-day {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

.wpen-event-month {
    font-size: 14px;
    text-transform: uppercase;
    margin-top: 5px;
}

.wpen-event-year {
    font-size: 12px;
    margin-top: 2px;
    opacity: 0.9;
}

.wpen-event-info {
    flex-grow: 1;
}

.wpen-event-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
}

.wpen-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.wpen-event-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.wpen-event-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.wpen-event-description {
    margin: 10px 0;
    color: #555;
    line-height: 1.6;
}

.wpen-event-actions {
    margin-top: 15px;
}

.wpen-no-events {
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 5px;
    color: #666;
}

/* Event Preferences */
.wpen-preferences {
    margin: 20px 0;
}

.wpen-preferences-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.wpen-preferences-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
    color: #333;
}

.wpen-checkbox-label {
    display: block;
    margin: 10px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wpen-checkbox-label:hover {
    background: #f0f0f0;
}

.wpen-checkbox-label input[type="checkbox"] {
    margin-right: 10px;
}

.wpen-form-actions {
    margin-top: 20px;
}

.wpen-info-box {
    margin-top: 30px;
    padding: 20px;
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    border-radius: 5px;
}

.wpen-info-box p {
    margin: 0 0 10px 0;
}

.wpen-info-box ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.wpen-info-box li {
    margin: 8px 0;
    line-height: 1.5;
}

/* Events Table */
.wpen-events-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.wpen-events-table thead {
    background: #f5f5f5;
}

.wpen-events-table th,
.wpen-events-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.wpen-events-table th {
    font-weight: 600;
    color: #333;
}

.wpen-events-table tbody tr:hover {
    background: #f9f9f9;
}

/* Buttons */
.wpen-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.wpen-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.wpen-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wpen-button-primary {
    background: #4CAF50;
    color: white;
}

.wpen-button-primary:hover {
    background: #45a049;
    color: white;
}

.wpen-button-success {
    background: #28a745;
    color: white;
}

.wpen-button-success:hover {
    background: #218838;
    color: white;
}

.wpen-button-small {
    padding: 6px 12px;
    font-size: 13px;
}

.wpen-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .wpen-cta-active {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .wpen-notifications-status {
        flex-direction: column;
        text-align: center;
    }

    .wpen-event-card {
        flex-direction: column;
        gap: 10px;
    }

    .wpen-event-date {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 10px;
        align-items: baseline;
    }

    .wpen-event-day,
    .wpen-event-month,
    .wpen-event-year {
        display: inline;
    }

    .wpen-event-meta {
        flex-direction: column;
        gap: 5px;
    }

    .wpen-events-table {
        font-size: 14px;
    }

    .wpen-events-table th,
    .wpen-events-table td {
        padding: 8px;
    }
}

/* Loading state */
.wpen-loading {
    opacity: 0.6;
    pointer-events: none;
}

.wpen-loading::after {
    content: "...";
    animation: wpen-dots 1.5s infinite;
}

@keyframes wpen-dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

/* Message notifications */
.wpen-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.5;
    animation: wpen-slide-down 0.3s ease;
}

.wpen-message-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.wpen-message-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

@keyframes wpen-slide-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
