/* Chirantana Membership - front-end styles */

.chirantana-locked {
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    margin: 1.5rem 0;
}

.chirantana-locked-actions {
    margin-top: 1rem;
}

.chirantana-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    margin-right: 0.5rem;
    background: #a02c2c;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.chirantana-btn-secondary {
    background: transparent;
    color: #a02c2c;
    border: 1px solid #a02c2c;
}

.chirantana-form p {
    margin-bottom: 1rem;
}

.chirantana-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.chirantana-form input[type="text"],
.chirantana-form input[type="email"],
.chirantana-form input[type="password"] {
    width: 100%;
    max-width: 380px;
    padding: 0.55rem 0.7rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.chirantana-form-message {
    padding: 0.9rem 1.1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.chirantana-form-message.chirantana-success {
    background: #e6f4ea;
    color: #1e4620;
    border: 1px solid #b7dfc0;
}

.chirantana-form-message.chirantana-error {
    background: #fdecea;
    color: #611a15;
    border: 1px solid #f5c2c0;
}

.chirantana-field-error {
    display: block;
    position: relative;
    margin-top: 8px;
    padding: 0.75rem 1rem;
    background: #c0504d;
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
}

.chirantana-field-error::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 20px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #c0504d;
}

.chirantana-dashboard .chirantana-programme-block {
    padding: 1.25rem;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.chirantana-schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
}

.chirantana-schedule-table th,
.chirantana-schedule-table td {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.chirantana-event-details p:last-child {
    margin-bottom: 0;
}

.chirantana-no-events {
    color: #777;
    font-style: italic;
}

.chirantana-locked-pending {
    background: #fff8e6;
    border-color: #f0d78c;
}

/* Dashboard layout */
.chirantana-dashboard-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chirantana-dashboard-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

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

.chirantana-section-title {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

/* Profile card */
.chirantana-profile-card {
    padding: 1.25rem;
    border: 1px solid #eee;
    border-radius: 8px;
}

.chirantana-profile-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.chirantana-profile-info img {
    border-radius: 50%;
}

.chirantana-logout-link {
    margin-left: auto;
    align-self: flex-start;
    text-decoration: none;
    white-space: nowrap;
}

.chirantana-change-password summary,
.chirantana-edit-profile summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.chirantana-edit-profile {
    margin-bottom: 0.75rem;
}

/* Programme links list */
.chirantana-programme-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.chirantana-programme-links li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Flash news ticker */
.chirantana-ticker {
    overflow: hidden;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 0.6rem 0;
}

.chirantana-ticker-track {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: chirantana-scroll 20s linear infinite;
}

.chirantana-ticker-item {
    padding: 0 1rem;
}

@keyframes chirantana-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Upcoming events list */
.chirantana-events-scroll {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 320px;
    overflow-y: auto;
}

.chirantana-events-scroll li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.92rem;
}

.chirantana-event-programme {
    color: #777;
    font-size: 0.85rem;
}

/* Banner carousel */
.chirantana-carousel {
    overflow: hidden;
    border-radius: 8px;
}

.chirantana-carousel-track {
    display: flex;
    transition: transform 0.6s ease;
}

.chirantana-carousel-slide {
    flex: 0 0 100%;
}

.chirantana-carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Resources list on programme pages */
.chirantana-resources-list {
    list-style: none;
    padding: 0;
}

.chirantana-resources-list li {
    padding: 0.4rem 0;
}

.chirantana-resources-list a::before {
    content: "📄 ";
}
