/**
 * Wall of Love - Tribute Wall Styles
 * Version 1.2.0
 * 
 * ==============================================
 * COLOR CUSTOMIZATION - EDIT THESE VARIABLES
 * ==============================================
 */

 :root {
    /* Primary Colors - Adjust to match your brand */
    --wol-primary: #4a90a4;          /* Main accent color (soft teal/blue) */
    --wol-primary-hover: #3d7a8c;    /* Button hover state */
    --wol-primary-light: #e8f4f7;    /* Light background accent */
    
    /* Text Colors */
    --wol-text-dark: #2c3e50;        /* Headings and names */
    --wol-text-medium: #5a6c7d;      /* Body text */
    --wol-text-light: #8899a6;       /* Secondary text (company) */
    
    /* Background Colors */
    --wol-bg-light: #f8fafb;         /* Page/section background */
    --wol-card-bg: #ffffff;          /* Card background */
    
    /* Other */
    --wol-border: #e1e8ed;           /* Borders */
    --wol-shadow: rgba(0, 0, 0, 0.08); /* Card shadows */
    --wol-quote-color: #d4e5eb;      /* Quote mark color */
}

/**
 * ==============================================
 * FORM STYLES
 * ==============================================
 */

.wol-form-container {
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 40px;
    background: var(--wol-card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--wol-shadow);
}

.wol-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.wol-form-header h3 {
    color: var(--wol-text-dark);
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.wol-form-header p {
    color: var(--wol-text-medium);
    font-size: 15px;
    line-height: 1.6;
}

.wol-form-group {
    margin-bottom: 20px;
}

.wol-form-group label {
    display: block;
    color: var(--wol-text-dark);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.wol-form-group .required {
    color: #e74c3c;
}

.wol-form-group input[type="text"],
.wol-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid var(--wol-border);
    border-radius: 8px;
    background: var(--wol-bg-light);
    color: var(--wol-text-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.wol-form-group input[type="text"]:focus,
.wol-form-group textarea:focus {
    outline: none;
    border-color: var(--wol-primary);
    box-shadow: 0 0 0 3px var(--wol-primary-light);
    background: var(--wol-card-bg);
}

.wol-form-group textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

/* Honeypot field - hidden from humans */
.wol-hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.wol-submit-btn {
    display: inline-block;
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: var(--wol-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.wol-submit-btn:hover {
    background: var(--wol-primary-hover);
}

.wol-submit-btn:active {
    transform: scale(0.98);
}

.wol-submit-btn:disabled {
    background: var(--wol-text-light);
    cursor: not-allowed;
}

/* Form Messages */
.wol-form-message {
    margin-top: 20px;
    padding: 0;
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
}

.wol-form-message.success {
    padding: 16px;
    background: #d4edda;
    color: #155724;
    border-radius: 8px;
}

.wol-form-message.error {
    padding: 16px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 8px;
}

/* Success checkmark */
.wol-checkmark {
    display: inline-block;
    color: #28a745;
    font-size: 18px;
    font-weight: bold;
    margin-right: 5px;
}

/* Refresh link */
.wol-refresh-link {
    color: #155724;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

.wol-refresh-link:hover {
    color: #0d3d14;
}

/**
 * ==============================================
 * WALL DISPLAY STYLES
 * ==============================================
 */

.wol-wall-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.wol-wall-header {
    text-align: center;
    margin-bottom: 50px;
}

.wol-wall-header h2 {
    color: var(--wol-text-dark);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
}

.wol-memorial-icon {
    font-size: 32px;
    color: var(--wol-primary);
    opacity: 0.8;
}

/* Masonry Grid */
.wol-grid {
    margin: 0 -10px;
}

.wol-grid::after {
    content: '';
    display: block;
    clear: both;
}

/* Grid Sizer for Masonry */
.wol-grid-sizer,
.wol-card {
    width: calc(33.333% - 20px);
    margin: 0 10px 20px;
}

@media (max-width: 992px) {
    .wol-grid-sizer,
    .wol-card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .wol-grid-sizer,
    .wol-card {
        width: calc(100% - 20px);
    }
    
    .wol-form-container {
        padding: 25px;
        margin: 0 15px 40px;
    }
    
    .wol-wall-header h2 {
        font-size: 24px;
    }
}

/* Tribute Cards */
.wol-card {
    float: left;
    background: var(--wol-card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 15px var(--wol-shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wol-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.wol-card-content {
    padding: 28px;
    position: relative;
}

.wol-quote-icon {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 60px;
    font-family: Georgia, serif;
    color: var(--wol-quote-color);
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

.wol-message {
    position: relative;
    z-index: 1;
    color: var(--wol-text-medium);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    padding-top: 25px;
}

.wol-message p {
    margin: 0 0 10px;
}

.wol-message p:last-child {
    margin-bottom: 0;
}

.wol-author {
    display: flex;
    flex-direction: column;
    padding-top: 15px;
    border-top: 1px solid var(--wol-border);
}

.wol-author-name {
    color: var(--wol-text-dark);
    font-size: 15px;
    font-weight: 600;
}

.wol-company {
    color: var(--wol-text-light);
    font-size: 13px;
    margin-top: 3px;
}

/* No Tributes Message */
.wol-no-tributes {
    text-align: center;
    padding: 60px 20px;
    color: var(--wol-text-medium);
    font-size: 16px;
}

/**
 * ==============================================
 * LOAD MORE BUTTON
 * ==============================================
 */

.wol-load-more-container {
    text-align: center;
    margin-top: 40px;
    clear: both;
}

.wol-load-more-btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 15px;
    font-weight: 600;
    color: var(--wol-primary);
    background: transparent;
    border: 2px solid var(--wol-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wol-load-more-btn:hover {
    background: var(--wol-primary);
    color: #ffffff;
}

.wol-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wol-load-more-btn.loading {
    pointer-events: none;
}

/**
 * ==============================================
 * ANIMATIONS
 * ==============================================
 */

@keyframes wolFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wol-card {
    animation: wolFadeInUp 0.4s ease forwards;
}

.wol-card:nth-child(1) { animation-delay: 0.05s; }
.wol-card:nth-child(2) { animation-delay: 0.1s; }
.wol-card:nth-child(3) { animation-delay: 0.15s; }
.wol-card:nth-child(4) { animation-delay: 0.2s; }
.wol-card:nth-child(5) { animation-delay: 0.25s; }
.wol-card:nth-child(6) { animation-delay: 0.3s; }