/* Base placeholder styles */
.ppf-placeholder {
    background: #f5f7fa;
    border: 1px solid #e4e7eb;
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.ppf-placeholder--short {
    padding: 1rem;
}

.ppf-placeholder--form {
    background: #fff;
    border: 2px dashed #e4e7eb;
}

.ppf-placeholder--gallery {
    background: #fff;
    border: 2px dashed #e4e7eb;
    text-align: center;
    padding: 2rem;
}

.ppf-placeholder--download {
    background: #fff;
    border: 2px dashed #e4e7eb;
    padding: 1.5rem;
}

/* Caption styles */
.ppf-caption {
    color: #6b7280;
    font-size: 0.875rem;
    font-style: italic;
    margin-top: 0.5rem;
    display: block;
}

.ppf-caption--inline {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.75rem;
    vertical-align: middle;
}

/* Privacy-aware placeholder styles */
.ppf-masked-reg,
.ppf-masked-broker,
.ppf-masked-date {
    background: #e5e7eb;
    border-radius: 3px;
    padding: 0.125rem 0.375rem;
    font-family: monospace;
    font-size: 0.9375rem;
    color: #374151;
}

.ppf-masked-reg {
    letter-spacing: 0.05em;
}

.ppf-masked-broker {
    font-weight: 500;
}

.ppf-masked-date {
    font-style: italic;
}

/* Section and card layout */
.ppf-section {
    margin-bottom: 3rem;
}

.ppf-section:last-child {
    margin-bottom: 0;
}

.ppf-card {
    background: #fff;
    border: 1px solid #e4e7eb;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.ppf-card:last-child {
    margin-bottom: 0;
}

.ppf-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Form elements in placeholders */
.ppf-placeholder .form-group {
    margin-bottom: 1rem;
}

.ppf-placeholder label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.ppf-placeholder input,
.ppf-placeholder select,
.ppf-placeholder textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e4e7eb;
    border-radius: 4px;
    background: #f9fafb;
}

.ppf-placeholder textarea {
    min-height: 100px;
}

.ppf-placeholder button {
    background: #1e40af;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
}

.ppf-placeholder button:hover {
    background: #1e3a8a;
}

/* Helper text styles */
.ppf-muted {
    color: #6b7280;
    font-size: 0.9375rem;
    margin: 0.5rem 0;
}

/* List styles in placeholders */
.ppf-placeholder ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.ppf-placeholder li {
    margin-bottom: 0.5rem;
}

.ppf-placeholder li:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .ppf-placeholder {
        padding: 1rem;
    }

    .ppf-card {
        padding: 1rem;
    }

    .ppf-card-grid {
        grid-template-columns: 1fr;
    }
}