:root {
  --brand-red: #ff3800;
  --brand-blue: #9ed0e6;
  --brand-green: #00a550;
  --brand-cream: #f5f5dc;
  --brand-yellow: #ffdb58;
  --brand-teal: rgb(9, 186, 186);
}

.toolbar-title {
  font-weight: 800;
  font-size: 24px;;
  letter-spacing: -0.02em;
  color: rgb(9, 186, 186);
}

.toolbar-subtitle {
  color: var(--brand-teal);
  font-size: 16px;
  margin-top: 2px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 16px 24px;
  background: var(--brand-yellow);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.stats-container {
    margin-top: 20px;
    background-color: var(--brand-yellow);
    padding: 10px;
    border-radius: 12px;
}

.stat-row {
    display: grid;
    grid-template-columns: 120px 50px 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.stat-bar {
    height: 14px;
    background: white;
    border-radius: 999px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.8s ease;
}

.stat-name {
    font-weight: bold;
    color: black;
}

.stat-value {
    text-align: right;
    color: black;
    font-size: 16px;
}
.search-container {
    position: relative;
    width: 300px;
    padding: 10px;
    max-width: fit-content;
}

#pokemon-results {
    position: absolute;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ccc;
    display: none;
    z-index: 100;
    max-width:fit-content;
}

.result-item {
    padding: 10px;
    cursor: pointer;
    color: black;
    max-width:fit-content
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

.best-against {
    font-family: 'Inter', sans-serif;
}

.type-list {
    list-style: none;
    padding: 0;
    margin: 20px 30px;
}

.type-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    transition: all 0.2s ease;
}

.type-list li:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(4px);
}

.icon {
    font-size: 20px;
}

h3 {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ff5a1f;
    margin: 0;
}

.type-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: white;
}

.type-row i {
    color: white;
    width: 24px;
    height: 24px;;
    text-align: center;
}


.result-item:hover {
    background: #f1f5f9;
}
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            background: var(--brand-red);
            color: white;
            min-height: 100vh;
            padding: 20px;
        }


        .page-layout {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            grid-template-rows:auto;
            grid-template-areas:
                "photo attributes attributes"
                "strengths weaknesses weaknesses"
                "bestagainst bestagainst bestagainst";
            gap: 20px;
            padding: 10px;
            background: var(--brand-yellow);
        }

        .card {
            background: var(--brand-teal);
            border-radius: 12px;
            padding: 20px;
            min-height: 250px;
        }

        .pokemon-photo {
            grid-area: photo;
        }

        .pokemon-attributes {
            grid-area: attributes;
        }

        .pokemon-strengths {
            grid-area: strengths;
        }

        .pokemon-weaknesses {
            grid-area: weaknesses;
        }

        .best-against {
            grid-area: bestagainst;
        }

        .search-container {
            grid-area: searchcontainer;
        }

        h2 {
            margin-bottom: 15px;
            border-bottom: 2px solid var(--brand-dkteal);
            padding-bottom: 10px;
            width: auto;
            color: var(--brand-red);
            background-color: var(--brand-cream);
            border-radius: 12px;
            text-indent:1%;
            align-content: center;
        }

        p {
            margin-bottom: 5px;
            border-bottom: 2px solid var(--brand-dkteal);
            width: auto;
            border-radius: 12px;
            align-content: center;
            font-weight: bold;
            color: black;
        }        

        .placeholder {
            color: black;
        }

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .app-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 16px;
    }

    .toolbar-title {
        font-size: 20px;
    }

    .toolbar-subtitle {
        font-size: 14px;
    }

    .toolbar-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .page-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "photo"
            "attributes"
            "strengths"
            "weaknesses"
            "bestagainst";
        gap: 12px;
        padding: 8px;
    }

    .card {
        min-height: auto;
        padding: 15px;
    }

    .search-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    #pokemon-results {
        max-width: 100%;
        width: 100%;
    }

    .result-item {
        max-width: 100%;
    }

    .stat-row {
        grid-template-columns: 90px 40px 1fr;
        gap: 6px;
    }

    .stat-name,
    .stat-value {
        font-size: 14px;
    }

    .stat-bar {
        height: 12px;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .type-list {
        margin: 10px 0;
    }

    .type-list li {
        font-size: 16px;
        padding: 8px 10px;
    }

    .type-row {
        font-size: 16px;
    }

    .pokemon-photo img {
        width: 100%;
        height: auto;
        display: block;
    }
}