:root {
    --color-background: #f4f7f6;
    --color-text: #333;
    --color-white: white;
    --color-border-light: rgba(0, 0, 0, 0.1);
    --color-shadow-medium: rgba(0, 0, 0, 0.3);
    --color-shadow-light: rgba(0, 0, 0, 0.2);
    --color-border-medium: #ddd;
    --color-border-extra-light: rgba(0, 0, 0, 0.05);
    --border-radius-large: 15px;
    --border-radius-circle: 50%;
    --border-radius-medium: 10px;
    --border-radius-small: 5px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin: 0;
    min-height: 100vh;
}

.container {
    background: var(--color-white);
    padding: 20px;
    border-radius: var(--border-radius-large);
    box-shadow: 0 10px 25px var(--color-border-light);
    max-width: 800px;
    width: 100%;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.picker-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#colorPicker {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: var(--border-radius-circle);
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    background: none;
}

.main-preview {
    cursor: pointer;
    height: 80px;
    border-radius: var(--border-radius-medium);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--color-white);
    text-shadow: 0 2px 4px var(--color-shadow-medium);
    font-size: 1.2rem;
    border: 1px solid var(--color-border-light);
    word-break: break-all;
}

.website-palette-section {
    margin-bottom: 30px;
}

.website-palette-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.palette-block {
    height: 100px;
    border-radius: var(--border-radius-medium);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    font-size: 0.9rem;
    box-shadow: 0 4px 10px var(--color-border-light);
    text-decoration: none;
    transition: transform 0.2s;
}

.palette-block:hover {
    transform: translateY(-3px);
}

.palette-block small {
    font-size: 0.7rem;
    opacity: 0.8;
}

.harmony-section {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.wheel-box {
    text-align: center;
    flex: 1;
    min-width: 280px;
}

.wheel-container {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-bg {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: var(--border-radius-circle);
    border: 1px dashed var(--color-border-medium);
}

.harmony-point {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-circle);
    box-shadow: 0 2px 6px var(--color-shadow-light);
    border: 2px solid var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: bold;
    color: var(--color-white);
    text-shadow: 0 1px 1px var(--color-shadow-medium);
    cursor: pointer;
    text-decoration: none;
    z-index: 10;
    --angle: calc((var(--i) / 12) * 2 * 3.14159 - 3.14159 / 2);
    --x: calc(100px * cos(var(--angle)));
    --y: calc(100px * sin(var(--angle)));
    transform: translate(var(--x), var(--y));
    transition: transform 0.2s, box-shadow 0.2s;
}

.harmony-point:hover {
    transform: translate(var(--x), var(--y)) scale(1.15);
    z-index: 25;
}

.wheel-color {
    position: absolute;
    width: 35px;
    height: 35px;
    border-radius: var(--border-radius-circle);
    border: 1px solid var(--color-border-extra-light);
    text-decoration: none;
    z-index: 1;
    /*opacity: 0.6;*/
    transition: opacity 0.2s, transform 0.2s;
    --angle: calc((var(--i) / 12) * 2 * 3.14159 - 3.14159 / 2);
    --x: calc(100px * cos(var(--angle)));
    --y: calc(100px * sin(var(--angle)));
    transform: translate(var(--x), var(--y));
}

.wheel-color:hover {
    opacity: 1;
    transform: translate(var(--x), var(--y)) scale(1.2);
    z-index: 5;
}

/* Highlighted active harmony points */
.harmony-active {
    width: 55px;
    height: 55px;
    z-index: 20;
    box-shadow: 0 4px 10px var(--color-shadow-medium);
    opacity: 1;
}

.palette-section {
    margin-bottom: 30px;
}

.palette-grid {
    display: flex;
    height: 60px;
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    box-shadow: 0 4px 10px var(--color-border-light);
}

.palette-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: flex 0.2s;
}

.palette-item:hover {
    flex: 2;
}

.palette-label {
    font-size: 0.7rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.palette-item:hover .palette-label {
    opacity: 1;
}

.info-grid {
    display: flex;
    flex-direction: row;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.info-item {
    background: var(--color-background); /* Using background color for consistency */
    padding: 10px;
    border-radius: var(--border-radius-small);
    border-left: 4px solid var(--color-border-medium);
    font-family: monospace;
    font-size: 0.8rem;
    min-width: 100%;
    width: auto;
    cursor: pointer;
}

.seo-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border-medium);
}

.neighbour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.neighbour-item {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    font-size: 0.8rem;
    border-radius: var(--border-radius-small);
    transition: transform 0.2s;
}

.neighbour-item:hover {
    transform: translateY(-2px);
}

.seo-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

h2, h3 {
    margin-top: 0;
}

/* Notifications */
#notification-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.notification {
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(20px);
    pointer-events: auto;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .wheel-container {
        width: 220px;
        height: 220px;
        transform: scale(0.85);
    }

    .wheel-box {
        min-width: 100%;
    }
}