:root {
    /* Színek */
    --white: #ffffff;
    --blue: #227191;
    --green: #33a121;
    --orange: #ff7200;
    --gray: #989a9a;
    --lightGray: #e6e6e6;
    --lightestGray: #f2f2f2;
    --midGray: #a5a5a5;
    --darkGray: #616161;
    --darkestGray: #414141;
    --black: #2d2d2d;

    /* Háttér */
    --mainBackground: #f8f8f8;

    /* Tipográfia */
    --fontFamily: 'Poppins', sans-serif;
    --fontSizeBase: 16px;
    --fontSizeSmall: 0.875rem;
    --lineHeightBase: 1.5;
}

/* Reset és box-sizing */
*, *::after, *::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Alap body */
body {
    font-family: var(--fontFamily);
    font-size: var(--fontSizeBase);
    line-height: var(--lineHeightBase);
    color: var(--black);
    background-color: var(--mainBackground);
    padding: 2rem 1rem;
}

/* Demo layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--darkGray);
    margin: 0;
}

.component-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.component-section h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--lightGray);
}

.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.demo-item {
    padding: 1.5rem;
    border: 1px solid var(--lightGray);
    border-radius: 8px;
    background: var(--lightestGray);
}

.demo-item:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 12px rgba(34, 113, 145, 0.15);
}

.demo-footer {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    border: 2px dashed var(--lightGray);
}

.demo-footer p {
    margin: 0.5rem 0;
    color: var(--darkGray);
}

.demo-footer a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}

.demo-footer a:hover {
    text-decoration: underline;
}

/* Section descriptions */
.section-description {
    color: var(--darkGray);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Demo item titles */
.demo-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--lightGray);
    padding-bottom: 0.5rem;
}

/* Responsive Design */

/* Tablet styles */
@media (max-width: 768px) {
    body {
        padding: 1rem 0.75rem;
    }

    .container {
        max-width: 100%;
    }

    header {
        margin-bottom: 2rem;
    }

    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .component-section {
        margin-bottom: 2rem;
        padding: 1.5rem;
        border-radius: 8px;
    }

    .component-section h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .component-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .demo-item {
        padding: 1.25rem;
    }

    .section-description {
        margin-bottom: 1.5rem;
        font-size: 0.9rem;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    body {
        padding: 0.75rem 0.5rem;
    }

    header {
        margin-bottom: 1.5rem;
    }

    header h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .component-section {
        margin-bottom: 1.5rem;
        padding: 1rem;
        border-radius: 6px;
    }

    .component-section h2 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .component-grid {
        gap: 0.75rem;
    }

    .demo-item {
        padding: 1rem;
        border-radius: 6px;
    }

    .demo-item h3 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .section-description {
        margin-bottom: 1rem;
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .demo-footer {
        margin-top: 2rem;
        padding: 1.5rem;
        border-radius: 8px;
    }

    .demo-footer p {
        font-size: 0.9rem;
    }
}

/* Extra small mobile */
@media (max-width: 320px) {
    body {
        padding: 0.5rem 0.25rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .component-section {
        padding: 0.75rem;
    }

    .demo-item {
        padding: 0.75rem;
    }

    .component-grid {
        gap: 0.5rem;
    }
}