﻿/* Light a Candle Plugin Styles */
:root {
    --light-a-candle-primary: #ff6b35;
    --light-a-candle-background: #fff;
    --light-a-candle-text: #333;
    --light-a-candle-border: #e0e0e0;
    --light-a-candle-shadow: rgba(0, 0, 0, 0.1)
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    font-family: Inter, sans-serif;
    background: #f9fafb;
    color: var(--light-a-candle-text)
}

.light-a-candle-form-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--light-a-candle-background);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--light-a-candle-shadow)
}

.light-a-candle-form-container h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--light-a-candle-primary);
    text-align: center
}

.light-a-candle-form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column
}

.light-a-candle-form-group label {
    font-weight: 600;
    margin-bottom: .5rem;
    color: var(--light-a-candle-primary)
}

.light-a-candle-form-group .required {
    color: #e53935;
    margin-left: .25rem
}

.light-a-candle-form-group input,
.light-a-candle-form-group textarea,
.light-a-candle-form-group select {
    padding: .75rem 1rem;
    border: 1px solid var(--light-a-candle-border);
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
    background: #fff;
    transition: border-color .2s ease
}

.light-a-candle-form-group input:focus,
.light-a-candle-form-group textarea:focus,
.light-a-candle-form-group select:focus {
    outline: none;
    border-color: var(--light-a-candle-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2)
}

.light-a-candle-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.light-a-candle-field-hint {
    font-size: .85rem;
    color: #777;
    margin-top: .25rem
}

.light-a-candle-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--light-a-candle-primary);
}

.light-a-candle-checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
}

.light-a-candle-checkbox-label a {
    color: var(--light-a-candle-primary);
    text-decoration: underline;
    margin-left: 0.25rem;
}

.light-a-candle-submit-btn {
    background: var(--light-a-candle-primary);
    color: #fff;
    border: none;
    padding: .875rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background .3s ease, transform .2s ease;
    width: 100%;
    margin-top: 1rem
}

.light-a-candle-submit-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px)
}

.light-a-candle-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.light-a-candle-success,
.light-a-candle-error {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.light-a-candle-success.show {
    display: block;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.light-a-candle-error.show {
    display: block;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.light-a-candle-form-container:has(.light-a-candle-success.show) .light-a-candle-form {
    display: none;
}

.light-a-candle-success h3 {
    color: var(--light-a-candle-primary);
    margin-bottom: .5rem
}

.light-a-candle-done-btn {
    background: var(--light-a-candle-primary);
    color: #fff;
    border: none;
    padding: .875rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: background .3s ease;
    text-decoration: none;
    display: inline-block;
    line-height: 1.5;
}

.light-a-candle-done-btn:hover {
    background: #e55a2b
}

.light-a-candle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem
}

.light-a-candle-item {
    background: var(--light-a-candle-background);
    border: 1px solid var(--light-a-candle-border);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 6px var(--light-a-candle-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    min-width: 0;
    overflow: hidden
}

.light-a-candle-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px var(--light-a-candle-shadow)
}

.light-a-candle-item-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: .75rem;
    flex-shrink: 0
}

.light-a-candle-item-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--light-a-candle-primary);
    margin-bottom: .5rem;
    min-height: 1.65rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.light-a-candle-item-message {
    flex-grow: 1;
    font-size: .95rem;
    line-height: 1.5;
    color: var(--light-a-candle-text);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
    overflow-wrap: break-word;
    min-height: 4.5rem
}

.light-a-candle-item-date {
    font-size: .85rem;
    color: #777;
    margin-top: .5rem;
    text-align: right
}

.light-a-candle-pagination {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 2rem;
    flex-wrap: wrap
}

.light-a-candle-pagination a,
.light-a-candle-pagination span {
    padding: .4rem .8rem;
    border: 1px solid var(--light-a-candle-border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--light-a-candle-primary);
    font-weight: 500;
    transition: background .2s ease
}

.light-a-candle-pagination a:hover {
    background: var(--light-a-candle-primary);
    color: #fff
}

.light-a-candle-pagination .current {
    background: var(--light-a-candle-primary);
    color: #fff;
    font-weight: 600
}

.light-a-candle-pagination .disabled {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none
}

.light-a-candle-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    overflow-y: auto;
    padding: 2rem 0;
    transition: backdrop-filter 0.3s ease
}

.light-a-candle-modal.active {
    display: flex;
    align-items: center;
    justify-content: center
}

.light-a-candle-modal-content {
    background: var(--light-a-candle-background);
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn .3s ease;
    margin: auto
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

.light-a-candle-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, transform .2s ease
}

.light-a-candle-modal-close:hover {
    background: #333;
    transform: rotate(90deg)
}

.light-a-candle-modal-image {
    max-width: 100%;
    max-height: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain
}

.light-a-candle-modal-info {
    text-align: center;
    margin-bottom: 1rem
}

.light-a-candle-modal-date {
    font-size: .875rem;
    color: #666;
    margin-bottom: .5rem
}

.light-a-candle-modal-message {
    font-size: 1.1rem;
    color: var(--light-a-candle-text);
    line-height: 1.5;
    margin-bottom: 1rem;
    font-style: italic;
    padding: 0 0.5rem;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%
}

.light-a-candle-modal-message::before {
    content: open-quote;
    font-size: 1.3rem;
    color: var(--light-a-candle-primary);
    margin-right: 4px;
    vertical-align: top
}

.light-a-candle-modal-message::after {
    content: close-quote;
    font-size: 1.3rem;
    color: var(--light-a-candle-primary);
    margin-left: 4px;
    vertical-align: top
}

.light-a-candle-modal-meta {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee
}

.light-a-candle-modal-initials {
    font-weight: 700;
    color: var(--light-a-candle-primary);
    margin-bottom: .25rem
}

.light-a-candle-modal-location {
    font-size: .875rem;
    color: #888
}

.light-a-candle-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.25rem
}

.light-a-candle-modal-btn {
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all .3s ease;
    border: none;
    cursor: pointer;
    min-width: 140px;
    text-align: center
}

.light-a-candle-btn-primary {
    background: #007bff;
    color: #fff
}

.light-a-candle-btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(229, 90, 43, 0.3)
}

.light-a-candle-btn-donate {
    background: #28a745;
    color: #fff
}

.light-a-candle-btn-donate:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(229, 90, 43, 0.3)
}

.light-a-candle-modal-share {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #eee
}

.light-a-candle-share-label {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 0.75rem
}

.light-a-candle-share-buttons {
    display: flex;
    gap: .75rem;
    justify-content: center;
    align-items: center
}

.light-a-candle-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
    color: #fff
}

.light-a-candle-share-facebook {
    background: #1877f2
}

.light-a-candle-share-facebook:hover {
    background: #166fe5;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(24, 119, 242, 0.4)
}

.light-a-candle-share-twitter {
    background: #000
}

.light-a-candle-share-twitter:hover {
    background: #333;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4)
}

.light-a-candle-share-email {
    background: #ff8c42
}

.light-a-candle-share-email:hover {
    background: #ff6b35;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(255, 140, 66, 0.4)
}

.light-a-candle-share-btn svg {
    width: 20px;
    height: 20px
}

@media (max-width:1200px) {
    .light-a-candle-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media (max-width:768px) {
    .light-a-candle-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem
    }

    .light-a-candle-modal-content {
        width: 95%;
        padding: 1.5rem
    }

    .light-a-candle-modal-close {
        top: 5px;
        right: 5px;
        background: transparent;
        color: #333;
        width: 30px;
        height: 30px;
        font-size: 1.5rem
    }

    .light-a-candle-form-container {
        margin: 1rem;
        padding: 1.5rem
    }

    .light-a-candle-modal-actions {
        flex-direction: column
    }

    .light-a-candle-modal-btn {
        width: 100%
    }
}

@media (max-width:480px) {
    .light-a-candle-grid {
        grid-template-columns: 1fr;
        gap: 1rem
    }

    .light-a-candle-form-container {
        padding: 1rem
    }

    .light-a-candle-form-container h2 {
        font-size: 1.5rem
    }
}