			/*
Theme Name: Icons
Theme URI: https://icons.cornwell.is/
Template: astra
Author: Angus Cornwell
Author URI: https://cornwell.is/
Description: Astra child theme
Version: 1.0.1764158778
Updated: 2025-11-26 23:06:18

*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

h1,
h3,
#palette {
    font-family: Montserrat !important;
    font-weight: 400 !important;
}

#masthead {
    display: none;
}

footer {
    display: none;
}

.icon-tile i {
    transition: transform 0.3s ease;
}

.icon-tile:hover,
.icon-tile:hover i {
    transform: scale(2);
}

/* -------------------------------
   Icon Colour Tool – Styles
--------------------------------*/
#icon-tool-wrapper {
    display: flex;
    width: 100%;
    min-height: 90vh;
    padding: 20px;
    box-sizing: border-box;
}
#icon-tool-left {
    width: 75%;
    padding-right: 20px;
    overflow-y: auto;
    border-right: 1px solid #ddd;
    transition: background 0.3s ease;
    box-sizing: border-box;
}
#icon-tool-right {
    width: 25%;
    padding-left: 20px;
    box-sizing: border-box;
}

/* Desktop only */
@media (max-width: 900px) {
    #icon-tool-wrapper { display: none; }
    #desktop-only-warning {
        padding: 40px;
        text-align: center;
        font-size: 20px;
    }
}

/* Palette */
.palette-color {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 12px;
    justify-content: space-between;
}
.palette-left {
    display: flex;
    align-items: center;
    flex: 1;
}
.palette-swatch {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    margin-right: 10px;
    border: 1px solid #ccc;
    flex-shrink: 0;
}
.palette-color span {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Delete button */
.palette-delete {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 6px 8px;
    font-size: 12px;
    color: #666;
}
.palette-delete:hover { color: #000; }

/* Icons area */
.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
#icon-search {
    width: 100%;
    padding: 8px 10px;
    box-sizing: border-box;
}

/* Loading */
#icons-loading {
    padding: 20px;
    text-align: center;
    color: #666;
}

/* Icon grid */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    gap: 16px;
}
.icon-tile {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:6px;
    padding:8px;
    border-radius:6px;
    transition: background .12s, transform .08s;
    cursor: default;
    user-select: none;
}
.icon-tile:hover {
    background: rgba(0,0,0,0.03);
    transform: translateY(-2px);
}
.icon-tile i {
    font-size: 28px;
    line-height: 1;
}

/* Icon name */
.icon-name {
    font-size: 11px;
    color:#333;
    text-align:center;
    word-break: break-word;
}

/* Background preview */
#bg-preview {
    width: 100%;
    height: 40px;
    border-radius: 5px;
    margin-top: 8px;
    border: 1px solid #ccc;
}

/* Mobile hint (if tool hidden) */
#desktop-only-warning{
    display: none;
}

/* Small helper for the selected palette item */
.palette-color.selected {
    outline: 2px solid rgba(0,0,0,0.12);
    border-radius: 6px;
    padding: 4px;
}

/* Hide FA icons that fail to render */
.icon-tile i {
    display: inline-block;
    width: 1em;
    height: 1em;
    text-align: center;
    line-height: 1;
    vertical-align: middle;
    font-style: normal; /* prevents fallback italic rendering */
}

.icon-tile i:not([class*="fa-"]) {
    display: none;
}

