/**
 * Sdílené styly pro Post Modal karty
 * Používají Grid i Single Automation bloky
 */

/* ===== SPOLEČNÉ PROMĚNNÉ ===== */
:root {
    --card-border-radius: 20px;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --card-border-color: rgba(0, 0, 0, 0.06);
    --card-padding: 25px;
    --card-padding-large: 4rem;
    --card-gap: 1.5rem;
}

/* ===== ZÁKLADNÍ CARD WRAPPER ===== */
.post-modal-card,
.single-automation-card__link {
    display: block;
    background: #fff;
    border-radius: var(--card-border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--card-border-color);
}

.post-modal-card:hover,
.single-automation-card__link:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

/* Editor variant - bez hover */
.single-automation-card__link--editor:hover {
    transform: none;
    box-shadow: var(--card-shadow);
}

/* ===== HEADER (label + ikony) ===== */
.post-modal-card__header,
.single-automation-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    min-height: 32px;
}

/* Label (štítek) */
.post-modal-card__label,
.single-automation-card__label {
    display: inline-block;
    padding: 0.375rem 0.9rem;
    border-radius: 72px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Single automation má větší label */
.single-automation-card__label {
    padding: 0.5rem 1rem;
}

/* Ikony technologií */
.post-modal-card__icons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.post-modal-card__icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ===== CONTENT ===== */
.post-modal-card__content,
.single-automation-card__content {
    padding: var(--card-padding);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    text-decoration: none;
    height: 100%;
}

.single-automation-card__content {
    padding: var(--card-padding-large);
}

/* ===== NADPIS ===== */
.post-modal-card__title,
.single-automation-card__title {
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #1a1a1a;
    line-height: 1.3;
}

.post-modal-card__title {
    font-size: 1.25rem;
    line-height: 1.4;
	font-family: var(--wp--preset--font-family--inter);
    font-weight: 600;
}

.single-automation-card__title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

/* ===== EXCERPT (popis) ===== */
.post-modal-card__excerpt,
.single-automation-card__excerpt {
    color: #666;
    line-height: 1.6;
}

.post-modal-card__excerpt {
    font-size: 0.9375rem;
    margin-bottom: auto;
    flex-grow: 1;
}

.single-automation-card__excerpt {
    font-size: 1rem;
}

/* ===== FOOTER (firma + šipka) ===== */
.post-modal-card__footer,
.single-automation-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    margin-top: 1rem;
}

.single-automation-card__footer {
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

/* Logo a název klienta */
.post-modal-card__client,
.single-automation-card__client {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.single-automation-card__client {
    gap: 0.75rem;
}

.post-modal-card__client-logo,
.single-automation-card__client-logo {
    border-radius: 8px;
    object-fit: cover;
    background: #f5f5f5;
}

.post-modal-card__client-logo {
    width: 24px;
    height: 24px;
}

.single-automation-card__client-logo {
    width: 32px;
    height: 32px;
}

.post-modal-card__client-name,
.single-automation-card__client-name {
    font-size: 0.685rem;
    font-weight: 500;
    color: #666;
  	text-transform: uppercase;
}

/* ===== ŠIPKA / BUTTON ===== */
.post-modal-card__button,
.single-automation-card__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
    cursor: pointer;
    border: 1px solid var(--wp--preset--color--custom-beige, #f5f5f5);
}

.post-modal-card__button:active {
    transform: scale(0.95);
}

/* Hover efekty */
.post-modal-card:hover .post-modal-card__button,
.single-automation-card__link:hover .single-automation-card__arrow {
    background: var(--wp--preset--color--custom-beige, #0073aa);
}

.post-modal-card:hover .post-modal-card__button svg,
.single-automation-card__link:hover .single-automation-card__arrow svg {
    stroke: var(--wp--preset--color--custom-background, #fff);
}

/* Editor - bez hover */
.single-automation-card__link--editor:hover .single-automation-card__arrow {
    background: #f5f5f5;
}

.single-automation-card__link--editor:hover .single-automation-card__arrow svg {
    stroke: #666;
}

/* SVG šipky */
.post-modal-card__button svg,
.single-automation-card__arrow svg {
    width: 20px;
    height: 20px;
    stroke: var(--wp--preset--color--custom-beige, #666);
    transition: stroke 0.2s ease;
}

/* ===== RESPONZIVITA ===== */
@media (max-width: 768px) {
    .post-modal-card__title {
        font-size: 1.125rem;
    }
    
    .single-automation-card__title {
        font-size: 1.5rem;
    }
    
    .post-modal-card__excerpt,
    .single-automation-card__excerpt {
        font-size: 0.875rem;
    }
    
    .post-modal-card__content {
        padding: 1.25rem;
    }
    
    .single-automation-card__content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .post-modal-card__header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .post-modal-card__icons {
        order: -1;
    }
    
    .single-automation-card__footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}
