/* PfotenBase Website Builder - Block Styles */

.pb-block {
    margin-bottom: 2rem;
}

/* Hero Block */
.pb-hero {
    position: relative;
    padding: 4rem 2rem;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}
.pb-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.pb-hero-content {
    position: relative;
    z-index: 1;
}
.pb-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.pb-hero p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Text Block */
.pb-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 0;
}
.pb-text.text-center { text-align: center; }
.pb-text.text-left { text-align: left; }
.pb-text.text-right { text-align: right; }

/* Image Block */
.pb-image {
    text-align: center;
    padding: 1rem 0;
}
.pb-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.pb-image-caption {
    color: #666;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Button Block */
.pb-button {
    text-align: center;
    padding: 1rem 0;
}
.pb-button a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}
.pb-button a.primary {
    background: var(--pb-primary, #667eea);
    color: #fff;
}
.pb-button a.secondary {
    background: transparent;
    border: 2px solid var(--pb-primary, #667eea);
    color: var(--pb-primary, #667eea);
}
.pb-button a.small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Divider Block */
.pb-divider {
    padding: 1rem 0;
}
.pb-divider.line {
    border-bottom: 1px solid #ddd;
}
.pb-divider.dots {
    text-align: center;
}
.pb-divider.dots::after {
    content: '• • •';
    color: #ddd;
    letter-spacing: 0.5rem;
}
.pb-divider.spacer {
    height: 2rem;
}

/* Spacer Block */
.pb-spacer {
    height: var(--spacer-height, 2rem);
}

/* Animal Grid Block */
.pb-animal-grid {
    padding: 1rem 0;
}
.pb-animal-grid-inner {
    display: grid;
    gap: 1rem;
}
.pb-animal-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pb-animal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.pb-animal-photo {
    aspect-ratio: 1;
    overflow: hidden;
}
.pb-animal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.pb-animal-card:hover .pb-animal-photo img {
    transform: scale(1.05);
}
.pb-animal-name {
    font-weight: bold;
    padding: 0.75rem 0.5rem 0;
    font-size: 1.1rem;
}
.pb-animal-breed {
    color: #666;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem 0.5rem;
}
.pb-animal-link {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--pb-primary, #667eea);
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.2s;
}
.pb-animal-link:hover {
    background: var(--pb-secondary, #764ba2);
    color: #fff;
}
.pb-animal-grid-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}
.pb-animal-grid-pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--pb-primary, #667eea);
    background: #fff;
    color: var(--pb-primary, #667eea);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.pb-animal-grid-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.pb-animal-grid-pagination button:not(:disabled):hover {
    background: var(--pb-primary, #667eea);
    color: #fff;
}
.pb-animal-grid-loading,
.pb-animal-grid-error {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}
.pb-animal-grid-error {
    color: #e53e3e;
}

/* Contact Form Block */
.pb-contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}
.pb-contact-form .form-group {
    margin-bottom: 1rem;
}
.pb-contact-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
}
.pb-contact-form input,
.pb-contact-form textarea,
.pb-contact-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}
.pb-contact-form button {
    width: 100%;
    padding: 0.75rem;
    background: var(--pb-primary, #667eea);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}
.pb-contact-form button:hover {
    background: var(--pb-secondary, #764ba2);
}

/* Navigation Block */
.pb-navigation {
    padding: 0.5rem 0;
}
.pb-navigation.horizontal ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}
.pb-navigation.vertical ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pb-navigation a {
    color: var(--pb-primary, #667eea);
    text-decoration: none;
    transition: color 0.2s;
}
.pb-navigation a:hover {
    color: var(--pb-secondary, #764ba2);
}

/* Responsive */
@media (max-width: 768px) {
    .pb-hero h1 { font-size: 1.75rem; }
    .pb-hero p { font-size: 1rem; }
    .pb-animal-grid-inner { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
    .pb-animal-grid-inner { grid-template-columns: 1fr !important; }
}
