body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f4e6;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

/* Header spacing for dmc-color-by-id page */
.site-header {
    margin: 20px;
}

.color-container {
    max-width: 400px;
    margin: 0 auto;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 0;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.3),
        0 0 0 8px #2c3e50,
        0 0 0 12px #34495e,
        0 0 0 16px #ecf0f1;
    text-align: center;
    overflow: hidden;
    position: relative;
    --tiltX: 0deg;
    --tiltY: 0deg;
    transform: perspective(1000px) rotateX(var(--tiltX)) rotateY(var(--tiltY));
    transition: transform 0.1s ease;
}

/* Color swatch area - top of card like paint sample */
.color-swatch {
    width: 100%;
    height: 200px;
    border: none;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.color-swatch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    pointer-events: none;
}

.color-swatch::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at var(--shineX, 50%) var(--shineY, 30%),
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.1) 40%,
        transparent 60%
    );
    pointer-events: none;
    transition: all 0.1s ease;
    filter: blur(1px);
}

/* Color name as card title */
.color-name {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin: 20px 20px 15px 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    font-family: 'Pokemon', 'Segoe UI', sans-serif;
}

/* Stats section - Pokemon card style */
.color-info {
    margin: 0 20px 20px 20px;
    text-align: left;
    display: block;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #dee2e6;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.color-info div {
    margin: 12px 0;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.color-info div:last-child {
    border-bottom: none;
}

.color-info .label {
    font-weight: 600;
    color: #495057;
    display: inline-block;
    width: auto;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    background: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    min-width: 80px;
    text-align: center;
}

.color-info .value {
    font-weight: 500;
    color: #2c3e50;
    font-size: 16px;
    text-align: right;
    flex: 1;
    margin-left: 15px;
}

/* Back link styling - moved outside card */
.back-link {
    margin: 30px auto;
    text-align: center;
}

.back-link a {
    color: #007bff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 15px 30px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-radius: 30px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.back-link a:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

/* Responsive design */
@media (max-width: 480px) {
    .color-container {
        max-width: 90%;
        margin: 0 auto;
    }

    .color-swatch {
        height: 150px;
    }

    .color-name {
        font-size: 20px;
    }

    .color-info {
        padding: 15px;
    }

    .color-info div {
        font-size: 14px;
    }
}
