/**
 * Frontend CSS pro StanekTech Napsali o nás
 */

/* Základní wrapper */
.stanektech-non-wrapper {
    margin: 30px 0;
    box-sizing: border-box;
}

.stanektech-non-wrapper *,
.stanektech-non-wrapper *::before,
.stanektech-non-wrapper *::after {
    box-sizing: border-box;
}

/* Grid pro články */
.stanektech-non-grid {
    display: grid;
    gap: 30px;
}

/* Nastavení počtu sloupců */
.stanektech-non-columns-1 .stanektech-non-grid {
    grid-template-columns: 1fr;
}

.stanektech-non-columns-2 .stanektech-non-grid {
    grid-template-columns: repeat(2, 1fr);
}

.stanektech-non-columns-3 .stanektech-non-grid {
    grid-template-columns: repeat(3, 1fr);
}

.stanektech-non-columns-4 .stanektech-non-grid {
    grid-template-columns: repeat(4, 1fr);
}

.stanektech-non-columns-5 .stanektech-non-grid {
    grid-template-columns: repeat(5, 1fr);
}

.stanektech-non-columns-6 .stanektech-non-grid {
    grid-template-columns: repeat(6, 1fr);
}

/* Jednotlivý článek */
.stanektech-non-item {
    height: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Nadpis článku */
.stanektech-non-title {
    margin: 0 0 15px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* Přidáme margin-top pro perex, pokud má nadpis */
.stanektech-non-title + .stanektech-non-perex {
    margin-top: 10px;
}

/* Styly pro varianty */
.stanektech-non-style-minimal .stanektech-non-title {
    font-size: 18px;
}

.stanektech-non-style-featured .stanektech-non-title {
    font-size: 22px;
    color: #222;
}

/* Karta článku */
.stanektech-non-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.stanektech-non-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Logo */
.stanektech-non-logo {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

.stanektech-non-logo img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.stanektech-non-card:hover .stanektech-non-logo img {
    transform: scale(1.05);
}

/* Obsah článku */
.stanektech-non-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.stanektech-non-perex {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.stanektech-non-perex p:first-child {
    margin-top: 0;
}

.stanektech-non-perex p:last-child {
    margin-bottom: 0;
}

/* Odkaz "Číst článek" */
.stanektech-non-link {
    text-align: right;
    margin-top: 10px;
}

.stanektech-non-link span {
    display: inline-block;
    padding: 8px 15px;
    background-color: #2271b1;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.stanektech-non-card:hover .stanektech-non-link span {
    background-color: #135e96;
}

/* Styly pro různé varianty zobrazení */

/* Styl: Minimal */
.stanektech-non-style-minimal .stanektech-non-card {
    box-shadow: none;
    border: 1px solid #eee;
}

.stanektech-non-style-minimal .stanektech-non-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.stanektech-non-style-minimal .stanektech-non-logo {
    height: 120px;
    padding: 15px;
}

.stanektech-non-style-minimal .stanektech-non-logo img {
    max-height: 90px;
}

.stanektech-non-style-minimal .stanektech-non-content {
    padding: 15px;
}

.stanektech-non-style-minimal .stanektech-non-perex {
    font-size: 15px;
}

/* Styl: Featured */
.stanektech-non-style-featured .stanektech-non-card {
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-radius: 15px;
}

.stanektech-non-style-featured .stanektech-non-logo {
    height: 180px;
    background: linear-gradient(to right, #f0f4f8, #e6f0f9);
}

.stanektech-non-style-featured .stanektech-non-logo img {
    max-height: 140px;
}

.stanektech-non-style-featured .stanektech-non-content {
    padding: 25px;
}

.stanektech-non-style-featured .stanektech-non-perex {
    font-size: 17px;
}

.stanektech-non-style-featured .stanektech-non-link span {
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 15px;
    background-color: #1e73be;
}

.stanektech-non-style-featured .stanektech-non-card:hover .stanektech-non-link span {
    background-color: #0c5994;
}

/* Responzivita */
@media screen and (max-width: 1200px) {
    .stanektech-non-columns-5 .stanektech-non-grid,
    .stanektech-non-columns-6 .stanektech-non-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .stanektech-non-columns-4 .stanektech-non-grid,
    .stanektech-non-columns-5 .stanektech-non-grid,
    .stanektech-non-columns-6 .stanektech-non-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .stanektech-non-columns-3 .stanektech-non-grid,
    .stanektech-non-columns-4 .stanektech-non-grid,
    .stanektech-non-columns-5 .stanektech-non-grid,
    .stanektech-non-columns-6 .stanektech-non-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .stanektech-non-grid {
        grid-template-columns: 1fr !important;
    }
    
    .stanektech-non-logo {
        height: 140px;
    }
    
    .stanektech-non-logo img {
        max-height: 100px;
    }
}