/* Reset i podstawowe style */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Nagłówek strony */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.main-logo {
    height: 40px;
    width: auto;
}

/* Główny kontener */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Sekcja hero */
.hero-section {
    width: 100%;
    min-height: 350px;
    text-align: center;
    padding: 55px 0;
    background-image: url('images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 91, 234, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-text {
    max-width: 800px;
    margin-bottom: 30px;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Animowane elementy na hero */
.hero-devices {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    width: 100%;
}

.device {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.device i {
    font-size: 32px;
    color: #fff;
}

.device-1 {
    animation-delay: 0s;
    background: linear-gradient(45deg, #005bea, #00c6fb);
}

.device-2 {
    animation-delay: 0.5s;
    background: linear-gradient(45deg, #FF5B7F, #FC9C7C);
}

.device-3 {
    animation-delay: 1s;
    background: linear-gradient(45deg, #43E695, #3BB2B8);
}

.device-4 {
    animation-delay: 1.5s;
    background: linear-gradient(45deg, #9a4fe9, #6a82fb);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Sekcja wyszukiwania */
.search-section {
    margin-top: -50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 3;
}

.search-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 16px;
}

#search-input {
    display: block;
    width: 100%;
    padding: 20px 15px 20px 45px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    box-shadow: 0 5px 25px rgba(0,91,234,0.2);
}

.results-container {
    margin-top: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Sekcja przeglądania */
.browse-section {
    margin-bottom: 50px;
}

.browse-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
}

/* Karty marek */
.brands-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.brand-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.brand-card.active {
    border: 2px solid #005bea;
    box-shadow: 0 5px 20px rgba(0,91,234,0.25);
}

.brand-image {
    height: 150px;
    overflow: hidden;
}

.brand-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.brand-card:hover .brand-image img {
    transform: scale(1.05);
}

.brand-name {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Grupy produktów */
.product-groups {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.group-tile {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.group-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.group-tile.active {
    border: 2px solid #005bea;
    background-color: #f1f8ff;
}

.group-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f8ff;
    border-radius: 50%;
}

.group-icon i {
    font-size: 25px;
    color: #005bea;
}

.group-name {
    font-weight: 500;
}

/* Lista produktów */
.products-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.product-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.product-item:hover {
    background-color: #f8f9fa;
}

.product-item:last-child {
    border-bottom: none;
}

.product-name {
    font-weight: 500;
}

.download-link {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #005bea;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-link i {
    margin-right: 5px;
}

.download-link:hover {
    background-color: #0046b5;
    transform: translateY(-2px);
}

.download-link.disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
}

/* Ładowanie */
.loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

.loading i {
    margin-right: 8px;
    color: #005bea;
}

/* Komunikaty o błędach */
.error-message {
    color: #dc3545;
    text-align: center;
    padding: 15px;
    background-color: #f8d7da;
    border-radius: 8px;
    margin: 15px 0;
}

/* Stopka */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* Responsywność */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .hero-devices {
        flex-wrap: wrap;
    }
    
    .device {
        margin: 10px;
        width: 60px;
        height: 60px;
    }
    
    .device i {
        font-size: 24px;
    }
    
    .brands-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 50px 15px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .search-section {
        margin-top: -30px;
    }
    
    #search-input {
        padding: 15px 15px 15px 45px;
    }
    
    .brands-container {
        grid-template-columns: 1fr;
    }
} 