/* Tech Tiles Styling - kafelki technologii z hover effect */

/* Grid dla kafelków */
.tech-tiles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: var(--spacing-xl);
}

/* Pojedynczy kafelek */
.tech-tile {
    position: relative;
    background: var(--background-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.tech-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Sekcja ikony - kolorowe tło z gradientem */
.tech-tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    color: white;
    transition: all 0.3s ease;
}

.tech-tile-icon i {
    font-size: 3rem;
    color: white;
    transition: transform 0.3s ease;
}

.tech-tile:hover .tech-tile-icon i {
    transform: scale(1.1);
}

/* Badge pozycjonowany na granicy ikony i treści */
.tech-tile-badge {
    position: absolute;
    top: 127px;
    right: 1.5rem;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.tech-tile-badge.security {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.tech-tile-badge.performance {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
}

.tech-tile-badge.enterprise {
    background: linear-gradient(135deg, #6610f2, #5a0fd9);
    color: white;
}

.tech-tile-badge.stability {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.tech-tile-badge.modern {
    background: linear-gradient(135deg, #fd7e14, #e8590c);
    color: white;
}

.tech-tile-badge.reliability {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.tech-tile-badge.advanced {
    background: linear-gradient(135deg, #e83e8c, #c92170);
    color: white;
}

.tech-tile-badge.flexible {
    background: linear-gradient(135deg, #20c997, #17a085);
    color: white;
}

/* Sekcja treści */
.tech-tile-content {
    padding: 1.5rem;
    background: var(--background-color);
    display: flex;
    flex-direction: column;
}

.tech-tile-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.75rem 0;
}

.tech-tile-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tech-tile:hover .tech-tile-description {
    opacity: 1;
    max-height: 200px;
}

/* Dark mode */
body.dark-mode .tech-tile {
    background: var(--dark-card);
}

body.dark-mode .tech-tile-content {
    background: var(--dark-card);
}

body.dark-mode .tech-tile-title {
    color: var(--dark-text);
}

body.dark-mode .tech-tile-description {
    color: var(--dark-text);
    opacity: 0;
}

body.dark-mode .tech-tile:hover .tech-tile-description {
    opacity: 0.85;
}

body.dark-mode .tech-tile-badge {
    opacity: 0.95;
}

/* Responsywność */
@media (max-width: 1200px) {
    .tech-tiles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .tech-tiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-tile-icon {
        height: 120px;
    }

    .tech-tile-badge {
        top: 107px;
    }
}

@media (max-width: 576px) {
    .tech-tiles-grid {
        grid-template-columns: 1fr;
    }

    .tech-tile-description {
        opacity: 1;
        max-height: none;
    }
}

/* ========================================
   Stare style Tech Chips - zachowane dla kompatybilności
   ======================================== */

/* Grid dla chipów */
.tech-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

/* Pojedynczy chip */
.tech-chip {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: visible;
    transition: all 0.3s ease;
    z-index: 1;
}

.tech-chip:hover {
    z-index: 100;
}

/* Header chipa - zawsze widoczny */
.tech-chip-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-md);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tech-chip:hover .tech-chip-header {
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    box-shadow: var(--shadow-md);
}

.tech-chip-header i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.tech-chip-title {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Badge na chipie */
.tech-chip-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    margin-left: auto;
}

/* Dropdown z opisem - ukryty domyślnie */
.tech-chip-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    min-width: 320px;
    background: var(--background-color);
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
}

.tech-chip:hover .tech-chip-dropdown {
    max-height: 300px;
    padding: 1rem 1.25rem;
    opacity: 1;
}

.tech-chip-dropdown p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* Dark mode dla chipów */
body.dark-mode .tech-chip-dropdown {
    background: var(--dark-card);
}

body.dark-mode .tech-chip-dropdown p {
    color: var(--dark-text);
    opacity: 0.85;
}

/* Badge kolory - na chipach */
.tech-chip-badge.security {
    background: rgba(220, 53, 69, 0.3);
}

.tech-chip-badge.performance {
    background: rgba(40, 167, 69, 0.3);
}

.tech-chip-badge.enterprise {
    background: rgba(102, 16, 242, 0.3);
}

.tech-chip-badge.stability {
    background: rgba(23, 162, 184, 0.3);
}

.tech-chip-badge.modern {
    background: rgba(253, 126, 20, 0.3);
}

.tech-chip-badge.reliability {
    background: rgba(0, 123, 255, 0.3);
}

.tech-chip-badge.advanced {
    background: rgba(232, 62, 140, 0.3);
}

.tech-chip-badge.flexible {
    background: rgba(32, 201, 151, 0.3);
}

/* Responsywność chipów */
@media (max-width: 768px) {
    .tech-chips-grid {
        gap: 0.75rem;
    }

    .tech-chip-header {
        padding: 0.6rem 1rem;
    }

    .tech-chip-title {
        font-size: 0.85rem;
    }

    .tech-chip-dropdown {
        min-width: 280px;
    }
}

@media (max-width: 480px) {
    .tech-chip {
        width: 100%;
    }

    .tech-chip-header {
        justify-content: flex-start;
    }

    .tech-chip-dropdown {
        min-width: 100%;
    }
}
