/* =========================
   Global
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background-color: #0a0a0a;
    color: #fff;
    line-height: 1.6;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================
   Header
========================= */
header#main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 50px;
    background: linear-gradient(90deg, #000 0%, #111 100%);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

header .logo img {
    width: 150px;
}

.back-button {
    background-color: #bfa34c;
    color: #000;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: #d4b85a;
    transform: translateY(-2px);
}

/* =========================
   Main
========================= */
main {
    flex: 1 0 auto;
    padding-top: 140px; /* miejsce na header */
}

/* =========================
   Hero
========================= */
.hero {
    text-align: center;
    padding: 60px 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #bfa34c;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 650px;
    margin: 0 auto;
}

/* =========================
   Created Sites
========================= */
.created-sites {
    padding: 60px 20px;
    background-color: #111;
}

.created-sites-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    justify-items: center;
}

.site-card {
    display: block;
    background: linear-gradient(145deg, #1a1a1a, #222);
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.4s, box-shadow 0.4s, background 0.4s;
    text-decoration: none;
    color: #fff;
    width: 100%;
    max-width: 340px;
    border: 1px solid #333;
}

.site-card img {
    width: 100%;
    display: block;
    border-bottom: 2px solid #bfa34c;
    transition: transform 0.4s, filter 0.4s;
}

.site-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.site-card h3 {
    color: #bfa34c;
    font-size: 1.6rem;
    margin: 15px 0 10px;
}

.site-card p {
    font-size: 1rem;
    padding: 0 20px 20px;
    color: #ccc;
}

.site-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(191, 163, 76, 0.45);
    background: linear-gradient(145deg, #222 0%, #1a1a1a 100%);
}

/* =========================
   Footer
========================= */
footer {
    background-color: #111;
    color: #bfa34c;
    text-align: center;
    padding: 25px 20px;
    font-size: 0.95rem;
    border-top: 1px solid #333;
}

/* =========================
   Animacje fade-in
========================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

.fade-in.delay-1 {
    animation-delay: 0.4s;
}

.fade-in.delay-2 {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   Responsywność
========================= */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    header#main-header {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}

