/* assets/css/home.css */

/* HERO */ 
.hero {
    display: flex;
    align-items: center;
    min-height: 400px;
    overflow: hidden;
}

.hero-text {
    flex: 1;
    z-index: 2;
    padding: 40px 60px 40px 0;
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-main);
}

.hero-text p {
    font-size: 1.15rem;
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.hero-image {
    flex: 1;
    position: relative;
    height: 350px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(
        to right,
        var(--bg-main) 0%,
        rgba(255,255,255,0) 100%
    );
    z-index: 1;
}

/* Tlačidlá */
.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-flex;
    padding: 14px 28px;
    align-items: center;  /* Vertikálne vycentrovanie */
    justify-content: center; /* Horizontálne vycentrovanie */
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s, transform 0.1s;
}

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

.btn-primary {
    background: var(--primary);
    color: white;
}

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

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

/* KATEGÓRIE NA DOMOVSKEJ STRÁNKE */
.home-categories {
    margin-bottom: 60px;
}

.home-categories h2 {
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--text-main);
}

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.home-category-card {
    position: relative;
    min-height: 240px;
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: white;
}

.home-category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.home-category-card:hover img {
    transform: scale(1.06);
}

.home-category-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.home-category-title {
    position: absolute;
    left: 20px;
    bottom: 18px;
    font-size: 1.3rem;
    font-weight: bold;
    z-index: 2;
}

/* INFO KARTY */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.info-card {
    background: var(--bg-light);
    padding: 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.info-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.25rem;
    color: var(--text-main);
}

.info-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}